/* ==========================================================================
   Frauddi Landing Page — Design System (matched to dashboard)
   Primary: #16B798 | Font: Inter | Dashboard-accurate tokens
   Compact density — mirrors the dashboard's info-dense, clean aesthetic
   ========================================================================== */

/* — Design Tokens — */
:root {
    /* Primary Brand */
    --primary: #16B798;
    --primary-hover: #14a589;
    --primary-dark: #0D9B7A;
    --primary-light: #E0F5F2;
    --primary-very-light: #F0FDFA;
    --primary-shadow: rgba(22, 183, 152, 0.3);
    --primary-shadow-light: rgba(22, 183, 152, 0.2);
    --primary-shadow-subtle: rgba(22, 183, 152, 0.1);
    --primary-tint: rgba(22, 183, 152, 0.08);

    /* Accent — AI / Indigo */
    --indigo: #6366F1;
    --indigo-dark: #4F46E5;
    --violet: #8B5CF6;
    --violet-dark: #7C3AED;

    /* Semantic */
    --error: #DC2626;
    --error-bright: #EF4444;
    --warning: #F59E0B;
    --success: #16A34A;
    --info: #0284C7;

    /* Neutrals (from dashboard) */
    --text-loudest: #111827;
    --text-dark: #1E293B;
    --text: #374151;
    --text-slate: #475569;
    --text-medium: #6b7280;
    --text-muted: #9ca3af;
    --text-slate-light: #94A3B8;

    /* Borders */
    --border: #e5e7eb;
    --border-light: #E2E8F0;
    --border-subtle: #d1d5db;

    /* Backgrounds */
    --white: #ffffff;
    --bg-page: #f8fbfa;
    --bg-light: #f9fafb;
    --bg-subtle: #F8FAFC;
    --bg-lighter: #F1F5F9;
    --bg-divider: #f3f4f6;
    --bg-dark: #1E293B;
    --bg-dark-alt: #334155;

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'SF Mono', 'JetBrains Mono', 'Monaco', 'Menlo', monospace;

    /* Shadows (dashboard-accurate) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Radius (dashboard values) */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-pill: 99px;

    /* Layout */
    --max-w: 1140px;
    --nav-h: 48px;

    /* Transitions */
    --ease: 0.2s ease;
    --ease-smooth: 0.3s 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; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 13px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--ease); }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* — Scrollbar (dashboard style) — */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* — Utilities — */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}
.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-loudest);
    margin-bottom: 10px;
}
.section-sub {
    font-size: 14px;
    color: var(--text-medium);
    max-width: 540px;
    line-height: 1.6;
}

/* — Buttons (dashboard-matched) — */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font);
    font-weight: 500;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--ease);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: 1px solid var(--primary);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--primary-shadow);
}
.btn--primary:active { transform: scale(0.98); }
.btn--outline {
    background: var(--white);
    color: var(--text-medium);
    border: 1px solid var(--border);
}
.btn--outline:hover {
    background: var(--bg-light);
    border-color: var(--border-subtle);
    color: var(--text);
}
.btn--large {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.btn--ghost {
    background: transparent;
    color: var(--text-medium);
}
.btn--ghost:hover { color: var(--primary); }

/* — Nav (dashboard header style, compact 48px) — */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--ease-smooth);
}
.nav--scrolled { border-bottom-color: var(--border); }
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}
.nav__logo {
    display: flex;
    align-items: center;
}
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--ease);
}
.nav__links a:hover {
    background: var(--primary-tint);
    color: var(--primary);
}
.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}
.nav__toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--text-loudest);
    border-radius: 2px;
    transition: var(--ease);
}

/* Language toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
}
.lang-toggle a {
    padding: 3px 8px;
    color: var(--text-muted);
    transition: all var(--ease);
}
.lang-toggle a:hover { color: var(--primary); background: var(--primary-tint); }
.lang-toggle a.active {
    background: var(--primary);
    color: var(--white);
}

/* PRO badge for docs links */
.badge-pro {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
    color: var(--white);
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    margin-left: 4px;
    vertical-align: middle;
}

/* Mobile nav */
.nav__mobile {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow-xl);
    z-index: 49;
}
.nav__mobile.active { display: flex; }
.nav__mobile a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--ease);
}
.nav__mobile a:hover {
    background: var(--primary-tint);
    color: var(--primary);
}

