/* ════════════════════════════════════════════════
   AdRamp — Global Stylesheet
   Shared by: index.html, terms.html, privacy.html
   ════════════════════════════════════════════════ */

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

/* ── Variables ── */
:root {
    --bg: #f8f7f4;
    --text: #1c1917;
    --text-muted: rgba(28, 25, 23, 0.55);
    --text-light: rgba(28, 25, 23, 0.35);
    --accent: #1c1917;
    --accent-hover: #2c2926;
    --grid-color: rgba(28, 25, 23, 0.06);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Background Pattern (index only) ── */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-pattern canvas {
    width: 100%;
    height: 100%;
}

/* ════════════════════════════════════════════════
   Navigation
   ════════════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(248, 247, 244, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grid-color);
}

.nav-logo {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-family: 'Fragment Mono', monospace;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ── Sign In Button ── */
.btn-signin {
    font-family: 'Fragment Mono', monospace;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 20px;
    position: relative;
    transition: color 0.2s ease;
}

.btn-signin::before,
.btn-signin::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    transition: all 0.2s ease;
}

.btn-signin::before {
    top: 0; left: 0;
    border-top: 1.5px solid var(--text-muted);
    border-left: 1.5px solid var(--text-muted);
}

.btn-signin::after {
    top: 0; right: 0;
    border-top: 1.5px solid var(--text-muted);
    border-right: 1.5px solid var(--text-muted);
}

.btn-signin .bracket-bl,
.btn-signin .bracket-br {
    position: absolute;
    width: 10px;
    height: 10px;
}

.btn-signin .bracket-bl {
    bottom: 0; left: 0;
    border-bottom: 1.5px solid var(--text-muted);
    border-left: 1.5px solid var(--text-muted);
}

.btn-signin .bracket-br {
    bottom: 0; right: 0;
    border-bottom: 1.5px solid var(--text-muted);
    border-right: 1.5px solid var(--text-muted);
}

.btn-signin:hover { color: var(--text); }
.btn-signin:hover::before,
.btn-signin:hover::after { border-color: var(--text); }
.btn-signin:hover .bracket-bl,
.btn-signin:hover .bracket-br { border-color: var(--text); }

