:root {
    --brand-color: #4ade80;
    --brand-color-glow: rgba(74, 222, 128, 0.4);
    --brand-color-glow-hover: rgba(74, 222, 128, 0.6);
    --dark-bg: #0A0A0F;
    --panel-bg: rgba(30, 41, 59, 0.5);
    --panel-border: rgba(51, 65, 85, 0.5);
}
*, *::before, *::after { box-sizing: border-box; }
@property --shine-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -20%;
}
@property --shine-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 20%;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: #E2E8F0;
}
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
main { padding-top: calc(64px + env(safe-area-inset-top)); }
.hero-gradient { background: radial-gradient(circle at 50% 0%, rgba(4, 120, 87, 0.15), transparent 40%); }
.hero-title { line-height: 1.2; }
.appstore-badge { height: 44px; width: auto; display: block; }
.glow-button {
    box-shadow: 0 0 15px var(--brand-color-glow), 0 0 5px var(--brand-color-glow);
    transition: all 0.3s ease;
}
.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--brand-color-glow-hover), 0 0 10px var(--brand-color-glow-hover);
}
.mac-menu-bar {
    height: 28px; background-color: rgba(22, 30, 41, 0.5); backdrop-filter: blur(10px); display: flex; align-items: center; padding: 0 16px; font-size: 13px; font-weight: 500; color: #f1f5f9; border-bottom: 1px solid rgba(100, 116, 139, 0.3); position: fixed; top: 10px; left: 10px; right: 10px; border-radius: 8px; z-index: 100;
}
/* Mobile menu (below fixed bar) */
.mobile-menu { position: fixed; top: 48px; left: 10px; right: 10px; background: rgba(22, 30, 41, 0.85); border: 1px solid rgba(100, 116, 139, 0.3); border-radius: 8px; padding: 12px; display: grid; gap: 8px; z-index: 90; backdrop-filter: blur(10px); }
.mobile-menu a { display: block; padding: 8px 10px; border-radius: 6px; }
.mobile-menu a:hover { background: rgba(255,255,255,0.06); }
/* START: Demo CSS */
.app-demo { display: flex; flex-direction: column; border: 1px solid rgba(100, 116, 139, 0.5); background-color: #1E293B; position: relative; }
.app-demo .app-background { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; --neutral-color: #242424; --gradient-color: #2F2F2F; --neutral-location: 70%; background: linear-gradient(to bottom, var(--neutral-color) var(--neutral-location), var(--gradient-color) 100%); transition: background 0.8s ease-in-out; }
.app-demo .filter-control-container { position: relative; padding: 0 16px; margin: 16px 0; }
.app-demo .filter-buttons { display: flex; justify-content: space-around; }
.app-demo .filter-btn { background: none; border: none; padding: 8px; cursor: pointer; flex: 1; }
.app-demo .filter-btn:focus-visible { outline: none; }
.app-demo .filter-indicator { position: absolute; top: 0; left: 16px; height: 100%; width: calc(100% / 5 - 6.4px); background-color: rgba(255, 255, 255, 0.2); border-radius: 6px; transition: transform 0.25s ease-in-out; margin: 0 3.2px; }

.app-demo .demo-content { 
    flex-grow: 1; 
    padding: 0 8px; 
    overflow-y: auto; 
    scrollbar-width: thin;
}
.app-demo .demo-row { 
    padding: 12px 16px; 
    border-radius: 6px; 
    cursor: pointer; 
    position: relative;
    transition: background-color 0.15s ease-out;
}
.app-demo .demo-row.selected { background-color: rgba(52, 120, 246, 0.2); }
.app-demo .demo-row:not(.selected):hover { background-color: rgba(255, 255, 255, 0.08); }
.app-demo .app-footer { padding: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: auto; }

.copied-indicator {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%) scale(0.5);
    color: #4ade80; opacity: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease-out;
}
.copied-indicator.visible { opacity: 1; transform: translateY(-50%) scale(1); }

.floating-app-container { position: relative; perspective: 2000px; min-height: 420px; }
.floating-app-mockup { 
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform-style: preserve-3d;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.4);
    max-width: 480px; 
    border-radius: 28px; 
    overflow: hidden; 
    position: relative;
}
.floating-app-container:hover .floating-app-mockup { 
     transform: rotateX(0deg) rotateZ(0deg) scale(1) translateZ(0px);
}
.floating-app-mockup::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: radial-gradient(circle 300px at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.25), transparent);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.floating-app-container:hover .floating-app-mockup::before {
    animation: shine-sweep 0.8s ease-out 0.1s;
}
@keyframes shine-sweep {
    0% { --shine-x: -20%; --shine-y: 20%; opacity: 0;}
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { --shine-x: 120%; --shine-y: 80%; opacity: 0; }
}

