/* ============================================
   NUMMERIC — Icon-Themed Design System
   Palette extracted from the app icon:
   Teal, green, pink, lavender, peach, orange
   on warm cream/paper backgrounds
   ============================================ */

:root {
    /* Icon palette */
    --teal: #5CC8B0;
    --green: #7BC67E;
    --pink: #E88CA5;
    --lavender: #B8A5D8;
    --peach: #F0B078;
    --orange: #E8955A;
    --coral: #E07070;

    /* Functional */
    --accent: #7C5CDB;
    --accent-dark: #5B3DBF;
    --accent-glow: rgba(124, 92, 219, 0.25);

    /* Text */
    --text: #1A1A2E;
    --text-secondary: #555570;
    --text-muted: #8E8EA0;

    /* Surfaces — warm paper feel */
    --bg: #FFFCF8;
    --bg-card: #FFFFFF;
    --bg-section: #F7F4F0;
    --bg-dark: #1A1A2E;
    --border: #E8E4DE;

    /* Radii — soft, icon-matching */
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(26,26,46,0.06);
    --shadow-md: 0 6px 24px rgba(26,26,46,0.08);
    --shadow-lg: 0 12px 40px rgba(26,26,46,0.10);
    --shadow-xl: 0 20px 60px rgba(26,26,46,0.14);
    --shadow-color: 0 8px 32px rgba(124,92,219,0.15);

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
    --text: #E8E6F0;
    --text-secondary: #A8A6B8;
    --text-muted: #6E6C80;

    --bg: #0D0D14;
    --bg-card: #16161F;
    --bg-section: #111118;
    --bg-dark: #0A0A10;
    --border: #2A2A3A;

    --accent: #9B7FE6;
    --accent-dark: #B8A5D8;
    --accent-glow: rgba(155, 127, 230, 0.30);

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.30);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.40);
    --shadow-color: 0 8px 32px rgba(155,127,230,0.20);

    color-scheme: dark;
}

/* Dark mode — nav */
[data-theme="dark"] .nav {
    background: rgba(13, 13, 20, 0.88);
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .nav.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.30);
}

/* Dark mode — mobile menu */
[data-theme="dark"] .mobile-menu {
    background: rgba(13, 13, 20, 0.96);
    border-bottom-color: rgba(255,255,255,0.06);
}