/* — Hero (compact) — */
.hero {
    padding-top: 96px;
    padding-bottom: 16px;
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(22, 183, 152, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(22, 183, 152, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
.hero__content { text-align: center; position: relative; z-index: 1; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-very-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
    border: 1px solid var(--primary-light);
}
.hero__badge-dot {
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero__title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-loudest);
    margin-bottom: 12px;
}
.hero__title span { color: var(--primary); }
.hero__subtitle {
    font-size: clamp(14px, 1.8vw, 15px);
    color: var(--text-medium);
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.hero__ctas {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    max-width: 500px;
    margin: 0 auto 36px;
}
.hero__stat { text-align: center; }
.hero__stat-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-loudest);
    letter-spacing: -0.02em;
}
.hero__stat-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.hero__screenshot {
    max-width: 980px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.04);
    position: relative;
}
.hero__screenshot img {
    width: 100%;
    display: block;
    cursor: zoom-in;
}
.hero__screenshot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

/* — Trust (compact) — */
.trust {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.trust__inner { text-align: center; }
.trust__label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 500;
}

/* — Problem — */
.problem {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    color: var(--white);
}
.problem .section-tag { color: var(--primary); }
.problem .section-title { color: var(--white); }
.problem .section-sub { color: var(--text-muted); }
.problem__region-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin: 32px 0 0;
    text-align: center;
}
.problem__region-label:first-of-type {
    margin-top: 0;
}
.problem__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}
.problem__card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--ease);
}
.problem__card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(22, 183, 152, 0.3);
    transform: translateY(-2px);
}
.problem__num {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}
.problem__text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.problem__source {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 10px;
    color: var(--text-slate-light);
    margin-top: 24px;
    text-align: center;
    opacity: 0.7;
}
.problem__source a {
    color: var(--text-slate-light);
    text-decoration: underline;
    text-decoration-color: rgba(148, 163, 184, 0.3);
    text-underline-offset: 2px;
}
.problem__source a:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
}

/* — Features (compact cards) — */
.features__header { text-align: center; margin-bottom: 36px; }
.features__header .section-sub { margin: 0 auto; }
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.fcard {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 20px 18px;
    transition: all var(--ease);
    position: relative;
    overflow: hidden;
}
.fcard:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px var(--primary-shadow-subtle);
    transform: translateY(-2px);
}
.fcard__icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary-very-light) 0%, #CCFBF1 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 17px;
}
.fcard h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.fcard p {
    font-size: 12px;
    color: var(--text-medium);
    line-height: 1.6;
}
.fcard__tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.05em;
}

/* — Use Cases (interactive list) — */
.usecases { background: var(--bg-page); padding: 40px 0; }
.usecases__header { text-align: center; margin-bottom: 32px; }
.usecases__header .section-sub { margin: 0 auto; }
.usecases__layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}
.usecases__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.usecases__item {
    padding: 16px 20px;
    border-left: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--ease-smooth);
}
.usecases__item:hover {
    border-left-color: var(--primary);
}
.usecases__item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
    transition: color var(--ease-smooth);
}
.usecases__item:hover .usecases__item-title {
    color: var(--text);
}
.usecases__item.active {
    border-left-color: var(--primary);
    background: var(--white);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
}
.usecases__item.active .usecases__item-title {
    color: var(--text-loudest);
}
/* Mobile accordion description (hidden on desktop) */
.usecases__item-desc-mobile {
    display: none;
    font-size: 12px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.usecases__detail {
    padding: 36px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    overflow: hidden;
}
.usecases__detail::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 183, 152, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.usecases__detail-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
}
.usecases__detail-desc {
    font-size: 13px;
    color: var(--border-subtle);
    line-height: 1.8;
    position: relative;
}

/* — Showcase (compact) — */
.showcase { background: var(--bg-page); padding-top: 40px; }
.showcase__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px 0;
}
.showcase__item:not(:last-child) { border-bottom: 1px solid var(--border); }
.showcase__item--rev .showcase__img { order: -1; }
.showcase__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 8px;
}
.showcase__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text-loudest);
}
.showcase__desc {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 16px;
}
.showcase__bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.showcase__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-slate);
}
.showcase__bullets li::before {
    content: '';
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: var(--primary-light);
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%2316B798' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.showcase__img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
}
.showcase__img img {
    width: 100%;
    display: block;
    cursor: zoom-in;
}

/* — AI Section (compact) — */
.ai {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    color: var(--white);
    overflow: hidden;
    position: relative;
}
.ai::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 183, 152, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.ai .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.ai .section-title { color: var(--white); }
.ai .section-sub { color: var(--text-muted); }
.ai__img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ai__img img {
    width: 100%;
    display: block;
    cursor: zoom-in;
}

