/* ═══════════════════════════════════════════════════════════
   FreshFile — Design System
   Aesthetic: Dark editorial. Carbon black, warm cream, electric teal.
   Fonts: DM Serif Display (headlines) + DM Sans (body)
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

/* ── Tokens ────────────────────────────────────────────────── */
:root {
    --bg: #090909;
    --bg-2: #101010;
    --bg-3: #141414;
    --bg-card: #111111;
    --border: rgba(255, 255, 255, 0.07);
    --border-em: rgba(0, 229, 204, 0.25);

    --text: #e8e2d6;
    --text-dim: #7a7168;
    --text-muted: #4a443b;

    --teal: #00e5cc;
    --teal-dim: rgba(0, 229, 204, 0.12);
    --teal-glow: rgba(0, 229, 204, 0.08);

    --amber: #f59e0b;
    --red: #ef4444;
    --green: #22c55e;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ── Grain overlay ─────────────────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
}

/* ── Container ─────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal);
    color: #080f0e;
}

.btn-primary:hover {
    background: #00f0d5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 229, 204, 0.28);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

/* ════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(9, 9, 9, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.8px;
}

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

.nav-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--text);
    padding: 0 8px;
    margin-bottom: 28px;
    letter-spacing: -0.6px;
}

.sidebar-logo span {
    color: var(--teal);
}

.sidebar-logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text-dim);
    letter-spacing: -0.6px;
}

.footer-logo span {
    color: var(--teal);
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    opacity: 0.75;
}

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

.nav-links a {
    display: block;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 32px 80px;
    position: relative;
    overflow: hidden;
}

/* Background glow blobs */
.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 229, 204, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 204, 0.04) 0%, transparent 70%);
    bottom: 5%;
    right: 10%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal-dim);
    border: 1px solid var(--border-em);
    color: var(--teal);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px 6px 10px;
    border-radius: 100px;
    margin-bottom: 36px;
    animation: fadeSlideIn 0.7s ease both;
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.75);
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(46px, 7vw, 82px);
    letter-spacing: -1.5px;
    max-width: 820px;
    margin-bottom: 24px;
    animation: fadeSlideIn 0.75s 0.1s ease both;
}

.hero-title em {
    font-style: italic;
    color: var(--teal);
}

.hero-sub {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 580px;
    line-height: 1.65;
    margin-bottom: 48px;
    animation: fadeSlideIn 0.75s 0.2s ease both;
}

.hero-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 520px;
    width: 100%;
    animation: fadeSlideIn 0.75s 0.3s ease both;
}

.hero-arrow-btn {
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.hero-social-proof {
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-muted);
    animation: fadeSlideIn 0.75s 0.4s ease both;
}

.hero-social-proof span {
    color: var(--text-dim);
}

