/* ============================================
   ZED-INSPIRED DESIGN SYSTEM
   Clean, Professional, Editorial
   ============================================ */

/* Import Lora serif for headings */
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */

:root {
    /* Colors - Light Mode (Default) */
    --color-bg-primary: #fafafa;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #f0f0f0;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666666;
    --color-text-tertiary: #999999;
    --color-border: #e5e5e5;
    --color-accent: #e53e3e;
    --color-accent-hover: #c53030;

    /* Spacing System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    --space-4xl: 128px;

    /* Typography */
    --font-sans:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
    --font-serif: "Lora", Georgia, serif;
    --font-mono: "SF Mono", "Monaco", "Inconsolata", monospace;

    --text-xs: 13px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 48px;
    --text-6xl: 60px;
    --text-7xl: 72px;

    /* Layout */
    --container-width: 1200px;

    /* Animation */
    --transition-fast: 150ms;
    --transition-base: 200ms;
    --transition-slow: 300ms;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Colors */
.dark {
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-bg-tertiary: #1f1f1f;
    --color-text-primary: #fafafa;
    --color-text-secondary: #a0a0a0;
    --color-text-tertiary: #6b6b6b;
    --color-border: #2a2a2a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #fafafa;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: #fafafa !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition:
        background-color var(--transition-base) var(--ease-in-out),
        color var(--transition-base) var(--ease-in-out);
}

.disable-transitions * {
    transition: none !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-6xl);
}
h2 {
    font-size: var(--text-4xl);
}
h3 {
    font-size: var(--text-2xl);
}
h4 {
    font-size: var(--text-xl);
}
h5 {
    font-size: var(--text-lg);
}
h6 {
    font-size: var(--text-base);
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base) var(--ease-in-out);
}

a:hover {
    color: var(--color-accent-hover);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
}

.nav-logo:hover {
    color: var(--color-text-primary);
}

.logo-icon {
    font-size: var(--text-2xl);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    position: relative;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-base) var(--ease-in-out);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-slow) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-in-out);
}

.theme-toggle:hover {
    background-color: var(--color-bg-secondary);
}

.theme-icon {
    font-size: var(--text-base);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: var(--text-sm);
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: var(--text-6xl);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-4xl);
    }
}

.gradient-text {
    color: var(--color-accent);
}

.hero-description {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.hero-subdescription {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-in-out);
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
}

/* ============================================
   SECTIONS
   ============================================ */

.section-title {
    font-family: var(--font-serif);
    text-align: center;
    margin-bottom: var(--space-md);
    font-size: var(--text-4xl);
    font-weight: 500;
}

.section-subtitle {
    text-align: center;
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PROBLEM & SOLUTION SECTION
   ============================================ */

.problem-solution {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    padding: var(--space-xl);
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.problem-number {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.problem-card h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.problem-card p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Solution Box */
.solution-box {
    padding: var(--space-2xl);
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--color-accent);
}

.solution-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

.solution-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--color-bg-primary);
    border-radius: 6px;
}

.solution-label {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    flex: 1;
}

.solution-arrow {
    color: var(--color-accent);
    font-size: var(--text-lg);
}

.solution-value {
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    font-weight: 500;
    flex: 1;
}

/* ============================================
   VALUE PILLARS
   ============================================ */

.value-pillars {
    padding: var(--space-4xl) 0;
    background-color: var(--color-bg-secondary);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }
}

.pillar-card {
    text-align: center;
    padding: var(--space-xl);
}

.pillar-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
}

.pillar-card h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.pillar-card p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   FEATURES OVERVIEW
   ============================================ */

.features-overview {
    padding: var(--space-4xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: var(--space-xl);
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-base) var(--ease-in-out);
}