/* Dark mode — hero stats */
[data-theme="dark"] .stat-pill {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

/* Dark mode — tab strip */
[data-theme="dark"] .tab-strip {
    background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .tab-btn {
    color: var(--text-muted);
}
[data-theme="dark"] .tab-btn.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

/* Dark mode — section divider */
[data-theme="dark"] .section-divider {
    opacity: 0.4;
}

/* Dark mode — feature panels */
[data-theme="dark"] .fp-badge {
    background: rgba(255,255,255,0.06);
}

/* Dark mode — grid cards */
[data-theme="dark"] .grid-card {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .grid-card:hover {
    border-color: rgba(155,127,230,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Dark mode — platform / bento cards */
[data-theme="dark"] .bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

/* Dark mode — privacy block */
[data-theme="dark"] .privacy-block {
    background: var(--bg-section);
}

/* Dark mode — final CTA */
[data-theme="dark"] .final-cta {
    background: var(--bg-dark);
}

/* Dark mode — footer */
[data-theme="dark"] .footer {
    background: #08080C;
    border-top-color: rgba(255,255,255,0.06);
}

/* Dark mode — contact card */
[data-theme="dark"] .contact-card {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Dark mode — scroll progress */
[data-theme="dark"] .scroll-progress {
    background: rgba(255,255,255,0.03);
}

/* Dark mode — nav toggle bars */
[data-theme="dark"] .nav-toggle span {
    background: var(--text);
}

/* Dark mode — hero devices shadow */
[data-theme="dark"] .hero-device-item img {
    box-shadow: 0 20px 60px rgba(0,0,0,0.50);
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    flex-shrink: 0;
    margin-left: 12px;
}
.theme-toggle:hover {
    background: var(--bg-section);
    border-color: var(--accent);
    transform: scale(1.08);
}
.theme-toggle:active {
    transform: scale(0.95);
}
.theme-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.theme-toggle:hover svg {
    color: var(--accent);
}
/* Sun icon for dark mode, moon icon for light mode */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .float-shape, .math-sym { opacity: 1; transform: none; transition: none; animation: none !important; }
    .math-bg, .dot-grid { display: none; }
    .section-divider, .hero h1 .gradient-word { animation: none; }
    .scroll-progress { display: none; }
    .btn-primary { animation: none !important; }
    .privacy-icon { animation: none !important; }
    .grid-icon-wiggle, .grid-icon-bounce, .grid-icon-pulse { animation: none !important; }
    .word-reveal { opacity: 1; transform: none; transition: none; }
    .typewriter-cursor::after { animation: none; }
}

/* ============================================
   FLOATING MATH SYMBOLS (atmospheric bg)
   ============================================ */
.math-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.math-sym {
    position: absolute;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 700;
    opacity: 0;
    will-change: transform, opacity;
    user-select: none;
}

/* Rise animation — symbols float upward and fade in/out */
@keyframes mathRise {
    0%   { opacity: 0; transform: translateY(60px) rotate(0deg) scale(0.8); }
    15%  { opacity: var(--sym-opacity, 0.40); }
    85%  { opacity: var(--sym-opacity, 0.40); }
    100% { opacity: 0; transform: translateY(-80px) rotate(var(--sym-rotate, 15deg)) scale(1.05); }
}
/* Drift animation — symbols float sideways */
@keyframes mathDrift {
    0%   { opacity: 0; transform: translate(0, 30px) rotate(0deg); }
    20%  { opacity: var(--sym-opacity, 0.38); }
    80%  { opacity: var(--sym-opacity, 0.38); }
    100% { opacity: 0; transform: translate(var(--sym-dx, 50px), -40px) rotate(var(--sym-rotate, -12deg)); }
}
/* Pulse animation — symbols gently scale in place */
@keyframes mathPulse {
    0%, 100% { opacity: 0; transform: scale(0.7) rotate(var(--sym-rotate, 0deg)); }
    30%, 70% { opacity: var(--sym-opacity, 0.38); transform: scale(1.05) rotate(var(--sym-rotate, 0deg)); }
}

/* Color classes */
.ms-teal    { color: var(--teal); }
.ms-pink    { color: var(--pink); }
.ms-lavender { color: var(--lavender); }
.ms-peach   { color: var(--peach); }
.ms-green   { color: var(--green); }
.ms-orange  { color: var(--orange); }
.ms-accent  { color: var(--accent); }

/* ============================================
   ANIMATED DOT GRID BACKGROUND
   ============================================ */
.dot-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, var(--lavender) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.18;
    animation: dotDrift 30s linear infinite;
}
@keyframes dotDrift {
    0% { background-position: 0 0; }
    100% { background-position: 48px 48px; }
}

/* ============================================
   ANIMATED SECTION DIVIDERS
   ============================================ */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--teal), var(--lavender), var(--pink), var(--peach), transparent);
    background-size: 200% 100%;
    animation: dividerFlow 4s ease-in-out infinite;
    border: none;
    margin: 0;
}
@keyframes dividerFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   GLOWING ACCENT ON SECTION EYEBROWS
   ============================================ */
.section-eyebrow {
    text-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================
   PARALLAX DEPTH ON HERO MATH-BG
   ============================================ */
.hero .math-bg {
    transition: transform 0.3s ease-out;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--teal), var(--lavender), var(--pink), var(--peach));
    z-index: 101;
    pointer-events: none;
}

/* ============================================
   GRID CARD ICON ANIMATIONS
   ============================================ */
@keyframes iconWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.grid-icon-wiggle { animation: iconWiggle 2s ease-in-out infinite; }
.grid-icon-bounce { animation: iconBounce 1.5s ease-in-out infinite; }
.grid-icon-pulse  { animation: iconPulse 2s ease-in-out infinite; }

/* ============================================
   STAGGERED WORD REVEALS
   ============================================ */
.word-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.word-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TYPEWRITER CURSOR
   ============================================ */