/* ── CTA Button (nav) ── */
.btn-cta {
    font-family: 'Fragment Mono', monospace;
    font-size: 14px;
    color: var(--bg);
    background: var(--accent);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    display: inline-block;
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-cta:active { transform: translateY(0); }

/* ════════════════════════════════════════════════
   Shared Components
   ════════════════════════════════════════════════ */
.section-label {
    font-family: 'Fragment Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--text);
    border-radius: 0;
    flex-shrink: 0;
}

.highlight-box {
    background: rgba(28, 25, 23, 0.03);
    border: 1px solid var(--grid-color);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.highlight-box p {
    margin-bottom: 8px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* ════════════════════════════════════════════════
   Hero (index only)
   ════════════════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 110px 48px 0;
    max-width: 1440px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fragment Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 36px;
    padding: 8px 16px;
    border: 1px solid var(--grid-color);
    border-radius: 100px;
    background: rgba(248, 247, 244, 0.6);
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -2px;
    color: var(--text);
    margin-bottom: 28px;
    max-width: 860px;
}

.hero h1 .text-muted { color: var(--text-light); }

.hero-sub {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
}

.btn-primary {
    font-family: 'Fragment Mono', monospace;
    font-size: 14px;
    color: var(--bg);
    background: var(--accent);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    font-family: 'Fragment Mono', monospace;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 14px 32px;
    border: 1px solid rgba(28, 25, 23, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(28, 25, 23, 0.3);
}

/* ── Hero Video ── */
.hero-video-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 0 24px 100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-video-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(28, 25, 23, 0.03),
        0 8px 16px rgba(28, 25, 23, 0.04),
        0 20px 40px rgba(28, 25, 23, 0.06),
        0 40px 80px rgba(28, 25, 23, 0.08);
    border: 1px solid rgba(28, 25, 23, 0.07);
}

.hero-video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* ════════════════════════════════════════════════
   Feature Sections (index only)
   ════════════════════════════════════════════════ */
.feature-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 48px;
    border-top: 1px solid var(--grid-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-grid.reverse .feature-content { order: 2; }
.feature-grid.reverse .feature-mockup { order: 1; }

.feature-content { padding-right: 40px; }
.feature-grid.reverse .feature-content { padding-right: 0; padding-left: 40px; }

.feature-h2 {
    font-family: 'Space Mono', monospace;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 24px;
}

.feature-h2 .text-muted { color: var(--text-light); }

.feature-description {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

.feature-mockup {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(28, 25, 23, 0.07);
    box-shadow:
        0 2px 4px rgba(28, 25, 23, 0.03),
        0 8px 16px rgba(28, 25, 23, 0.04),
        0 20px 40px rgba(28, 25, 23, 0.06);
    padding: 32px;
}

/* ── Chat Mockup ── */
.chat-mockup { display: flex; flex-direction: column; gap: 16px; }

.chat-message { display: flex; align-items: flex-start; gap: 10px; }
.chat-message.user { justify-content: flex-end; }

.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.chat-bubble.user-bubble { background: #1c1917; color: white; }
.chat-bubble.bot-bubble { background: #f3f2f0; color: var(--text); flex: 1; }

.chat-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    margin-top: 8px;
}

.chat-table th {
    background: #efefef;
    color: var(--text);
    padding: 8px;
    text-align: left;
    font-weight: 500;
    font-family: 'Fragment Mono', monospace;
    border: none;
}

.chat-table td {
    padding: 8px;
    border: 1px solid #f0f0f0;
    font-family: 'Outfit', system-ui, sans-serif;
}

/* ── Mockup Title ── */
.mockup-title {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

/* ── Terms Table (mockup in index) ── */
.terms-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.terms-table th {
    background: #efefef;
    color: var(--text);
    padding: 8px;
    text-align: left;
    font-weight: 500;
    font-family: 'Fragment Mono', monospace;
    border: none;
}

.terms-table td {
    padding: 10px 8px;
    border: 1px solid #f0f0f0;
    font-family: 'Outfit', system-ui, sans-serif;
}

.terms-table .btn-action {
    font-family: 'Fragment Mono', monospace;
    font-size: 11px;
    background: #1c1917;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.terms-table .btn-action:hover { background: #2c2926; }

/* ── Campaigns Table ── */
.campaigns-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.campaigns-table th {
    background: #efefef;
    color: var(--text);
    padding: 8px;
    text-align: left;
    font-weight: 500;
    font-family: 'Fragment Mono', monospace;
    border: none;
}

.campaigns-table td {
    padding: 10px 8px;
    border: 1px solid #f0f0f0;
    font-family: 'Outfit', system-ui, sans-serif;
}

.campaigns-table .btn-pause {
    font-family: 'Fragment Mono', monospace;
    font-size: 11px;
    background: #1c1917;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.campaigns-table .btn-pause:hover { background: #2c2926; }

/* ── Mockup Footer ── */
.mockup-footer { display: flex; justify-content: flex-start; gap: 12px; }

.mockup-footer .btn-primary-small {
    font-family: 'Fragment Mono', monospace;
    font-size: 12px;
    background: #1c1917;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mockup-footer .btn-primary-small:hover { background: #2c2926; }

/* ── Dashboard Mockup ── */
.kpi-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: #f9f8f6;
    border: 1px solid #eae8e4;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.kpi-label {
    font-family: 'Fragment Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.kpi-value {
    font-family: 'Space Mono', monospace;
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.kpi-change {
    font-family: 'Fragment Mono', monospace;
    font-size: 11px;
    color: #ef4444;
}

.dashboard-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.dashboard-table th {
    background: #efefef;
    color: var(--text);
    padding: 8px;
    text-align: left;
    font-weight: 500;
    font-family: 'Fragment Mono', monospace;
    border: none;
}

.dashboard-table td {
    padding: 10px 8px;
    border: 1px solid #f0f0f0;
    font-family: 'Outfit', system-ui, sans-serif;
}

/* ════════════════════════════════════════════════
   CTA Section (index only)
   ════════════════════════════════════════════════ */
.cta-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 48px;
    text-align: center;
    border-top: 1px solid var(--grid-color);
}

.cta-h2 {
    font-family: 'Space Mono', monospace;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-subtext {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════
   FAQ Section (index only)
   ════════════════════════════════════════════════ */
.faq-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 48px;
    border-top: 1px solid var(--grid-color);
}

.faq-header { margin-bottom: 56px; }

.faq-label {
    font-family: 'Fragment Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.faq-h2 {
    font-family: 'Space Mono', monospace;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: var(--text);
}

.faq-list { display: flex; flex-direction: column; }

.faq-item { border-top: 1px solid var(--grid-color); }
.faq-item:last-child { border-bottom: 1px solid var(--grid-color); }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
    text-align: left;
}

.faq-question-text {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.3s ease;
}

.faq-icon svg { transition: transform 0.3s ease; }
.faq-item.open .faq-icon { border-color: var(--text); }
.faq-item.open .faq-icon svg { transform: rotate(45deg); }

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

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

.faq-answer-inner { padding-bottom: 28px; }

.faq-answer-inner p {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 680px;
}

/* ════════════════════════════════════════════════
   Footer (shared)
   ════════════════════════════════════════════════ */
.site-footer {
    position: relative;
    z-index: 1;
    background: #1c1917;
    padding: 48px 48px 40px;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 340px;
}

.site-footer-logo {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: rgba(248, 247, 244, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.site-footer-logo svg { color: rgba(248, 247, 244, 0.9); }

.site-footer-desc {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(248, 247, 244, 0.45);
}

.site-footer-copy {
    font-family: 'Fragment Mono', monospace;
    font-size: 12px;
    color: rgba(248, 247, 244, 0.3);
    margin-top: 4px;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding-top: 4px;
}

.site-footer-links a {
    font-family: 'Fragment Mono', monospace;
    font-size: 13px;
    color: rgba(248, 247, 244, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer-links a:hover { color: rgba(248, 247, 244, 0.9); }

/* ════════════════════════════════════════════════
   Animations (index only)
   ════════════════════════════════════════════════ */
.reveal { opacity: 0; }
.revealed { opacity: 1; transition: opacity 0.5s ease; }

.fade-up {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.fade-up-d1 { animation-delay: 0.05s; }
.fade-up-d2 { animation-delay: 0.1s; }
.fade-up-d3 { animation-delay: 0.15s; }

@keyframes fadeUp { to { opacity: 1; } }

.fade-in-scale {
    opacity: 0;
    animation: fadeInScale 0.5s ease 0.15s forwards;
}

@keyframes fadeInScale { to { opacity: 1; } }

/* ════════════════════════════════════════════════
   Legal Pages — Terms of Service
   ════════════════════════════════════════════════ */
.terms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 48px 100px;
}

.terms-header { margin-bottom: 64px; }

.terms-header h1 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.terms-header .effective-date {
    font-family: 'Fragment Mono', monospace;
    font-size: 14px;
    color: var(--text-muted);
}

.terms-section { margin-bottom: 48px; }

.terms-section h2 {
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--grid-color);
}

.terms-section h3 {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.terms-section p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 16px;
}

.terms-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.terms-section ul li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.terms-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.terms-section a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--text-light);
    transition: text-decoration-color 0.2s ease;
}

.terms-section a:hover { text-decoration-color: var(--text); }

/* ════════════════════════════════════════════════
   Legal Pages — Privacy Policy
   ════════════════════════════════════════════════ */
.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 48px 100px;
}

.privacy-header { margin-bottom: 64px; }

.privacy-header h1 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.privacy-header .effective-date {
    font-family: 'Fragment Mono', monospace;
    font-size: 14px;
    color: var(--text-muted);
}

.privacy-section { margin-bottom: 48px; }

.privacy-section h2 {
    font-family: 'Space Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--grid-color);
}

.privacy-section h3 {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.privacy-section p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 16px;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.privacy-section ul li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.privacy-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.privacy-section a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--text-light);
    transition: text-decoration-color 0.2s ease;
}

.privacy-section a:hover { text-decoration-color: var(--text); }

/* ════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .feature-grid.reverse .feature-content { order: 1; }
    .feature-grid.reverse .feature-mockup { order: 2; }
    .feature-content { padding-right: 0; }
    .feature-grid.reverse .feature-content { padding-left: 0; }

    .kpi-cards { grid-template-columns: 1fr; gap: 12px; }
    .feature-section { padding: 60px 24px; }
    .cta-section { padding: 60px 24px; }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn-ghost,
    .cta-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    nav { padding: 16px 24px; }
    .nav-links { display: none; }

    .hero { padding: 130px 24px 0; }
    .hero h1 { font-size: 32px; letter-spacing: -1px; }
    .hero-sub { font-size: 16px; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 300px;
        margin-bottom: 48px;
    }

    .btn-primary, .btn-ghost {
        text-align: center;
        justify-content: center;
    }

    .hero-video-wrapper { padding: 0 16px 60px; }
    .feature-h2 { font-size: 32px; letter-spacing: -1px; }
    .cta-h2 { font-size: 32px; letter-spacing: -1px; }
    .feature-mockup { padding: 20px; }

    .terms-table,
    .campaigns-table,
    .dashboard-table,
    .chat-table { font-size: 11px; }

    .terms-table th,
    .campaigns-table th,
    .dashboard-table th,
    .chat-table th { padding: 6px; }

    .terms-table td,
    .campaigns-table td,
    .dashboard-table td,
    .chat-table td { padding: 6px; }

    .terms-table .btn-action,
    .campaigns-table .btn-pause { padding: 4px 8px; font-size: 10px; }

    .faq-section { padding: 60px 24px; }
    .faq-h2 { font-size: 28px; letter-spacing: -1px; }
    .faq-question-text { font-size: 15px; }

    .site-footer { padding: 36px 24px 32px; }
    .site-footer-inner { flex-direction: column; gap: 32px; }
    .site-footer-links { flex-direction: row; gap: 20px; }

    /* Legal pages */
    .terms-container { padding: 120px 24px 60px; }
    .terms-header { margin-bottom: 40px; }
    .terms-section h2 { font-size: 18px; }

    .privacy-container { padding: 120px 24px 60px; }
    .privacy-header { margin-bottom: 40px; }
    .privacy-section h2 { font-size: 18px; }
}

@media (max-width: 480px) {
    .nav-actions .btn-signin { display: none; }

    .hero h1 { font-size: 26px; letter-spacing: -0.5px; }
    .feature-h2 { font-size: 24px; }
    .cta-h2 { font-size: 24px; }
    .chat-bubble { max-width: 95%; }
    .kpi-cards { gap: 8px; }
    .kpi-card { padding: 12px; }
    .kpi-value { font-size: 16px; }

    /* Legal pages */
    .terms-header h1 { font-size: 28px; letter-spacing: -1px; }
    .privacy-header h1 { font-size: 28px; letter-spacing: -1px; }
}