.feature-card:hover {
    border-color: var(--color-accent);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.feature-link {
    font-size: var(--text-sm);
    color: var(--color-accent);
    font-weight: 500;
}

.feature-link:hover {
    color: var(--color-accent-hover);
}

/* ============================================
   PRIVACY COMMITMENT
   ============================================ */

.privacy-commitment {
    padding: var(--space-4xl) 0;
    background-color: var(--color-bg-secondary);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

@media (max-width: 768px) {
    .privacy-grid {
        grid-template-columns: 1fr;
    }
}

.privacy-feature {
    display: flex;
    gap: var(--space-md);
}

.privacy-check {
    font-size: var(--text-xl);
    color: var(--color-accent);
    flex-shrink: 0;
}

.privacy-text h4 {
    font-family: var(--font-serif);
    font-size: var(--text-base);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.privacy-text p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

.privacy-cta {
    display: inline-block;
    font-size: var(--text-base);
    color: var(--color-accent);
    font-weight: 500;
    margin-top: var(--space-xl);
}

.privacy-cta:hover {
    color: var(--color-accent-hover);
}

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
    padding: var(--space-2xl) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.cta-content h2 {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: var(--text-2xl);
    }
}

.cta-content p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-md);
}

@media (max-width: 640px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.cta-note {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.footer-section h4 {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.footer-section a {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.footer-section a:hover {
    color: var(--color-text-primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.footer-links a:hover {
    color: var(--color-text-primary);
}

/* ============================================
   FEATURE DETAIL PAGES
   ============================================ */

.feature-detail {
    padding: var(--space-2xl) 0;
}

.feature-detail.alt {
    background-color: var(--color-bg-secondary);
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (max-width: 1024px) {
    .feature-detail-grid {
        grid-template-columns: 1fr;
    }
}

.feature-badge {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.feature-detail-title {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.feature-detail-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.feature-detail-content h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 500;
    margin: var(--space-xl) 0 var(--space-md);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-xl);
}

.feature-list li {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    position: relative;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.feature-list-simple {
    list-style: none;
    padding: 0;
    margin-top: var(--space-lg);
}

.feature-list-simple li {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    position: relative;
}

.feature-list-simple li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.feature-visual-card {
    padding: var(--space-2xl);
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--color-accent);
    text-align: center;
}

.feature-detail.alt .feature-visual-card {
    background-color: var(--color-bg-primary);
}

.visual-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
}

.feature-visual-card h4 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.feature-visual-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   DOCS NAVIGATION (for docs pages)
   ============================================ */

.docs-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg-primary);
    border-bottom: 1px solid var(--color-border);
}

.docs-nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.docs-nav-left,
.docs-nav-right {
    flex: 1;
}

.docs-nav-right {
    display: flex;
    justify-content: flex-end;
}

.docs-nav-center {
    display: flex;
    gap: var(--space-lg);
}

.docs-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text-primary);
}

.docs-logo:hover {
    color: var(--color-text-primary);
}

.docs-nav-link {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-base) var(--ease-in-out);
}

.docs-nav-link:hover,
.docs-nav-link.active {
    color: var(--color-text-primary);
}

.theme-toggle-docs {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base) var(--ease-in-out);
}

.theme-toggle-docs:hover {
    background-color: var(--color-bg-secondary);
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */

/* Floating sparkles behind phone mockup */
.landing-hero-image {
    position: relative;
}

.hero-sparkles {
    position: absolute;
    inset: -40px;
    pointer-events: none;
    z-index: 0;
}

.hero-sparkle {
    position: absolute;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0;
    animation: sparkle-float 6s ease-in-out infinite;
}

.hero-sparkle:nth-child(1) {
    width: 8px; height: 8px;
    top: 15%; left: 10%;
    animation-delay: 0s;
}
.hero-sparkle:nth-child(2) {
    width: 6px; height: 6px;
    top: 25%; right: 5%;
    animation-delay: 1.2s;
}
.hero-sparkle:nth-child(3) {
    width: 10px; height: 10px;
    bottom: 30%; left: 5%;
    animation-delay: 2.4s;
}
.hero-sparkle:nth-child(4) {
    width: 5px; height: 5px;
    bottom: 15%; right: 12%;
    animation-delay: 3.6s;
}
.hero-sparkle:nth-child(5) {
    width: 7px; height: 7px;
    top: 50%; left: -5%;
    animation-delay: 4.8s;
}

/* Four-pointed star sparkle */
.hero-sparkle-star {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0;
    animation: sparkle-star 4s ease-in-out infinite;
}

.hero-sparkle-star::before,
.hero-sparkle-star::after {
    content: "";
    position: absolute;
    background: var(--color-accent);
    border-radius: 50%;
}

.hero-sparkle-star::before {
    width: 100%; height: 30%;
    top: 35%; left: 0;
    border-radius: 40%;
}

.hero-sparkle-star::after {
    width: 30%; height: 100%;
    top: 0; left: 35%;
    border-radius: 40%;
}

.hero-sparkle-star:nth-of-type(1) {
    top: 8%; right: 15%;
    animation-delay: 0.5s;
}

.hero-sparkle-star:nth-of-type(2) {
    bottom: 20%; left: 0%;
    width: 12px; height: 12px;
    animation-delay: 2.5s;
}

@keyframes sparkle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    20% {
        opacity: 0.4;
        transform: translateY(-8px) scale(1);
    }
    50% {
        opacity: 0.2;
        transform: translateY(-16px) scale(0.8);
    }
    80% {
        opacity: 0.35;
        transform: translateY(-6px) scale(1.1);
    }
}