.typewriter-cursor::after {
    content: '|';
    animation: cursorBlink 0.7s step-end infinite;
    color: var(--accent);
    font-weight: 400;
    margin-left: 2px;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================
   FLOATING ICON-COLORED SHAPES (background)
   ============================================ */
.float-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.float-shape {
    position: absolute;
    border-radius: 26%;
    opacity: 0.12;
}
.fs-1 { width: 180px; height: 180px; background: var(--teal); top: 8%; left: -3%; animation: floatA 16s ease-in-out infinite; }
.fs-2 { width: 140px; height: 140px; background: var(--pink); top: 15%; right: 5%; animation: floatB 20s ease-in-out infinite; }
.fs-3 { width: 200px; height: 200px; background: var(--lavender); bottom: 15%; left: 10%; animation: floatC 18s ease-in-out infinite; }
.fs-4 { width: 120px; height: 120px; background: var(--peach); bottom: 20%; right: 8%; animation: floatA 14s ease-in-out infinite reverse; }
.fs-5 { width: 100px; height: 100px; background: var(--green); top: 50%; left: 50%; animation: floatB 22s ease-in-out infinite; }
.fs-6 { width: 160px; height: 160px; background: var(--orange); top: 60%; right: -4%; animation: floatC 15s ease-in-out infinite reverse; }

@keyframes floatA {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(25px, -35px) rotate(12deg); }
    66% { transform: translate(-15px, 20px) rotate(-8deg); }
}
@keyframes floatB {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, 20px) rotate(-10deg); }
    66% { transform: translate(20px, -25px) rotate(15deg); }
}
@keyframes floatC {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, -40px) rotate(8deg); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 252, 248, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(26,26,46,0.06); }
.nav.hidden { transform: translateY(-100%); }
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
}
.brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}
.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}
@media (min-width: 769px) {
    .nav-toggle { display: none !important; }
    .mobile-menu { display: none !important; }
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 22px;
    background: var(--accent);
    color: white;
    border-radius: 100px;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.nav-cta:hover {
    background: var(--accent-dark);
    transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px)) translateY(-1px);
    box-shadow: var(--shadow-color);
}
.nav-cta:active { transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px)) scale(0.97); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.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); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,252,248,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 16px 24px 28px;
    z-index: 99;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; }
.mobile-menu a {
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}
.mobile-menu a:hover { background: var(--bg-section); color: var(--text); }
.mobile-cta {
    margin-top: 8px;
    text-align: center;
    background: var(--accent) !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 100px !important;
    padding: 14px 24px !important;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    overflow: hidden;
    text-align: center;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(124, 92, 219, 0.08);
    border-radius: 100px;
}
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.04;
    margin-bottom: 20px;
    color: var(--text);
}
.hero h1 .gradient-word {
    background: linear-gradient(135deg, var(--teal), var(--lavender), var(--pink), var(--teal));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 36px;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    transition: transform 0.2s var(--ease-spring), box-shadow 0.25s, background 0.2s;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary {
    animation: ctaGlowPulse 2.5s ease-in-out infinite;
}
@keyframes ctaGlowPulse {
    0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
    50% { box-shadow: 0 6px 30px rgba(124, 92, 219, 0.40), 0 0 14px rgba(124, 92, 219, 0.18); }
}
.btn-primary:hover {
    animation: none;
    background: var(--accent-dark);
    transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px)) translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:active { transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px)) scale(0.97); }
.btn-primary svg { flex-shrink: 0; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    border-radius: 100px;
    transition: all 0.2s var(--ease-out);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.btn-large { padding: 18px 40px; font-size: 1.1rem; }

/* Hero stats — icon-colored pill badges */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}
.stat-pill:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-md);
}
.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stat-color-teal .stat-num { color: var(--teal); }
.stat-color-lavender .stat-num { color: var(--lavender); }
.stat-color-green .stat-num { color: var(--green); }
.stat-color-coral .stat-num { color: var(--coral); }