/* ════════════════════════════════════════════════════════════
   FORM INPUTS (shared)
════════════════════════════════════════════════════════════ */
.input-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.input-wrap input[type="email"],
.input-wrap input[type="text"] {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 14px 22px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.input-wrap input:focus {
    border-color: var(--teal);
    background: #111;
    box-shadow: 0 0 0 3px rgba(0, 229, 204, 0.1);
}

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

/* ════════════════════════════════════════════════════════════
   SECTION WRAPPER
════════════════════════════════════════════════════════════ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -0.8px;
}

.section-header p {
    margin-top: 16px;
    font-size: 17px;
    color: var(--text-dim);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ════════════════════════════════════════════════════════════
   PROBLEM / SOLUTION
════════════════════════════════════════════════════════════ */
.problem {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

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

.problem-text h2 {
    font-size: clamp(30px, 3.5vw, 46px);
    margin-bottom: 20px;
    letter-spacing: -0.6px;
}

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

.problem-text p strong {
    color: var(--text);
}

.meet-freshfile {
    margin-top: 32px;
    padding: 24px;
    background: var(--teal-glow);
    border: 1px solid var(--border-em);
    border-radius: var(--radius);
}

.meet-freshfile p {
    color: var(--text) !important;
    margin: 0 !important;
    font-size: 15px !important;
}

/* Broken file visualization */
.broken-file-vis {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
}

.file-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.file-icon {
    font-size: 20px;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}

.data-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.data-cell {
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    background: var(--bg-3);
    color: var(--text-dim);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.data-cell.header {
    background: var(--border);
    color: var(--text);
    font-weight: 700;
}

.data-cell.error {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.data-cell.warn {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ════════════════════════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════════════════════ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

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

/* Connector lines between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 42px;
    left: calc(33.33% - 12px);
    right: calc(33.33% - 12px);
    height: 1px;
    background: linear-gradient(90deg, var(--teal-dim), var(--border-em), var(--teal-dim));
    pointer-events: none;
}

@media (max-width: 820px) {
    .steps-grid::before {
        display: none;
    }
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    border-color: var(--border-em);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--teal-dim);
    border: 1px solid var(--border-em);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--teal);
    margin-bottom: 24px;
}

.step-card h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   MOCK UI SECTION
════════════════════════════════════════════════════════════ */
.mock-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mock-browser {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    max-width: 900px;
    margin: 0 auto;
}

.browser-bar {
    background: #0d0d0d;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) {
    background: #ff5f57;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background: #28ca41;
}

.browser-url {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

.app-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 500px;
}

@media (max-width: 700px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        display: none;
    }
}

.app-sidebar {
    background: #090909;
    border-right: 1px solid var(--border);
    padding: 24px 16px;
}


.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-item:hover {
    background: var(--bg-2);
    color: var(--text);
}

.sidebar-item.active {
    background: var(--teal-dim);
    color: var(--teal);
}

.sidebar-item .icon {
    width: 16px;
    text-align: center;
}

.app-main {
    padding: 28px 32px;
    overflow: hidden;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.app-topbar h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
}

/* Step tabs inside mock */
.mock-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
}

.mock-tab {
    flex: 1;
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    user-select: none;
}

.mock-tab.active {
    background: var(--bg-card);
    color: var(--teal);
    border: 1px solid var(--border-em);
}

/* Mock step panels */
.mock-panel {
    display: none;
}

.mock-panel.active {
    display: block;
    animation: fadeSlideIn 0.35s ease both;
}

/* Schema panel */
.schema-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schema-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 11px 16px;
}

.field-name {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--teal);
    font-weight: 600;
    min-width: 130px;
}

.field-type {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 2px 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.field-rule {
    font-size: 11px;
    color: var(--text-muted);
    flex: 1;
    text-align: right;
}

.field-required {
    font-size: 10px;
    color: var(--teal);
    background: var(--teal-dim);
    border-radius: 4px;
    padding: 2px 7px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Mapping panel */
.mapping-header {
    display: grid;
    grid-template-columns: 1fr 32px 1fr 80px;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 12px;
}

.mapping-header span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.mapping-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mapping-row {
    display: grid;
    grid-template-columns: 1fr 32px 1fr 80px;
    gap: 8px;
    align-items: center;
}

.mapping-source,
.mapping-target {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-dim);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mapping-target {
    color: var(--teal);
    border-color: rgba(0, 229, 204, 0.15);
}

.mapping-arrow {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.mapping-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-align: center;
}

.status-ok {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.status-fix {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.status-err {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

/* Transform result bar */
.transform-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.result-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.result-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 3px 10px;
    border-radius: 100px;
}

.result-filename {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
}

.result-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.result-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Clean data grid */
.clean-grid-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}

.clean-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.clean-grid thead tr {
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}

.clean-grid th {
    padding: 9px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 0.3px;
}

.clean-grid tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--transition);
}

.clean-grid tbody tr:last-child {
    border-bottom: none;
}

.clean-grid tbody tr:hover {
    background: rgba(0, 229, 204, 0.03);
}

.clean-grid td {
    padding: 9px 14px;
    color: var(--text-dim);
}

.clean-grid tbody tr td:first-child {
    color: var(--text);
}

.grid-footnote {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    padding-left: 4px;
}

/* Survey textarea */
.survey-textarea {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    line-height: 1.65;
    resize: vertical;
    outline: none;
    transition: var(--transition);
    min-height: 100px;
}

.survey-textarea:focus {
    border-color: var(--teal);
    background: #111;
    box-shadow: 0 0 0 3px rgba(0, 229, 204, 0.08);
}

.survey-textarea::placeholder {
    color: var(--text-muted);
}


/* ════════════════════════════════════════════════════════════
   VALUE PROPS
════════════════════════════════════════════════════════════ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--border-em);
    background: #131313;
    transform: translateY(-3px);
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--teal-dim);
    border: 1px solid var(--border-em);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.value-card h3 {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   WAITLIST / SURVEY SECTION
════════════════════════════════════════════════════════════ */
.waitlist-section {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.waitlist-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 64px 56px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.waitlist-card::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 204, 0.04) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

@media (max-width: 700px) {
    .waitlist-card {
        padding: 40px 28px;
    }
}

.waitlist-card h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.waitlist-card .sub {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 40px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.waitlist-input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.waitlist-input-row .input-wrap {
    flex: 1;
    min-width: 200px;
}

.waitlist-input-row .input-wrap input {
    border-radius: var(--radius);
    width: 100%;
}

/* Survey checkboxes */
.survey-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.checkbox-item:hover {
    border-color: rgba(0, 229, 204, 0.2);
    background: var(--bg-3);
}

.checkbox-item.checked {
    border-color: var(--border-em);
    background: var(--teal-glow);
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
}

.checkbox-item input[type="checkbox"]:checked {
    background: var(--teal);
    border-color: var(--teal);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: 2px solid #080f0e;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.checkbox-item .check-label {
    font-size: 14px;
    color: var(--text-dim);
}

.checkbox-item.checked .check-label {
    color: var(--text);
}

.other-input {
    margin-top: 8px;
    display: none;
}

.other-input.visible {
    display: block;
}

.other-input input {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

.other-input input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 229, 204, 0.1);
}

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

.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 8px;
}

.submit-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* Form states */
.form-msg {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-msg.show {
    display: block;
}

.form-msg.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.form-msg.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

/* Success overlay */
.success-state {
    display: none;
    text-align: center;
    padding: 24px 0;
    animation: fadeSlideIn 0.5s ease both;
}

.success-state.show {
    display: block;
}

.success-check {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.success-state h3 {
    font-size: 26px;
    font-family: var(--font-display);
    margin-bottom: 10px;
}

.success-state p {
    color: var(--text-dim);
    font-size: 15px;
    max-width: 360px;
    margin: 0 auto;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

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


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

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

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

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

/* ── Loading spinner for button ────────────────────────────── */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(8, 15, 14, 0.3);
    border-top-color: #080f0e;
    border-radius: 50%;
    display: none;
    animation: spin 0.7s linear infinite;
}

.btn.loading .btn-spinner {
    display: inline-block;
}

.btn.loading .btn-text {
    display: none;
}

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

/* ════════════════════════════════════════════════════════════
   MOBILE — 768px
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Container + sections */
    .container {
        padding: 0 20px;
    }

    section {
        padding: 72px 0;
    }

    /* Nav */
    .nav {
        padding: 16px 0;
    }

    .nav.scrolled {
        padding: 12px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-cta .btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Hero */
    .hero {
        padding: 100px 20px 64px;
        min-height: auto;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-form {
        flex-direction: column;
        gap: 10px;
    }

    .hero-form .input-wrap {
        min-width: unset;
        width: 100%;
    }

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

    /* Problem grid already 1-col at 820px — tighten viz */
    .broken-file-vis {
        padding: 16px;
    }

    .data-row {
        gap: 5px;
    }

    .data-cell {
        font-size: 10px;
        padding: 5px 7px;
    }

    /* Mock browser */
    .mock-browser {
        border-radius: 16px;
    }

    .app-main {
        padding: 20px 16px;
    }

    .app-topbar {
        margin-bottom: 16px;
    }

    .app-topbar h3 {
        font-size: 15px;
    }

    .app-topbar button {
        display: none;
    }

    /* hide Save Schema on mobile */

    /* Mock tabs — smaller text */
    .mock-tabs {
        gap: 3px;
        padding: 3px;
    }

    .mock-tab {
        font-size: 10px;
        padding: 7px 6px;
    }

    /* Schema fields — stack on mobile */
    .schema-field {
        flex-wrap: wrap;
        gap: 6px;
    }

    .field-name {
        min-width: unset;
        width: 100%;
    }

    .field-rule {
        text-align: left;
    }

    /* Mapping — hide arrow col, compress */
    .mapping-header,
    .mapping-row {
        grid-template-columns: 1fr 1fr 64px;
        gap: 6px;
    }

    .mapping-arrow {
        display: none;
    }

    /* Result bar — stack */
    .transform-result-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .result-filename {
        font-size: 11px;
        word-break: break-all;
    }

    /* Value cards already 1-col at 700px */
    .value-card {
        padding: 24px;
    }

    /* Waitlist card */
    .waitlist-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .waitlist-card h2 {
        font-size: 28px;
    }

    .waitlist-card .sub {
        font-size: 15px;
        margin-bottom: 28px;
    }

    /* Submit row — stack */
    .submit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-links {
        gap: 16px;
    }
}

/* ════════════════════════════════════════════════════════════
   MOBILE — 480px (small phones)
════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

    /* Container + sections */
    .container {
        padding: 0 16px;
    }

    section {
        padding: 56px 0;
    }

    /* Hero badge + spacing */
    .hero {
        padding: 88px 16px 52px;
    }

    .hero-badge {
        font-size: 12px;
    }

    .hero-social-proof {
        font-size: 12px;
    }

    /* Problem: reduce padding */
    .problem {
        padding: 56px 0;
    }

    .meet-freshfile {
        padding: 18px;
    }

    /* Hide broken vis columns to 2 on tiny screens */
    .data-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-row .data-cell:nth-child(3),
    .data-row .data-cell:nth-child(4) {
        display: none;
    }

    /* Mock tabs — even tighter */
    .mock-tab {
        font-size: 9px;
        padding: 6px 4px;
        letter-spacing: -0.2px;
    }

    /* Mapping — single visible pair */
    .mapping-header,
    .mapping-row {
        grid-template-columns: 1fr 1fr;
    }

    .mapping-status {
        display: none;
    }

    /* Schema field rule hidden at tiny sizes */
    .field-rule {
        display: none;
    }

    /* Waitlist card */
    .waitlist-card {
        padding: 28px 18px;
    }

    .survey-textarea {
        font-size: 13px;
    }

    /* Step cards */
    .step-card {
        padding: 24px 20px;
    }
}