@keyframes sparkle-star {
    0%, 100% {
        opacity: 0;
        transform: scale(0.3) rotate(0deg);
    }
    30% {
        opacity: 0.5;
        transform: scale(1) rotate(15deg);
    }
    60% {
        opacity: 0.3;
        transform: scale(0.8) rotate(-10deg);
    }
}

/* Subtle glow behind phone mockup */
.phone-mockup {
    z-index: 1;
}

.landing-hero-image .phone-mockup::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(
        ellipse at center,
        rgba(229, 62, 62, 0.06) 0%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: -1;
    animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Hero title entrance */
.landing-title {
    animation: hero-title-in 0.8s cubic-bezier(0, 0, 0.2, 1) both;
}

.landing-subtitle {
    animation: hero-subtitle-in 0.8s cubic-bezier(0, 0, 0.2, 1) 0.2s both;
}

.landing-cta {
    animation: hero-subtitle-in 0.6s cubic-bezier(0, 0, 0.2, 1) 0.4s both;
}

.landing-note {
    animation: hero-subtitle-in 0.6s cubic-bezier(0, 0, 0.2, 1) 0.5s both;
}

@keyframes hero-title-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-subtitle-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page entrance animations (shared across all pages) */
.entrance-title {
    animation: hero-title-in 0.8s cubic-bezier(0, 0, 0.2, 1) both;
}

.entrance-label {
    animation: hero-subtitle-in 0.5s cubic-bezier(0, 0, 0.2, 1) both;
}

.entrance-subtitle {
    animation: hero-subtitle-in 0.8s cubic-bezier(0, 0, 0.2, 1) 0.15s both;
}

.entrance-content {
    animation: hero-subtitle-in 0.7s cubic-bezier(0, 0, 0.2, 1) 0.3s both;
}

.entrance-content-delayed {
    animation: hero-subtitle-in 0.7s cubic-bezier(0, 0, 0.2, 1) 0.45s both;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-sparkle,
    .hero-sparkle-star {
        animation: none;
        display: none;
    }
    .landing-hero-image .phone-mockup::before {
        animation: none;
    }
    .landing-title,
    .landing-subtitle,
    .landing-cta,
    .landing-note,
    .entrance-title,
    .entrance-label,
    .entrance-subtitle,
    .entrance-content,
    .entrance-content-delayed {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Base state - hidden before animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
}

.stagger-children.visible > *:nth-child(1) {
    transition-delay: 0ms;
}
.stagger-children.visible > *:nth-child(2) {
    transition-delay: 100ms;
}
.stagger-children.visible > *:nth-child(3) {
    transition-delay: 200ms;
}
.stagger-children.visible > *:nth-child(4) {
    transition-delay: 300ms;
}
.stagger-children.visible > *:nth-child(5) {
    transition-delay: 400ms;
}
.stagger-children.visible > *:nth-child(6) {
    transition-delay: 500ms;
}

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Slide in from left */
.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-left,
    .slide-right,
    .scale-in,
    .stagger-children > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}
.mb-md {
    margin-bottom: var(--space-md);
}
.mb-lg {
    margin-bottom: var(--space-lg);
}
.mb-xl {
    margin-bottom: var(--space-xl);
}

.mt-sm {
    margin-top: var(--space-sm);
}
.mt-md {
    margin-top: var(--space-md);
}
.mt-lg {
    margin-top: var(--space-lg);
}
.mt-xl {
    margin-top: var(--space-xl);
}

/* ============================================
   LANDING PAGE
   ============================================ */

.landing-hero {
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0 var(--space-3xl);
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 1024px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.landing-hero-content {
    max-width: 600px;
}

@media (max-width: 1024px) {
    .landing-hero-content {
        max-width: 700px;
        margin: 0 auto;
    }
}

.landing-hero-image {
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .landing-hero-image {
        order: -1;
        margin-bottom: var(--space-xl);
    }
}

.phone-mockup {
    position: relative;
    max-width: 300px;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
    .phone-mockup {
        max-width: 220px;
    }
}

.landing-title {
    font-family: var(--font-serif);
    font-size: var(--text-7xl);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .landing-title {
        font-size: var(--text-5xl);
    }
}

.landing-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.landing-cta {
    margin-bottom: var(--space-md);
}

.landing-note {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin: 0;
}

.coming-soon {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent);
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--color-accent);
    border-radius: 999px;
}