/* Hero device showcase — multi-device fan */
.hero-devices {
    position: relative;
    z-index: 2;
    margin-top: 56px;
    width: 100%;
    max-width: 900px;
    height: 420px;
}
.hero-device-item {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s, z-index 0s;
    cursor: default;
}
.hero-device-item img { width: 100%; display: block; }
.hero-device-item:hover {
    z-index: 10;
    box-shadow: var(--shadow-xl);
}
.hd-iphone {
    width: 220px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 5;
    border-radius: var(--radius-lg);
}
.hd-iphone:hover { transform: translateX(-50%) translateY(-8px) scale(1.04); }
.hd-ipad {
    width: 280px;
    left: 8%;
    top: 40px;
    transform: rotate(-6deg);
    z-index: 3;
    border-radius: var(--radius);
}
.hd-ipad:hover { transform: rotate(-3deg) translateY(-8px) scale(1.03); }
.hd-mac {
    width: 360px;
    right: 4%;
    top: 30px;
    transform: rotate(4deg);
    z-index: 2;
    border-radius: var(--radius-sm);
}
.hd-mac:hover { transform: rotate(2deg) translateY(-8px) scale(1.03); }

.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.scroll-arrow {
    width: 28px;
    height: 28px;
    border-right: 2.5px solid var(--text-muted);
    border-bottom: 2.5px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scrollBounce 2.5s infinite;
    opacity: 0.4;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 0.7; }
}

/* ============================================
   FEATURE TABS — Interactive switcher
   ============================================ */
