/* ===== CSS Variables ===== */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #dc2626;

    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-elevated: #334155;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border: #334155;
    --border-light: #475569;

    --gradient-primary: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

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

ul {
    list-style: none;
}

/* ===== Typography ===== */
.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--border);
    border-color: var(--text-muted);
}

.btn-large {
    padding: 16px 28px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.875rem;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(13, 148, 136, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.badge-icon {
    color: var(--primary-light);
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

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

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

/* ===== Problem Section ===== */
.problem {
    padding: 100px 0;
    background: var(--bg-card);
}

.problem-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 600px;
}

.problem-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.problem-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.problem-icon {
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.problem-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.problem-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* ===== Agents Section ===== */
.agents {
    padding: 100px 0;
    background: var(--bg-dark);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.agent-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.agent-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.agent-card.featured {
    border-color: var(--accent);
}

.agent-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.agent-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.agent-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.agent-card > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.agent-tasks {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.agent-tasks li {
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-tasks li::before {
    content: '→';
    color: var(--primary-light);
    font-weight: 600;
}

.agent-tag {
    position: absolute;
    top: -10px;
    left: 24px;
    padding: 6px 12px;
    background: var(--gradient-warm);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
}

.agents-note {
    margin-top: 48px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.agents-note p {
    color: var(--text-secondary);
}

.agents-note strong {
    color: var(--text-primary);
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-card);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 700px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    flex-shrink: 0;
    min-width: 60px;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Why Us ===== */
.why-us {
    padding: 100px 0;
    background: var(--bg-dark);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.why-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.why-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.why-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Testimonial ===== */
.testimonial {
    padding: 100px 0;
    background: var(--bg-card);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.quote-mark {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.3;
    line-height: 0.5;
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.author-info {
    text-align: left;
}

.author-info strong {
    display: block;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Who This Is For ===== */
.who-for {
    padding: 100px 0;
    background: var(--bg-dark);
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.who-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.who-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}

.who-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===== CTA Section ===== */
.cta {
    padding: 100px 0;
    background: var(--bg-card);
}

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

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-form {
    text-align: left;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 16px;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

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

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-elevated);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

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

/* Honeypot */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Signal/Hold Button */
.signal-btn {
    position: relative;
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    border-radius: 6px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.2);
}

.signal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(13, 148, 136, 0.3);
}

.signal-btn .btn-text {
    position: relative;
    z-index: 1;
}

.signal-btn .btn-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    transition: width 0.05s linear;
}

.signal-btn.holding .btn-progress {
    transition: width var(--hold-duration, 3s) linear;
    width: 100%;
}

.signal-btn.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.form-hint {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Success State */
.success-state {
    animation: fadeIn 0.4s ease;
    text-align: center;
}

.success-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--success);
}

.success-state p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.email-fallback {
    color: var(--primary-light);
    font-size: 0.875rem;
}

.email-fallback:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
.footer {
    padding: 64px 0 32px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-column h5 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .proof-divider {
        display: none;
    }

    .step {
        flex-direction: column;
        gap: 12px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }

    .testimonial-card {
        padding: 32px 24px;
    }

    .testimonial-card blockquote {
        font-size: 1.125rem;
    }
}

/* ===== Animations ===== */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.spinner {
    animation: spin 1s linear infinite;
}

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