/* Value Props */
.landing-values {
    padding: var(--space-3xl) 0;
    background-color: #F5F5F5;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.value-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.value-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.value-content h3 {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.value-content p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Landing Divider */
.landing-divider {
    padding: var(--space-lg) 0;
}

.divider-content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--color-border);
}

.divider-pattern {
    width: 60px;
    height: 20px;
    background-image: repeating-linear-gradient(
        -45deg,
        var(--color-border),
        var(--color-border) 1px,
        transparent 1px,
        transparent 6px
    );
    opacity: 0.8;
}

/* Problem Statement */
.landing-problem {
    padding: var(--space-xl) 0;
}

.problem-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.problem-content h2 {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.problem-content p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.problem-solution {
    color: var(--color-text-primary);
}

/* Final CTA */
.landing-final-cta {
    padding: var(--space-2xl) 0;
    background-color: #F5F5F5;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.final-cta-content h2 {
    font-family: var(--font-serif);
    font-size: var(--text-5xl);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.final-cta-content .btn {
    margin-bottom: var(--space-lg);
}

.final-cta-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.final-cta-links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.final-cta-links a:hover {
    color: var(--color-accent);
}

.link-separator {
    color: var(--color-text-tertiary);
}

/* ============================================
   SOCIAL PROOF
   ============================================ */

.social-proof {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    font-style: italic;
    margin-top: var(--space-sm);
}

/* ============================================
   FEATURE PREVIEW SECTION
   ============================================ */

.landing-preview {
    padding: var(--space-3xl) 0;
}

.preview-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.preview-header h2 {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.preview-header p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin: 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .preview-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

.preview-item {
    text-align: center;
    transition: transform 300ms cubic-bezier(0, 0, 0.2, 1);
}

.preview-item:hover {
    transform: translateY(-4px);
}

.preview-image {
    margin-bottom: var(--space-md);
}

.preview-image img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 300ms cubic-bezier(0, 0, 0.2, 1);
}

.preview-item:hover .preview-image img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.preview-item h3 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-accent);
}

.preview-item p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   PROBLEM CONTRAST
   ============================================ */

.problem-contrast {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background-color: var(--color-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

@media (max-width: 640px) {
    .problem-contrast {
        flex-direction: column;
        gap: var(--space-md);
    }
}

.contrast-before,
.contrast-after {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.contrast-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
}

.contrast-before .contrast-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

.contrast-after .contrast-text {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-accent);
}

.contrast-arrow {
    font-size: var(--text-2xl);
    color: var(--color-accent);
}

@media (max-width: 640px) {
    .contrast-arrow {
        transform: rotate(90deg);
    }
}

/* ============================================
   FINAL CTA SUBTITLE
   ============================================ */

.final-cta-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}