.features {
    position: relative;
    overflow: hidden;
    padding: 100px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.section-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Tab strip */
.tab-strip {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    padding: 6px;
    background: var(--bg-section);
    border-radius: 100px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.tab-btn {
    padding: 10px 22px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

/* Tab panel */
.tab-panels { position: relative; }
.tab-panel {
    display: none;
    animation: tabFadeIn 0.5s var(--ease-out);
}
.tab-panel.active { display: grid; }
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feature panel layout — text + multi-device showcase */
.feature-panel-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}
.fp-text { max-width: 460px; }
.fp-badge {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.fp-badge-teal { background: rgba(92, 200, 176, 0.15); color: #3DA88E; }
.fp-badge-pink { background: rgba(232, 140, 165, 0.15); color: #C06580; }
.fp-badge-lavender { background: rgba(184, 165, 216, 0.15); color: #8A72B5; }
.fp-badge-peach { background: rgba(240, 176, 120, 0.15); color: #C08040; }
.fp-badge-green { background: rgba(123, 198, 126, 0.15); color: #55A058; }
.fp-badge-orange { background: rgba(232, 149, 90, 0.15); color: #B56A30; }
.fp-badge-coral { background: rgba(224, 112, 112, 0.15); color: #B04848; }

.fp-text h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 14px;
}
.fp-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.fp-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fp-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}
.fp-list li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 6px;
    background: var(--accent);
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C5CDB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* Device showcase area */
.fp-devices {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}
.device-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s;
}
.device-img img { width: 100%; display: block; }
.device-img:hover {
    box-shadow: var(--shadow-xl);
}

/* Stacked device arrangements */
.devices-stack {
    position: relative;
    width: 100%;
    height: 440px;
}
.devices-stack .device-img {
    position: absolute;
}
.ds-main {
    width: 60%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    border-radius: var(--radius-sm);
}
.ds-main:hover { transform: translate(-50%, -52%) scale(1.02); }
.ds-behind-left {
    width: 38%;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-5deg);
    z-index: 1;
    border-radius: var(--radius-lg);
}
.ds-behind-left:hover { transform: translateY(-52%) rotate(-2deg) scale(1.03); z-index: 4; }
.ds-behind-right {
    width: 38%;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(5deg);
    z-index: 2;
    border-radius: var(--radius);
}
.ds-behind-right:hover { transform: translateY(-52%) rotate(2deg) scale(1.03); z-index: 4; }

/* Single-device with accent bg */
.device-solo {
    position: relative;
    display: flex;
    justify-content: center;
}
.device-solo .device-img { width: 75%; max-width: 380px; }
.device-solo .device-img:hover { transform: translateY(-6px) scale(1.02); }

/* Side by side */
.devices-duo {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}
.devices-duo .device-img { width: 46%; }
.devices-duo .device-img:first-child { transform: rotate(-3deg); }
.devices-duo .device-img:last-child { transform: rotate(3deg); }
.devices-duo .device-img:first-child:hover { transform: rotate(-1deg) translateY(-6px) scale(1.03); }
.devices-duo .device-img:last-child:hover { transform: rotate(1deg) translateY(-6px) scale(1.03); }

/* ============================================
   MORE FEATURES — Colorful icon-button grid
   ============================================ */
.more-features {
    padding: 80px 24px 100px;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
}
.grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.4s, border-color 0.4s;
    will-change: transform;
    position: relative;
}
.grid-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--teal), var(--lavender), var(--pink), var(--peach));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}
.grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(124, 92, 219, 0.18);
    border-color: transparent;
}
.grid-card:hover::before {
    opacity: 1;
}
/* Icon-colored squares mimicking the app icon buttons */
.grid-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    will-change: transform;
    color: white;
    font-weight: 700;
}
.gi-teal { background: linear-gradient(135deg, var(--teal), #4AB8A0); }
.gi-pink { background: linear-gradient(135deg, var(--pink), #D47090); }
.gi-lavender { background: linear-gradient(135deg, var(--lavender), #9880C8); }
.gi-peach { background: linear-gradient(135deg, var(--peach), #E09858); }
.gi-green { background: linear-gradient(135deg, var(--green), #60B064); }
.gi-orange { background: linear-gradient(135deg, var(--orange), #D07838); }
.gi-coral { background: linear-gradient(135deg, var(--coral), #C85858); }
.gi-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }

.grid-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.grid-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   PLATFORMS — Horizontal scroll showcase
   ============================================ */
.platforms {
    position: relative;
    overflow: hidden;
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
/* Bento grid layout for platforms */
.platform-bento {
    display: grid;
    grid-template-columns: 1fr 1.8fr 1fr;
    grid-template-rows: 220px 220px 280px;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

/* Grid placement */
.bento-iphone    { grid-column: 1; grid-row: 1 / 3; }
.bento-mac-calc  { grid-column: 2; grid-row: 1; }
.bento-ipad      { grid-column: 3; grid-row: 1 / 3; }
.bento-mac-graph { grid-column: 2; grid-row: 2; }
.bento-ipad-tip  { grid-column: 1 / 2; grid-row: 3; }
.bento-mac-imsg  { grid-column: 2 / 4; grid-row: 3; }

.bento-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
    background: var(--bg-card);
}
.bento-item:hover {
    transform: translateY(-5px) scale(1.015);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.bento-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}
.bento-label .plat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.platform-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.platform-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.25s var(--ease-spring);
}
.platform-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.badge-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.badge-check svg { width: 12px; height: 12px; }

/* ============================================
   PRIVACY
   ============================================ */
.privacy-block {
    padding: 80px 24px;
    background: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}
.privacy-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.privacy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    margin-bottom: 24px;
    color: var(--lavender);
    animation: privacyFloat 3s ease-in-out infinite, privacyGlow 3s ease-in-out infinite;
}
@keyframes privacyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes privacyGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(184, 165, 216, 0); }
    50% { box-shadow: 0 0 28px rgba(184, 165, 216, 0.30); }
}
.privacy-block h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.privacy-block p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.privacy-link {
    font-weight: 600;
    color: var(--lavender);
    transition: color 0.2s;
}
.privacy-link:hover { color: white; }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.final-cta p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    padding: 56px 24px 0;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
}
.footer-brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.footer-brand-block img { width: 32px; height: 32px; border-radius: 8px; }
.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
}
.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.footer-tagline a {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.2s;
}
.footer-tagline a:hover { color: var(--accent-dark); }
.footer-llc {
    margin-top: 10px;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 340px;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-col h5 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-panel-grid { gap: 32px; }
    .devices-stack { height: 360px; }
    .platform-bento {
        grid-template-rows: 200px 200px 240px;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu { display: flex; }

    .hero { padding: 100px 20px 40px; min-height: auto; }
    .hero-devices { height: auto; position: relative; }
    .hero-device-item { position: relative; transform: none !important; left: auto; right: auto; top: auto; }
    .hd-iphone { width: 60%; margin: 0 auto; }
    .hd-ipad, .hd-mac { display: none; }

    .tab-strip { border-radius: var(--radius); padding: 4px; gap: 4px; }
    .tab-btn { padding: 8px 14px; font-size: 0.8rem; }
    .feature-panel-grid { grid-template-columns: 1fr; gap: 28px; }
    .fp-devices { order: -1; }
    .devices-stack { height: auto; position: relative; }
    .devices-stack .device-img { position: relative; transform: none !important; left: auto; right: auto; top: auto; width: 100% !important; }
    .ds-behind-left, .ds-behind-right { display: none; }
    .ds-main { position: relative; width: 100%; left: auto; top: auto; transform: none; }
    .ds-main:hover { transform: translateY(-4px) scale(1.01); }

    .feature-grid { grid-template-columns: 1fr; gap: 14px; }

    .footer-inner { grid-template-columns: 1fr; gap: 36px; }
    .footer-links { grid-template-columns: repeat(3, 1fr); gap: 20px; }

    .platform-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 200px;
    }
    .bento-iphone    { grid-column: 1; grid-row: 1; }
    .bento-mac-calc  { grid-column: 2; grid-row: 1; }
    .bento-ipad      { grid-column: 1; grid-row: 2; }
    .bento-mac-graph { grid-column: 2; grid-row: 2; }
    .bento-ipad-tip  { grid-column: 1; grid-row: 3; }
    .bento-mac-imsg  { grid-column: 2; grid-row: 3; }
    .platform-badges { gap: 10px; }
    .platform-badge { padding: 8px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-sub { font-size: 0.95rem; }
    .hero-stats { gap: 8px; }
    .stat-pill { padding: 8px 14px; }
    .stat-num { font-size: 1.2rem; }
    .stat-label { font-size: 0.68rem; }
    .btn-primary { padding: 14px 24px; font-size: 0.9rem; }
    .btn-secondary { padding: 14px 20px; font-size: 0.9rem; }
    .section-header h2 { font-size: 1.8rem; }
    .fp-text h3 { font-size: 1.5rem; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .devices-duo { flex-direction: column; gap: 12px; }
    .devices-duo .device-img { width: 80%; transform: none !important; }
    .platform-bento {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 180px);
    }
    .bento-iphone    { grid-column: 1; grid-row: 1; }
    .bento-mac-calc  { grid-column: 1; grid-row: 2; }
    .bento-ipad      { grid-column: 1; grid-row: 3; }
    .bento-mac-graph { grid-column: 1; grid-row: 4; }
    .bento-ipad-tip  { grid-column: 1; grid-row: 5; }
    .bento-mac-imsg  { grid-column: 1; grid-row: 6; }
}

/* ============================================
   SUBPAGE STYLES
   ============================================ */

/* Subpage hero wrapper — matches main page sections */
.subpage-hero {
    position: relative;
    overflow: hidden;
    padding: 120px 24px 60px;
}
.subpage-hero .math-bg,
.subpage-hero .dot-grid,
.subpage-hero .float-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.subpage-hero .page-header {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 0;
}
.subpage-hero .page-header h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.subpage-hero .page-header .page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    position: relative;
    z-index: 1;
}
.page-content h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.page-updated { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 40px; }
.page-content h2 { font-size: 1.4rem; font-weight: 700; margin-top: 40px; margin-bottom: 12px; letter-spacing: -0.02em; }
.page-content h3 { font-size: 1.1rem; font-weight: 600; margin-top: 28px; margin-bottom: 8px; }
.page-content p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.page-content ul, .page-content ol { margin-bottom: 16px; padding-left: 24px; }
.page-content li { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 6px; list-style: disc; }
.page-content ol li { list-style: decimal; }
.page-content a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; transition: color 0.15s; }
.page-content a:hover { color: var(--accent-dark); }
.page-content strong { color: var(--text); font-weight: 600; }

/* Content section wrapper — adds bg tint + relative positioning for math-bg */
.page-section {
    position: relative;
    overflow: hidden;
    padding: 0 0 40px;
}
.page-section .math-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.contact-card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-top: 0; font-size: 1rem; }
