/* ============================================================
   AskEO — Main Stylesheet
   ============================================================ */

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
    /* Brand Colors */
    --color-primary:   #6C3AF7;
    --color-primary-hover: #7B4BFF;
    --color-primary-light: rgba(108, 58, 247, 0.15);
    --color-secondary: #0EA5E9;
    --color-accent:    #10B981;
    --color-warning:   #F59E0B;
    --color-danger:    #EF4444;

    /* Background Colors */
    --bg-dark:    #0A0A0F;
    --bg-card:    #13131A;
    --bg-surface: #1C1C28;

    /* Border & Text */
    --color-border:  #2A2A3A;
    --text-primary:  #F0F0F5;
    --text-muted:    #8888A0;
    --text-faint:    #55556A;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Border Radius */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 24px rgba(108, 58, 247, 0.35);
    --shadow-glow-accent: 0 0 24px rgba(16, 185, 129, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video, svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

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

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

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

p {
    color: var(--text-muted);
    line-height: 1.7;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

.mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.section {
    padding: var(--space-24) 0;
}

.section-sm {
    padding: var(--space-16) 0;
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.grid { display: grid; }
.hidden { display: none !important; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--color-border);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background: #0da574;
    border-color: #0da574;
    color: #fff;
    box-shadow: var(--shadow-glow-accent);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
    border-color: var(--color-danger);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    transform: translateY(-1px);
}

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

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

/* Button Sizes */
.btn-sm {
    padding: 7px 14px;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
}

.btn-xl {
    padding: 18px 40px;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-full { width: 100%; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.badge-info {
    background: rgba(14, 165, 233, 0.15);
    color: #0EA5E9;
}

.badge-default {
    background: var(--bg-surface);
    color: var(--text-muted);
}

.badge-primary {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Plan Badges */
.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-free   { background: rgba(136, 136, 160, 0.15); color: #8888A0; }
.plan-pro    { background: rgba(108, 58, 247, 0.2);   color: #9B6BFF; }
.plan-agency { background: rgba(245, 158, 11, 0.2);   color: #F59E0B; }

/* Score Classes */
.score-good   { color: var(--color-accent); }
.score-medium { color: var(--color-warning); }
.score-poor   { color: var(--color-danger); }

.score-bg-good   { background: rgba(16, 185, 129, 0.1); }
.score-bg-medium { background: rgba(245, 158, 11, 0.1); }
.score-bg-poor   { background: rgba(239, 68, 68, 0.1); }

/* ============================================================
   Card
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    border-color: rgba(108, 58, 247, 0.35);
    box-shadow: var(--shadow-md);
}

.card-sm { padding: var(--space-4); }
.card-lg { padding: var(--space-10); }

.card-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ============================================================
   Form Styles
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

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

.form-label .required {
    color: var(--color-danger);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-faint);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 58, 247, 0.2);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: var(--color-danger);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888A0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

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

.form-error {
    font-size: 0.8125rem;
    color: var(--color-danger);
}

.input-group {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 58, 247, 0.2);
}

.input-group .form-control {
    border: none;
    border-radius: 0;
    flex: 1;
}

.input-group .form-control:focus {
    box-shadow: none;
}

.input-group .btn {
    border-radius: 0;
    border: none;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bg-dark);
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
    border-right: 1px solid var(--color-border);
}

/* Alert / Flash Messages */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 1px solid transparent;
    margin-bottom: var(--space-5);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.alert-error,
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    color: #0EA5E9;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: var(--color-border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.375rem;
    line-height: 1;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.nav-links li a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    text-decoration: none;
}

.nav-links li a:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.nav-links li a.nav-link-login:hover {
    color: var(--text-primary);
}

.nav-links li a.btn {
    padding: 7px 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    cursor: pointer;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-24) 0 var(--space-16);
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(108, 58, 247, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 60%),
        var(--bg-dark);
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(42, 42, 58, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 42, 58, 0.4) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
    animation: gridPulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-primary-light);
    border: 1px solid rgba(108, 58, 247, 0.3);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--space-6);
    letter-spacing: 0.02em;
}

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

.hero h1 {
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
}

.hero-form {
    max-width: 560px;
    margin: 0 auto var(--space-8);
}

.hero-form .input-group {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: var(--space-2);
    display: flex;
    gap: var(--space-2);
    box-shadow: var(--shadow-lg);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.hero-form .input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.hero-form .form-control {
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
}

.hero-form .form-control:focus {
    box-shadow: none;
}

.hero-form .btn {
    flex-shrink: 0;
    border-radius: var(--radius-xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

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

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

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

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-12);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
    line-height: 1.15;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   How It Works Section
   ============================================================ */
.section-how-it-works {
    padding: var(--space-24) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.steps-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: var(--space-6);
    max-width: 900px;
    margin: 0 auto;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 36px;
    color: var(--text-faint);
}

.step {
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary-light);
    border: 2px solid rgba(108, 58, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 auto var(--space-4);
}

.step-icon {
    font-size: 1.75rem;
    margin-bottom: var(--space-3);
}

.step h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.step p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   Features Grid
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 58, 247, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    border-color: rgba(108, 58, 247, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ============================================================
   Pricing Section
   ============================================================ */
.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.pricing-toggle {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 4px;
}

.pricing-toggle-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
    background: none;
    border: none;
}

.pricing-toggle-btn.active {
    background: var(--color-primary);
    color: #fff;
}

.pricing-save-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    align-items: start;
}

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

.pricing-card.featured {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, rgba(108, 58, 247, 0.08) 0%, var(--bg-card) 100%);
    transform: scale(1.03);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.pricing-card:hover {
    border-color: rgba(108, 58, 247, 0.5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.pricing-plan-name {
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.pricing-price {
    margin-bottom: var(--space-6);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: top;
    margin-top: 8px;
    display: inline-block;
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.price-monthly,
.price-yearly {
    display: none;
}

.price-monthly.active,
.price-yearly.active {
    display: block;
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-features li .check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
}

.pricing-features li .cross {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(136, 136, 160, 0.1);
    color: var(--text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.testimonial-stars {
    color: var(--color-warning);
    font-size: 0.875rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.faq-item.open {
    border-color: rgba(108, 58, 247, 0.4);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: var(--space-4);
}

.faq-question-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.faq-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    transition: transform var(--transition-base), background var(--transition-base);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-answer-inner {
    padding: 0 var(--space-6) var(--space-5);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, rgba(108, 58, 247, 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
    border: 1px solid rgba(108, 58, 247, 0.25);
    border-radius: var(--radius-xl);
    padding: var(--space-16) var(--space-10);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(108, 58, 247, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    position: relative;
}

.cta-banner p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-banner .btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    position: relative;
}

/* ============================================================
   Score Gauge (SVG Circular)
   ============================================================ */
.score-gauge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.score-gauge svg {
    transform: rotate(-90deg);
}

.score-gauge-track {
    fill: none;
    stroke: var(--bg-surface);
    stroke-width: 10;
}

.score-gauge-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-gauge-fill.good   { stroke: var(--color-accent); }
.score-gauge-fill.medium { stroke: var(--color-warning); }
.score-gauge-fill.poor   { stroke: var(--color-danger); }

.score-gauge-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-gauge-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.score-gauge-text {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.9); }
}

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

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes progressBar {
    from { width: 0%; }
    to   { width: var(--target-width, 100%); }
}

/* Reveal Animation — triggered by IntersectionObserver */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Float animation for hero card */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.spinner-primary {
    border-color: var(--color-primary-light);
    border-top-color: var(--color-primary);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

/* ============================================================
   Loading / Audit Progress Screen
   ============================================================ */
.audit-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: var(--space-10);
}

.audit-loading-icon {
    font-size: 3rem;
    margin-bottom: var(--space-6);
    animation: float 3s ease-in-out infinite;
}

.audit-loading h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
}

.audit-loading p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    min-height: 1.5em;
    transition: opacity var(--transition-base);
}

.progress-bar-wrap {
    width: 100%;
    max-width: 400px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    height: 6px;
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
    width: 0%;
}

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

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) 0 var(--space-8);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    margin-bottom: var(--space-4);
}

.footer-logo .logo-text {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.footer-socials {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 38px;
    height: 38px;
    background: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--color-primary-light);
    border-color: rgba(108, 58, 247, 0.4);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    list-style: none;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-copyright,
.footer-legal-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================================
   Utility Helpers
   ============================================================ */
.mt-1  { margin-top: var(--space-1); }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.text-sm   { font-size: 0.875rem; }
.text-xs   { font-size: 0.8125rem; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-accent  { color: var(--color-accent); }
.text-danger  { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.font-bold  { font-weight: 700; }
.font-medium { font-weight: 500; }

.w-full { width: 100%; }
.max-w-sm  { max-width: 400px; }
.max-w-md  { max-width: 560px; }
.max-w-lg  { max-width: 720px; }
.max-w-xl  { max-width: 900px; }
.mx-auto   { margin-left: auto; margin-right: auto; }

/* ============================================================
   Divider
   ============================================================ */
.divider {
    height: 1px;
    background: var(--color-border);
    margin: var(--space-8) 0;
}

/* ============================================================
   Tooltip
   ============================================================ */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-surface);
    border: 1px solid var(--color-border);
    color: var(--text-primary);
    font-size: 0.8125rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ============================================================
   Prefers Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

/* 1280px — wide screens */
@media (max-width: 1280px) {
    :root { --container-max: 1100px; }
}

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card.featured {
        transform: scale(1);
        order: -1;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-flow {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .step-arrow {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* 768px — tablets portrait */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4) var(--space-6) var(--space-8);
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-110%);
        transition: transform var(--transition-base);
        z-index: 999;
        gap: var(--space-2);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-links li a {
        display: block;
        padding: var(--space-3) var(--space-4);
        font-size: 1rem;
    }

    .nav-links li a.btn {
        text-align: center;
        margin-top: var(--space-2);
    }

    .hero {
        padding: var(--space-16) 0 var(--space-12);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: var(--space-5);
    }

    .cta-banner {
        padding: var(--space-10) var(--space-6);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .footer-brand {
        grid-column: 1;
    }

    .section {
        padding: var(--space-16) 0;
    }
}

/* 480px — mobile */
@media (max-width: 480px) {
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-form .input-group {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: var(--space-3);
    }

    .hero-form .btn {
        width: 100%;
        justify-content: center;
        border-radius: var(--radius-md);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }

    .hero-stat-divider {
        display: none;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .cta-banner .btn-group {
        flex-direction: column;
    }

    .cta-banner .btn-group .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.625rem;
    }
}
