/* ===========================
   Na šta trošiš — Premium Landing
   Inspired by Linear, Stripe, Vercel
   =========================== */

/* ===========================
   Design Tokens — Light
   =========================== */
:root,
[data-theme="light"] {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-darker: #047857;
    --primary-light: #D1FAE5;
    --primary-glow: rgba(16, 185, 129, 0.08);
    --primary-glow-strong: rgba(16, 185, 129, 0.15);

    --amber: #F59E0B;
    --blue: #3B82F6;
    --pink: #EC4899;
    --violet: #8B5CF6;
    --teal: #14B8A6;
    --cyan: #06B6D4;
    --orange: #F97316;
    --red: #EF4444;

    --bg: #FFFFFF;
    --bg-subtle: #F8FAFC;
    --bg-muted: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --text: #0F172A;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --border: #E2E8F0;
    --border-subtle: #F1F5F9;

    --navbar-bg: rgba(255, 255, 255, 0.85);
    --navbar-border: rgba(226, 232, 240, 0.8);

    --receipt-bg: #FFFFFF;
    --receipt-text: #1E293B;
    --receipt-muted: #94A3B8;
    --receipt-border: #E2E8F0;
    --receipt-highlight-bg: rgba(16, 185, 129, 0.06);

    --cat-card-bg: #FFFFFF;

    --cta-bg: #0F172A;
    --cta-text: #F8FAFC;
    --cta-muted: #94A3B8;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 60px rgba(16, 185, 129, 0.08);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 999px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.3s;
    --duration-slow: 0.6s;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ===========================
   Design Tokens — Dark
   =========================== */
[data-theme="dark"] {
    --bg: #09090B;
    --bg-subtle: #0F0F12;
    --bg-muted: #18181B;
    --bg-card: #131316;
    --bg-elevated: #1A1A1F;
    --text: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-tertiary: #71717A;
    --border: #27272A;
    --border-subtle: #1E1E22;

    --primary-light: #065F46;
    --primary-glow: rgba(16, 185, 129, 0.06);
    --primary-glow-strong: rgba(16, 185, 129, 0.1);

    --navbar-bg: rgba(9, 9, 11, 0.85);
    --navbar-border: rgba(39, 39, 42, 0.8);

    --receipt-bg: #131316;
    --receipt-text: #E4E4E7;
    --receipt-muted: #71717A;
    --receipt-border: #27272A;
    --receipt-highlight-bg: rgba(16, 185, 129, 0.08);

    --cat-card-bg: #131316;

    --cta-bg: #131316;
    --cta-text: #FAFAFA;
    --cta-muted: #71717A;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 80px rgba(16, 185, 129, 0.06);
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===========================
   Typography Helpers
   =========================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #34D399 50%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-strikethrough {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    opacity: 0.7;
}

.text-strikethrough::after {
    content: '';
    position: absolute;
    left: 0;
    top: 52%;
    width: 0;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.strikethrough-done .text-strikethrough::after {
    width: 100%;
}

.text-never-begin {
    color: var(--text);
    font-weight: 900;
    font-style: normal;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 720px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin-bottom: 56px;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: all var(--duration) var(--ease);
}

.navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--navbar-border);
    padding: 8px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text);
    margin-right: auto;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}

.nav-links a:hover {
    color: var(--text);
    background: var(--bg-muted);
}

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration) var(--ease);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 14px 20px;
}

.btn-ghost:hover {
    color: var(--text);
}

/* ===========================
   Hero
   =========================== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] .hero-glow {
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: var(--primary-glow-strong);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    max-width: 740px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-subtitle strong {
    color: var(--text);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 80px;
}

/* Hero Two-Column Layout */
.hero-content-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 64px;
    margin-bottom: 80px;
}

.hero-text { min-width: 0; }

.hero-text .hero-actions {
    margin-bottom: 0;
}

/* ===========================
   Phone Mockup
   =========================== */
.hero-phone-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Shadows live here so filter never touches the transformed element */
    filter:
        drop-shadow(0 50px 70px rgba(0, 0, 0, 0.38))
        drop-shadow(0 0 60px rgba(16, 185, 129, 0.14));
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.phone-mockup {
    position: relative;
    width: 270px;
    animation: phone-float 4s ease-in-out infinite;
    will-change: transform;
}

.phone-mockup:hover {
    animation-play-state: paused;
}