/* — Lightbox — */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox__card {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
    cursor: default;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.lightbox.active .lightbox__card {
    transform: scale(1) translateY(0);
}
.lightbox__card img {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 80px);
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    color: var(--text-slate);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}
.lightbox__close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.ai__bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.ai__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--border-subtle);
}
.ai__bullets li::before {
    content: '';
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: rgba(22, 183, 152, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%2316B798' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1px;
}

/* — Values (compact) — */
.values__header { text-align: center; margin-bottom: 36px; }
.values__header .section-sub { margin: 0 auto; }
.values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.vcard {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 20px 18px;
    transition: all var(--ease);
}
.vcard:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.vcard__num {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--mono);
    margin-bottom: 10px;
    padding: 2px 6px;
    background: var(--primary-very-light);
    border-radius: var(--radius-xs);
    display: inline-block;
}
.vcard h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}
.vcard p {
    font-size: 12px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* — Open Source (compact) — */
.oss {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
}
.oss__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
pre.oss__code {
    margin: 0;
    white-space: pre;
}
.oss__code {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.oss__code code { font-family: inherit; font-size: inherit; color: inherit; }
.oss__code .c { color: var(--text-slate-light); }
.oss__code .k { color: var(--primary); }
.oss__code .s { color: var(--violet); }

/* — CTA / Demo Form (compact) — */
.cta {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    color: var(--white);
}
.cta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.cta .section-title { color: var(--white); }
.cta__copy { }
.cta__sub {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.cta__highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cta__highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--border-subtle);
}
.cta__highlights li::before {
    content: '';
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: rgba(22, 183, 152, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%2316B798' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
/* Form card */
.cta__form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-xl);
}
.cta__form-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-loudest);
    margin-bottom: 18px;
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form__group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.form__group--full { grid-column: 1 / -1; }
.form__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form__label .form__opt {
    font-weight: 400;
    text-transform: none;
    color: var(--text-muted);
    letter-spacing: 0;
}
.form__input,
.form__textarea {
    font-family: var(--font);
    font-size: 13px;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    transition: all var(--ease);
    outline: none;
}
.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-muted);
}
.form__input:focus,
.form__textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-shadow-subtle);
    background: var(--white);
}
.form__textarea {
    resize: vertical;
    min-height: 72px;
}
.form__submit {
    width: 100%;
    margin-top: 4px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: 1px solid var(--primary);
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--primary-shadow);
}
.form__submit:active { transform: scale(0.98); }
.form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.form__submit .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}
.form__submit.loading .spinner { display: block; }
.form__submit.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Feedback states */
.form__feedback {
    display: none;
    text-align: center;
    padding: 24px 16px;
}
.form__feedback.active { display: block; }
.form__feedback-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.form__feedback--success .form__feedback-icon {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.form__feedback--error .form__feedback-icon {
    background: #FEE2E2;
    color: var(--error);
}
.form__feedback-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-loudest);
    margin-bottom: 6px;
}
.form__feedback-text {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.5;
}
.form__feedback .btn {
    margin-top: 16px;
}

/* — Footer (compact) — */
.footer {
    background: var(--text-loudest);
    color: var(--text-muted);
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer__logo {
    display: flex;
    align-items: center;
}
.footer__logo img {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
}
.footer__links { display: flex; gap: 20px; }
.footer__links a {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.footer__links a:hover { color: var(--primary); }
.footer__copy {
    font-size: 11px;
    color: var(--text-slate-light);
    width: 100%;
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* — Animations — */
@media (prefers-reduced-motion: no-preference) {
    .fade-up {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
    .s1 { transition-delay: 0.08s; }
    .s2 { transition-delay: 0.16s; }
    .s3 { transition-delay: 0.24s; }
    .s4 { transition-delay: 0.32s; }
}

/* — Responsive — */
@media (max-width: 1024px) {
    .problem__grid { grid-template-columns: repeat(2, 1fr); }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .showcase__item,
    .showcase__item--rev { grid-template-columns: 1fr; }
    .showcase__item--rev .showcase__img { order: 0; }
    .ai .container { grid-template-columns: 1fr; }
    .oss__inner { grid-template-columns: 1fr; }
    .cta .container { grid-template-columns: 1fr; }
    .cta__copy { text-align: center; }
    .cta__highlights { align-items: center; }
    /* Use cases: switch to accordion on tablet */
    .usecases__layout { grid-template-columns: 1fr; }
    .usecases__detail { display: none; }
    .usecases__item.active .usecases__item-desc-mobile { display: block; }
}

@media (max-width: 768px) {
    .section { padding: 48px 0; }
    .nav__links,
    .nav__actions { display: none; }
    .nav__toggle { display: flex; }
    .hero { padding-top: 80px; }
    .hero__stats { gap: 24px; }
    .hero__stat-num { font-size: 20px; }
    .problem__grid,
    .features__grid,
    .values__grid { grid-template-columns: 1fr; }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__links { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

@media (max-width: 480px) {
    .hero__ctas { flex-direction: column; align-items: center; }
    .hero__stats { flex-direction: column; gap: 16px; }
    .container { padding: 0 16px; }
    .form__row { grid-template-columns: 1fr; }
}
