/* ======================================================
   EVA Form — Design System & Landing Page Styles
   Color: Green, Gray, Black | Light Theme
   Typography: Inter + Space Grotesk
   ====================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
    /* Primary Green */
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    /* Grays */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    --gray-950: #09090b;

    /* Semantic */
    --color-primary: var(--green-600);
    --color-primary-hover: var(--green-500);
    --color-primary-dark: var(--green-700);
    --color-primary-light: var(--green-50);

    --color-bg: var(--gray-50);
    --color-surface: #ffffff;
    --color-surface-raised: var(--gray-100);
    --color-surface-hover: var(--gray-50);

    --color-text: var(--gray-900);
    --color-text-secondary: var(--gray-500);
    --color-text-muted: var(--gray-400);
    --color-text-inverse: #ffffff;

    --color-border: var(--gray-200);
    --color-border-hover: var(--gray-300);
    --color-border-focus: var(--green-500);

    --color-danger: #71717a;
    --color-danger-bg: #f4f4f5;
    --color-warning: #f59e0b;
    --color-success: var(--green-600);

    /* Typography */
    --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --space-5xl: 6rem;
    --space-6xl: 8rem;

    /* Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;

    /* Shadows */
    --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.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-green: 0 4px 14px rgba(22,163,74,0.25);
    --shadow-green-lg: 0 10px 30px rgba(22,163,74,0.3);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --max-width: 1200px;
    --nav-height: 64px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ── Utility Classes ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ── Button System ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    box-shadow: var(--shadow-green);
}

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

.btn-primary:active {
    background: var(--color-primary-dark);
    transform: translateY(0);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    background: var(--color-surface-raised);
    color: var(--color-text);
}

.btn-danger {
    background: var(--gray-700);
    color: white;
}

.btn-danger:hover {
    background: var(--gray-800);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Input System ── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-input {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:hover {
    border-color: var(--color-border-hover);
}

.form-input:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input.error {
    border-color: var(--gray-400);
    box-shadow: 0 0 0 3px rgba(113, 113, 122, 0.1);
}

.form-error {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: none;
}

.form-error.visible {
    display: block;
}

/* ── Card System ── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: var(--space-xl);
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.badge-green {
    background: var(--green-100);
    color: var(--green-700);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

/* ══════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════ */

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(228, 228, 231, 0.6);
    z-index: 100;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-logo-icon svg {
    width: 18px;
    height: 18px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

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

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

.nav-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.nav-mobile-toggle svg {
    width: 22px;
    height: 22px;
    color: var(--color-text);
}

/* ── Hero ── */
.hero {
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(22, 163, 74, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--green-50);
    border: 1px solid var(--green-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--green-700);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .highlight {
    color: var(--color-primary);
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--green-200);
    border-radius: 3px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-3xl);
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-5xl);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4xl);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 0.125rem;
}

/* ── Hero Preview ── */
.hero-preview {
    max-width: 960px;
    margin: var(--space-5xl) auto 0;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-preview-window {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.hero-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--color-border);
}

.hero-preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-preview-dot:nth-child(1) { background: var(--gray-300); }
.hero-preview-dot:nth-child(2) { background: var(--gray-300); }
.hero-preview-dot:nth-child(3) { background: var(--gray-300); }

.hero-preview-url {
    flex: 1;
    margin-left: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: white;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.hero-preview-content {
    padding: 2rem;
    min-height: 400px;
    display: flex;
    gap: 1.5rem;
}

.hero-preview-sidebar {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-preview-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.hero-preview-sidebar-item.active {
    background: var(--green-50);
    color: var(--green-700);
    font-weight: 500;
}

.hero-preview-sidebar-item .icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: var(--gray-200);
}

.hero-preview-sidebar-item.active .icon {
    background: var(--green-200);
}

.hero-preview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-preview-field {
    padding: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    animation: shimmer 2s ease-in-out infinite;
}

.hero-preview-field-label {
    width: 80px;
    height: 12px;
    background: var(--gray-300);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.hero-preview-field-input {
    width: 100%;
    height: 36px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.hero-preview-field:nth-child(2) .hero-preview-field-label {
    width: 120px;
}

.hero-preview-field:nth-child(3) .hero-preview-field-label {
    width: 60px;
}

.hero-preview-field:nth-child(3) .hero-preview-field-input {
    height: 72px;
}

/* ── Features ── */
.features {
    padding: var(--space-6xl) 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

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

.features-header .section-subtitle {
    margin: 0 auto;
}

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

.feature-card {
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--green-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--green-100);
    transform: scale(1.05);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ── How It Works ── */
.how-it-works {
    padding: var(--space-6xl) 0;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: var(--space-5xl);
}

.how-it-works-header .section-subtitle {
    margin: 0 auto;
}

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

.steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--green-200), var(--green-400), var(--green-200));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--green-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.step:hover .step-number {
    background: var(--green-50);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ── Pricing ── */
.pricing {
    padding: var(--space-6xl) 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.pricing-header .section-subtitle {
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: var(--shadow-green);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: var(--color-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

.pricing-plan {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: var(--space-2xl);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 1px;
}

.pricing-card .btn {
    width: 100%;
}

/* ── CTA Section ── */
.cta {
    padding: var(--space-6xl) 0;
    text-align: center;
}

.cta-box {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-4xl);
    background: var(--gray-900);
    border-radius: var(--radius-2xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.2), transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    position: relative;
}

.cta-box p {
    color: var(--gray-400);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.cta-box .btn {
    position: relative;
}

/* ── Footer ── */
.footer {
    padding: var(--space-4xl) 0 var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text);
}

.footer-brand-icon {
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-brand-icon svg {
    width: 14px;
    height: 14px;
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
    list-style: none;
}

.footer-links a {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-copy {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ══════════════════════════════════════════════════════
   AUTH PAGES (Login / Register)
   ══════════════════════════════════════════════════════ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
    background: var(--color-bg);
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(22, 163, 74, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(22, 163, 74, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-3xl);
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-3xl);
    text-decoration: none;
}

.auth-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.auth-logo-icon svg {
    width: 20px;
    height: 20px;
}

.auth-logo span {
    color: var(--color-primary);
}

.auth-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.375rem;
}

.auth-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.auth-form .btn {
    margin-top: var(--space-sm);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-2xl);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--color-primary-dark);
}

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    display: none;
    align-items: flex-start;
    gap: 0.5rem;
}

.auth-alert.error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--gray-200);
    display: flex;
}

.auth-alert.success {
    background: var(--green-50);
    color: var(--green-700);
    border: 1px solid var(--green-200);
    display: flex;
}

.password-toggle {
    position: relative;
}

.password-toggle .form-input {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
    color: var(--color-text-secondary);
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* ── Toast Notifications ── */
.toast-container {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    animation: slideInRight 0.3s ease-out;
    max-width: 360px;
}

.toast.success {
    border-left: 3px solid var(--color-primary);
}

.toast.error {
    border-left: 3px solid var(--color-danger);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--color-primary); }
.toast.error .toast-icon { color: var(--color-danger); }

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* ── Loading Spinner ── */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.spinner.dark {
    border-color: rgba(0,0,0,0.1);
    border-top-color: var(--color-text);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .steps::before {
        display: none;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-2xl);
    }
    
    .hero-preview-sidebar {
        display: none;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
    }
}