.phone-btn {
    position: absolute;
    background: linear-gradient(to bottom, #3A3A3C, #2C2C2E);
    z-index: 2;
}

.phone-btn-silent {
    left: -3px; top: 94px;
    width: 3px; height: 28px;
    border-radius: 2px 0 0 2px;
}

.phone-btn-vol-up {
    left: -3px; top: 138px;
    width: 3px; height: 58px;
    border-radius: 2px 0 0 2px;
}

.phone-btn-vol-down {
    left: -3px; top: 210px;
    width: 3px; height: 58px;
    border-radius: 2px 0 0 2px;
}

.phone-btn-power {
    right: -3px; top: 162px;
    width: 3px; height: 80px;
    border-radius: 0 2px 2px 0;
}

.phone-body {
    position: relative;
    border-radius: 52px;
    background: linear-gradient(160deg, #484848 0%, #333335 30%, #222224 65%, #333335 100%);
    padding: 12px 12px 0 12px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 0 0 2px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        inset 1px 0 0 rgba(255, 255, 255, 0.10),
        inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.phone-screen {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
    aspect-ratio: 9 / 20;
}

.phone-screenshots {
    position: relative;
    width: 100%;
    height: 100%;
}

.phone-screenshot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.9s ease;
    display: block;
}

.phone-screenshot.active {
    opacity: 1;
}

.phone-dynamic-island {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 14px;
    background: #000;
    border-radius: 8px;
    z-index: 5;
}

.phone-shine {
    position: absolute;
    inset: 0;
    border-radius: 36px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.10) 0%,
        rgba(255, 255, 255, 0.04) 22%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 10;
}

.phone-bottom-bezel {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-home-indicator {
    width: 118px;
    height: 5px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}

/* Hero Visual: Receipt Demo */
.hero-visual {
    margin-top: 20px;
}

.receipt-demo {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr;
    gap: 0;
    align-items: start;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    overflow: hidden;
}

.receipt-paper {
    background: var(--receipt-bg);
    border: 1px solid var(--receipt-border);
    border-radius: var(--radius);
    padding: 24px;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    box-shadow: var(--shadow-sm);
}

.receipt-store {
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    color: var(--receipt-text);
    margin-bottom: 4px;
    font-family: var(--font);
}

.receipt-date {
    text-align: center;
    color: var(--receipt-muted);
    font-size: 0.75rem;
    margin-bottom: 16px;
    font-family: var(--font);
}

.receipt-divider {
    border-top: 1px dashed var(--receipt-border);
    margin: 12px 0;
}

.receipt-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--receipt-text);
    transition: all 0.5s var(--ease);
    border-left: 3px solid transparent;
}

.receipt-item.highlighted {
    background: var(--receipt-highlight-bg);
}

.receipt-item.highlighted[data-category="hrana"] { border-left-color: #F97316; }
.receipt-item.highlighted[data-category="hemija"] { border-left-color: #3B82F6; }
.receipt-item.highlighted[data-category="pice"] { border-left-color: #06B6D4; }
.receipt-item.highlighted[data-category="nega"] { border-left-color: #EC4899; }

.receipt-item-name {
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
}

.receipt-item-price {
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--receipt-text);
}

/* Arrow between receipt and categories */
.receipt-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 24px;
    color: var(--primary);
    align-self: center;
}

.receipt-arrow-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

/* Categorized result */
.receipt-categorized {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: center;
}

.cat-group {
    background: var(--cat-card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s var(--ease-out);
    box-shadow: var(--shadow-xs);
}

.cat-group.revealed {
    opacity: 1;
    transform: translateX(0);
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cat-color);
    flex-shrink: 0;
}

.cat-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.cat-total {
    margin-left: auto;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cat-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-items span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-muted);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

/* ===========================
   Problem Section
   =========================== */
.problem {
    padding: 120px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.problem-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration-slow) var(--ease-out);
    opacity: 0;
    transform: translateY(24px);
}

.problem-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.problem-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.problem-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.problem-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.problem-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ===========================
   Article-Level Section
   =========================== */
.article-level {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.insight-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration-slow) var(--ease-out);
    opacity: 0;
    transform: translateY(24px);
}

.insight-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.insight-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.insight-card-accent {
    border-color: rgba(16, 185, 129, 0.3);
    background: var(--primary-glow);
    position: relative;
}

.insight-card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.insight-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--primary-glow-strong);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.insight-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.insight-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ===========================
   Numbers Section
   =========================== */
.numbers {
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
}

.numbers-grid {
    display: flex;
    justify-content: center;
    gap: 0;
}

.numbers-grid .number-item {
    flex: 1;
    max-width: 280px;
    padding: 0 32px;
    border-right: 1px solid var(--border);
}

.numbers-grid .number-item:last-child {
    border-right: none;
}

.number-item {
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: all var(--duration-slow) var(--ease-out);
}

.number-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.number-value {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.number-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===========================
   Features
   =========================== */
.features {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--duration-slow) var(--ease-out);
    opacity: 0;
    transform: translateY(24px);
}

.feature-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.fi-green  { background: rgba(16, 185, 129, 0.1); color: var(--primary); }
.fi-blue   { background: rgba(59, 130, 246, 0.1); color: var(--blue); }
.fi-amber  { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.fi-pink   { background: rgba(236, 72, 153, 0.1); color: var(--pink); }
.fi-violet { background: rgba(139, 92, 246, 0.1); color: var(--violet); }
.fi-teal   { background: rgba(20, 184, 166, 0.1); color: var(--teal); }

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   How It Works / Process
   =========================== */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
}

.process-timeline {
    max-width: 640px;
    margin: 56px auto 0;
    position: relative;
    padding-left: 40px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.process-step {
    position: relative;
    padding-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-slow) var(--ease-out);
}