.floating-app-container::after {
    content: '';
    position: absolute;
    top: 25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse 50% 40% at 50% 70%, rgba(255, 255, 255, 0.08), transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
 .floating-app-container:hover::after {
    opacity: 1;
}

#copy-feedback {
    margin-top: 0.5rem; /* Reduced space */
    color: #94a3b8;
    font-weight: 500;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    opacity: 0;
    transform: translateY(10px);
    height: 24px; /* Prevents layout shift */
}
#copy-feedback.visible {
    opacity: 1;
    transform: translateY(0);
}
#copy-feedback .filename {
    color: #e2e8f0;
    font-weight: 600;
}
/* END: Demo CSS */
.feature-card { background-color: var(--panel-bg); border: 1px solid var(--panel-border); transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(74, 222, 128, 0.5); }
.feature-icon { background-color: rgba(74, 222, 128, 0.1); color: var(--brand-color); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; flex-shrink: 0; }
.paragraph { color: #cbd5e1; }
.testimonial-card { background-color: var(--panel-bg); border: 1px solid var(--panel-border); }
.testimonial-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #334155; /* Placeholder color */
    margin-right: 1rem;
    flex-shrink: 0;
}
.testimonial-author { font-style: normal; color: #94A3B8; }
.testimonial-author span { font-weight: 600; color: #E2E8F0;}
.pricing-card {
    background: rgba(22, 30, 41, 0.7);
    border: 1px solid var(--panel-border);
    transition: all 0.3s ease;
    position: relative;
}
.pricing-card.highlight {
    border-color: rgba(74, 222, 128, 0.7);
    transform: scale(1.05);
}
.price { font-size: 3rem; font-weight: 800; color: white; }
.best-value-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #34d399;
    color: #064e3b;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.faq-item { border-bottom: 1px solid var(--panel-border); }

/* Responsive adjustments */
@media (max-width: 640px) {
    /* Respect safe areas on iOS */
    .mac-menu-bar { top: calc(env(safe-area-inset-top) + 10px); left: calc(env(safe-area-inset-left) + 10px); right: calc(env(safe-area-inset-right) + 10px); }
    .mobile-menu { top: calc(env(safe-area-inset-top) + 48px); left: calc(env(safe-area-inset-left) + 10px); right: calc(env(safe-area-inset-right) + 10px); }
    /* Reduce global vertical rhythm */
    .py-16 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
    .pt-16 { padding-top: 1.75rem !important; }
    .py-20 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .feature-icon { width: 40px; height: 40px; }
    .feature-card .feature-icon svg { width: 18px; height: 18px; }
    .app-demo .filter-indicator { left: 12px; margin: 0 2px; }
    .app-demo .filter-btn { padding: 6px; }
    .app-demo .filter-buttons svg { width: 18px; height: 18px; }
    .app-demo .demo-row { padding: 10px 12px; }
    .app-demo .demo-row svg { width: 18px; height: 18px; }
    .floating-app-mockup { max-width: 100%; border-radius: 20px; }
    .floating-app-container { min-height: 360px; }
    #scroll-indicator svg { width: 24px; height: 24px; }
    #scroll-indicator { display: none; }
}

/* YouTube preview button */
.video-preview { position: relative; width: 100%; height: 100%; display: block; cursor: pointer; }
.video-preview img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9) brightness(0.9); }
.video-preview .play-button { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 0.2s ease, opacity 0.2s ease; }
.video-preview:hover .play-button { transform: scale(1.05); opacity: 0.95; }
.video-wrapper { -webkit-mask-image: -webkit-radial-gradient(white, black); }

/* Disable heavy 3D effects on touch devices */
@media (hover: none), (pointer: coarse) {
    .floating-app-container:hover .floating-app-mockup { transform: none !important; }
    .floating-app-mockup { transform: none !important; transform-style: flat; }
    .floating-app-mockup::before, .floating-app-container::after { display: none !important; }
}

/* Ultra-small screens */
@media (max-width: 360px) {
    .feature-icon { width: 32px; height: 32px; }
    .feature-card .feature-icon svg, .app-demo .filter-buttons svg, .app-demo .demo-row svg { width: 16px; height: 16px; }
}