.process-step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-dot {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: border-color var(--duration) var(--ease);
}

.process-step.in-view .process-dot {
    border-color: var(--primary);
}

.process-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transform: scale(0);
    transition: all var(--duration) var(--ease-spring);
}

.process-step.in-view .process-dot-inner {
    opacity: 1;
    transform: scale(1);
}

.process-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.process-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.process-time {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-glow-strong);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

/* ===========================
   Screenshots
   =========================== */
.screenshots {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
    align-items: center;
}

.screenshot-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-slow) var(--ease-out);
}

.screenshot-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.sc-featured {
    transform: scale(1.04) translateY(20px);
}

.sc-featured.in-view {
    transform: scale(1.04) translateY(0);
}

.screenshot-placeholder {
    aspect-ratio: 9/16;
    background: linear-gradient(145deg, #18181B, #1E1E24);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
    position: relative;
}

.screenshot-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(16, 185, 129, 0.04) 100%);
}

.screenshot-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.2);
    z-index: 1;
}

.screenshot-placeholder-inner span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Phone mockup inside screenshots grid */
.phone-mockup-inline {
    width: 270px;
    margin: 0 auto;
    animation: none;
}

.phone-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.32);
    color: rgba(255, 255, 255, 0.85);
    z-index: 8;
    border-radius: 36px;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.phone-mockup-inline:hover .phone-play-overlay {
    opacity: 0;
}

.phone-caption {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 16px;
}

.phone-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.screenshots-hint {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: 20px;
    font-style: italic;
}

/* ===========================
   CTA / Download
   =========================== */
.cta {
    padding: 120px 0 80px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 80px 48px;
    border-radius: var(--radius-xl);
    background: var(--cta-bg);
    border: 1px solid var(--border);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-slow) var(--ease-out);
}

.cta-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--cta-text);
    margin-bottom: 16px;
    position: relative;
}

.cta-card > p {
    color: var(--cta-muted);
    font-size: 1rem;
    margin-bottom: 36px;
    position: relative;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    justify-content: center;
}

[data-theme="light"] .store-btn {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
}

.store-btn:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.store-btn div small {
    display: block;
    font-size: 0.65rem;
    opacity: 0.6;
    font-weight: 500;
}

.store-btn div strong {
    font-size: 1rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-content > p {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}

.footer-links a:hover,
.footer-links a[aria-current] {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .receipt-demo {
        padding: 28px;
    }
}

@media (max-width: 900px) {
    .receipt-demo {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .receipt-arrow {
        flex-direction: row;
        padding: 12px 0;
        justify-content: center;
    }

    .receipt-arrow svg {
        transform: rotate(90deg);
    }
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
}
.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .nav-backdrop { display: block; }
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--navbar-bg);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--navbar-border);
        flex-direction: column;
        padding: 8px 0 12px;
        gap: 2px;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
        z-index: 999;
        width: auto;
        height: auto;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav-links li { width: 100%; }
    .nav-links a {
        width: 100%;
        padding: 10px 20px;
        border-radius: 0;
        font-size: 0.925rem;
    }
    .nav-links .nav-cta {
        margin: 6px 16px 0;
        width: calc(100% - 32px);
        border-radius: var(--radius-sm);
        text-align: center;
        justify-content: center;
        display: block;
        padding: 10px 20px;
    }

    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }

    .hero-content-wrap {
        grid-template-columns: 1fr;
    }

    .hero-phone-wrap {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 60px;
    }

    .problem-grid,
    .insight-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .sc-featured { transform: translateY(20px); }
    .sc-featured.in-view { transform: translateY(0); }

    .phone-play-overlay { display: none; }

    .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }

    .cta-card { padding: 48px 24px; }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }

    .receipt-demo { padding: 20px; }

    .receipt-paper { padding: 16px; }

    .numbers-grid { flex-direction: column; align-items: center; gap: 32px; }
    .numbers-grid .number-item { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 32px; width: 100%; max-width: 240px; }
    .numbers-grid .number-item:last-child { border-bottom: none; padding-bottom: 0; }

    .number-value { font-size: 2rem; }

    .process-timeline { padding-left: 32px; }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}

/* ===========================
   Animation stagger delays
   =========================== */
.problem-card:nth-child(2), .insight-card:nth-child(2), .feature-card:nth-child(2) { transition-delay: 0.1s; }
.problem-card:nth-child(3), .insight-card:nth-child(3), .feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.15s; }
.feature-card:nth-child(5) { transition-delay: 0.2s; }
.feature-card:nth-child(6) { transition-delay: 0.25s; }
.number-item:nth-child(2) { transition-delay: 0.1s; }
.number-item:nth-child(3) { transition-delay: 0.2s; }
.number-item:nth-child(4) { transition-delay: 0.3s; }
.process-step:nth-child(2) { transition-delay: 0.15s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.screenshot-card:nth-child(2) { transition-delay: 0.1s; }
.screenshot-card:nth-child(3) { transition-delay: 0.2s; }
