/* ═══════════════════════════════════════════════════════════
   MES Atipic — marketing site styles
   Light default · dark via [data-theme="dark"]
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #0d9488;
    --primary-strong: #0f766e;
    --primary-soft: rgba(13, 148, 136, 0.10);
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.10);
    --green: #16a34a;
    --orange: #ea580c;
    --purple: #7c3aed;
    --red: #dc2626;

    --bg: #f6f9fb;
    --bg-alt: #eef4f6;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #5b6b7f;
    --border: #dfe8ee;
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 60px -24px rgba(15, 23, 42, .25);
    --header-bg: rgba(255, 255, 255, .82);
    --grad: linear-gradient(92deg, #0d9488 0%, #2563eb 100%);
    --radius: 14px;
    --radius-lg: 20px;
}

[data-theme="dark"] {
    --bg: #0b1220;
    --bg-alt: #0e1729;
    --surface: #121e33;
    --surface-2: #182742;
    --text: #eaf1f8;
    --text-2: #c3d0de;
    --muted: #8fa3b8;
    --border: rgba(148, 163, 184, .18);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 30px 70px -28px rgba(0, 0, 0, .65);
    --header-bg: rgba(11, 18, 32, .82);
    --primary-soft: rgba(45, 212, 191, 0.10);
    --accent-soft: rgba(96, 165, 250, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; overflow-x: clip; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
    transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary, .btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-weight: 600; border-radius: 12px; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    border: none; font-family: inherit;
}
.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 8px 24px -8px rgba(13, 148, 136, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(13, 148, 136, .65); }
.btn-outline {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── Section scaffolding ─────────────────────────────────── */
section { padding: 92px 0; }
.section-tag {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary);
    font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 18px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.16; font-weight: 800; letter-spacing: -.02em; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-desc { color: var(--muted); font-size: 17px; margin-top: 18px; }
.section-desc-left { color: var(--muted); font-size: 17px; margin: 18px 0 26px; }
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Header ──────────────────────────────────────────────── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: var(--header-bg);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .3s ease;
}
.header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav-link { font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color .15s; white-space: nowrap; }
.nav-link:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-switcher, .theme-switcher {
    display: flex; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 3px; gap: 2px;
}
.lang-btn, .theme-btn {
    display: flex; align-items: center; gap: 5px;
    background: transparent; border: none; cursor: pointer;
    padding: 5px 9px; border-radius: 8px;
    font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted);
    transition: all .15s ease;
}
.lang-btn.active, .theme-btn.active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.lang-btn:hover:not(.active), .theme-btn:hover:not(.active) { color: var(--text); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; padding: 168px 0 100px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-orb-1 { width: 480px; height: 480px; background: rgba(13, 148, 136, .25); top: -140px; right: -80px; }
.hero-orb-2 { width: 420px; height: 420px; background: rgba(37, 99, 235, .18); bottom: -180px; left: -120px; }
.hero-grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px; opacity: .35;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--surface); border: 1px solid var(--border);
    padding: 7px 15px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; color: var(--text-2);
    box-shadow: var(--shadow); margin-bottom: 26px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(22,163,74,.2);} 50% { box-shadow: 0 0 0 7px rgba(22,163,74,.06);} }
.hero-title { font-size: clamp(34px, 5vw, 56px); font-weight: 900; line-height: 1.08; letter-spacing: -.025em; }
.hero-subtitle { color: var(--muted); font-size: 18px; margin: 24px 0 32px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.chip {
    display: inline-flex; align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 6px 14px;
    font-size: 13px; font-weight: 600; color: var(--text-2);
}

.hero-visual { position: relative; }
.browser-frame {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-shot { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s ease; }
.hero-visual:hover .hero-shot { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.browser-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 14px; background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.bdot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser-bar .bdot:nth-child(1) { background: #f87171; }
.browser-bar .bdot:nth-child(2) { background: #fbbf24; }
.browser-bar .bdot:nth-child(3) { background: #34d399; }
.browser-url {
    margin-left: 10px; font-size: 12px; color: var(--muted);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 7px; padding: 3px 12px;
}

.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    animation: floaty 5.5s ease-in-out infinite;
}
.float-card-1 { top: -22px; right: 6px; animation-delay: 0s; }
.float-card-2 { bottom: -20px; left: -14px; animation-delay: 1.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-9px);} }
.fc-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fc-blue { background: var(--accent-soft); color: var(--accent); }
.fc-green { background: rgba(22, 163, 74, .12); color: var(--green); }
.fc-title { font-size: 14px; font-weight: 700; line-height: 1.25; }
.fc-sub { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* ── Fact strip ──────────────────────────────────────────── */
.fact-strip { padding: 0 0 8px; }
.fact-strip-inner {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 34px;
    box-shadow: var(--shadow);
}
.fact { text-align: center; padding: 4px 8px; }
.fact-value {
    font-size: 21px; font-weight: 800; letter-spacing: -.01em;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    white-space: nowrap;
}
.fact-label { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ── Pain / solution ─────────────────────────────────────── */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pain-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.pain-problem, .pain-solution { display: flex; gap: 13px; padding: 20px 24px; align-items: flex-start; }
.pain-problem { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.pain-problem p { color: var(--muted); font-size: 15px; }
.pain-solution p { font-size: 15px; font-weight: 500; }
.pain-x {
    color: var(--red); font-weight: 800; font-size: 14px; flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 8px; background: rgba(220, 38, 38, .1);
    display: flex; align-items: center; justify-content: center;
}
.pain-check {
    color: var(--green); font-weight: 800; font-size: 14px; flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 8px; background: rgba(22, 163, 74, .12);
    display: flex; align-items: center; justify-content: center;
}

/* ── Features ────────────────────────────────────────────── */
.features { background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px 24px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 50px; height: 50px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 17px;
}
.fi-blue { background: var(--accent-soft); color: var(--accent); }
.fi-teal { background: var(--primary-soft); color: var(--primary); }
.fi-purple { background: rgba(124, 58, 237, .10); color: var(--purple); }
.fi-orange { background: rgba(234, 88, 12, .10); color: var(--orange); }
.fi-green { background: rgba(22, 163, 74, .10); color: var(--green); }
.feature-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ── Screenshots ─────────────────────────────────────────── */
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shot-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease;
}
.shot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot-img { overflow: hidden; border-bottom: 1px solid var(--border); background: #fff; }
.shot-img img { width: 100%; transition: transform .35s ease; }
.shot-card:hover .shot-img img { transform: scale(1.02); }
.shot-card figcaption { padding: 16px 22px 18px; display: flex; flex-direction: column; gap: 3px; }
.shot-card figcaption strong { font-size: 15.5px; font-weight: 700; }
.shot-card figcaption span { font-size: 13.5px; color: var(--muted); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(8, 13, 24, .92);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .25s ease;
    padding: 40px;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: min(1400px, 94vw); max-height: 82vh;
    border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.6);
    background: #fff;
}
.lightbox-caption { color: #cbd5e1; font-size: 14.5px; margin-top: 16px; font-weight: 600; }
.lightbox-close {
    position: absolute; top: 22px; right: 28px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #fff; width: 42px; height: 42px; border-radius: 50%;
    font-size: 17px; cursor: pointer; transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ── How it works ────────────────────────────────────────── */
.how { background: var(--bg-alt); }
.flow { display: flex; align-items: stretch; gap: 6px; }
.flow-step {
    flex: 1; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px 18px;
    box-shadow: var(--shadow); text-align: center;
    transition: transform .2s ease, border-color .2s ease;
}
.flow-step:hover { transform: translateY(-4px); border-color: var(--primary); }
.flow-num {
    width: 34px; height: 34px; margin: 0 auto 12px;
    background: var(--grad); color: #fff;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px;
}
.flow-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.flow-step p { font-size: 12.8px; color: var(--muted); line-height: 1.5; }
.flow-arrow { display: flex; align-items: center; color: var(--primary); font-weight: 800; font-size: 18px; flex-shrink: 0; }

/* ── Industry ────────────────────────────────────────────── */
.industry-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.industry-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.industry-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 500; }
.li-check {
    color: var(--green); font-weight: 800; flex-shrink: 0; font-size: 13px;
    width: 23px; height: 23px; border-radius: 8px; background: rgba(22, 163, 74, .12);
    display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.param-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
    box-shadow: var(--shadow-lg);
}
.param-title { font-weight: 700; font-size: 15.5px; margin-bottom: 20px; }
.param-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.param {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 13px 16px;
    display: flex; flex-direction: column; gap: 3px;
}
.param-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.param-value { font-size: 17px; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
.param-footer { margin-top: 18px; font-size: 13px; color: var(--muted); font-style: italic; }

/* ── Technology ──────────────────────────────────────────── */
.technology { background: var(--bg-alt); }
.arch-flow {
    display: flex; align-items: stretch; gap: 0;
    margin-bottom: 44px;
}
.arch-node {
    flex: 1; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 20px;
    box-shadow: var(--shadow); text-align: center;
    transition: transform .2s ease, border-color .2s ease;
}
.arch-node:hover { transform: translateY(-4px); border-color: var(--primary); }
.arch-icon {
    width: 48px; height: 48px; margin: 0 auto 12px;
    background: var(--primary-soft); color: var(--primary);
    border-radius: 13px; display: flex; align-items: center; justify-content: center;
}
.arch-name { font-weight: 800; font-size: 16px; margin-bottom: 5px; letter-spacing: -.01em; }
.arch-desc { font-size: 12.8px; color: var(--muted); line-height: 1.5; }
.arch-link {
    width: 44px; flex-shrink: 0; position: relative; align-self: center; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: .55;
}
.arch-link::after {
    content: ''; position: absolute; right: -1px; top: -4px;
    border: 5px solid transparent; border-left-color: var(--accent);
}

.ai-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ai-card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 22px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ai-badge {
    display: inline-flex; padding: 3px 10px; margin-bottom: 13px;
    background: var(--grad); color: #fff;
    border-radius: 7px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
}
.ai-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; }
.ai-card p { font-size: 13.5px; color: var(--muted); }

.stack-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.stack-badge {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 7px 17px;
    font-size: 13.5px; font-weight: 600; color: var(--text-2);
    box-shadow: var(--shadow);
}

/* ── Why / comparison ────────────────────────────────────── */
.compare-wrap { overflow-x: auto; margin-bottom: 48px; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 720px; }
.compare-table th, .compare-table td { padding: 15px 20px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table th {
    background: var(--surface-2); font-weight: 700; font-size: 13.5px;
    text-transform: uppercase; letter-spacing: .03em; color: var(--muted);
}
.compare-table th.col-atipic { color: var(--primary); }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--text); }
.compare-table .c-no { color: var(--red); font-weight: 700; }
.compare-table .c-mid { color: var(--muted); font-size: 13px; }
.compare-table .c-yes { color: var(--green); font-weight: 700; }
.compare-table td.col-atipic { background: var(--primary-soft); }
.compare-table th.col-atipic { background: var(--primary-soft); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px 24px;
    box-shadow: var(--shadow); position: relative; overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.why-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad); opacity: 0; transition: opacity .2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-card:hover::before { opacity: 1; }
.why-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.why-card p { font-size: 14px; color: var(--muted); }

/* ── Contact ─────────────────────────────────────────────── */
.contact { background: var(--bg-alt); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.contact-details { display: flex; flex-direction: column; gap: 12px; margin: 26px 0; }
.contact-item {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 16.5px; font-weight: 600; color: var(--text);
    transition: color .15s;
}
.contact-item:hover { color: var(--primary); }
.ci-icon {
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-langs { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

.contact-form-wrap { position: relative; }
.contact-form {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 34px;
    box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 20px; font-weight: 800; margin-bottom: 22px; letter-spacing: -.01em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-field input, .form-field textarea {
    background: var(--surface-2); border: 1.5px solid var(--border);
    border-radius: 10px; padding: 11px 14px;
    font-family: inherit; font-size: 14.5px; color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
    resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-status { min-height: 20px; margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.form-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 56px 0 0; background: var(--bg); }
.footer-inner {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    border-top: 1px solid var(--border); padding: 20px 24px;
    font-size: 13px; color: var(--muted);
}

/* ── Reveal animation ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1060px) {
    .nav { display: none; }
    .header .nav.open {
        display: flex; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        padding: 12px 24px; box-shadow: var(--shadow-lg);
    }
    .nav.open .nav-link { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav.open .nav-link:last-child { border-bottom: none; }
    .mobile-toggle { display: block; }
    .header-actions { margin-left: auto; }
    .header-actions .btn-primary { display: none; }
    .features-grid, .ai-grid { grid-template-columns: repeat(2, 1fr); }
    .flow { flex-wrap: wrap; }
    .flow-step { flex: 1 1 calc(33% - 30px); min-width: 200px; }
    .flow-arrow { display: none; }
    .arch-flow { flex-wrap: wrap; gap: 14px; }
    .arch-node { flex: 1 1 calc(50% - 40px); min-width: 220px; }
    .arch-link { display: none; }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 60px; }
    .hero { padding-top: 140px; }
    .hero-shot { transform: none; }
    .hero-visual:hover .hero-shot { transform: none; }
    .hero-content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-ctas, .hero-chips { justify-content: center; }
    .fact-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .pain-grid { grid-template-columns: 1fr; }
    .industry-inner, .contact-inner { grid-template-columns: 1fr; gap: 44px; }
    .shots-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    section { padding: 64px 0; }
    .features-grid, .ai-grid, .why-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .fact-strip-inner { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
    .float-card { display: none; }
    .flow-step { flex: 1 1 100%; }
    .header-inner { gap: 6px; height: 60px; }
    .logo-img { width: 124px; height: 24px; }
    .lang-btn, .theme-btn { padding: 4px 5px; font-size: 11px; }
    .lang-switcher, .theme-switcher { padding: 2px; border-radius: 8px; }
    .header-actions { gap: 5px; }
    .mobile-toggle { padding: 5px; }
    .mobile-toggle span { width: 19px; }
    .hero { padding-top: 118px; }
    .hero-title { font-size: clamp(30px, 8.6vw, 38px); }
    .contact-form { padding: 24px 20px; }
    .container { padding: 0 18px; }
}

/* ═══════════════════════════════════════════════════════════
   TENANT RO — additions (softproductie.v-atipic.ro)
   ═══════════════════════════════════════════════════════════ */

/* -- Section rhythm ---------------------------------------- */
/* Overrides the generic assignments above. Keep alternating so
   .contact lands on --bg-alt and stays separated from .footer. */
.pain, .features, .trace, .industry, .fund, .contact { background: var(--bg-alt); }
.ref, .screenshots, .how, .technology, .why { background: var(--bg); }

/* -- Screenshots: 5 shots, first one full width ------------- */
.shot-wide { grid-column: span 2; }

/* -- Audit log sample (traceability section) ---------------- */
.audit-demo {
    margin-top: 40px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); overflow: hidden;
}
.audit-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 22px; background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.audit-tag {
    padding: 3px 10px; border-radius: 999px;
    background: var(--primary-soft); color: var(--primary);
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.audit-row {
    display: grid; grid-template-columns: 158px 132px 1fr 210px;
    gap: 16px; align-items: center;
    padding: 13px 22px; border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}
.audit-row:last-child { border-bottom: none; }
.audit-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.audit-user { color: var(--text-2); font-weight: 600; }
.audit-obj  { color: var(--text); }
.audit-change { text-align: right; font-weight: 600; }
.a-old { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.a-new { color: var(--green); }

/* -- Funding section note ----------------------------------- */
.fund-note {
    margin-top: 34px; padding: 18px 22px;
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid var(--primary); border-radius: var(--radius);
    font-size: 14px; color: var(--muted); line-height: 1.6;
}

/* -- Comparison table: 5 columns ---------------------------- */
.compare-table.compare-5 { min-width: 880px; }

/* -- Footer: plain text entries (company details) ----------- */
.footer-text { font-size: 14px; color: var(--muted); }

/* -- Responsive --------------------------------------------- */
@media (max-width: 900px) {
    .shot-wide { grid-column: span 1; }
    .audit-row { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
    .audit-obj { grid-column: 1 / -1; }
    .audit-change { text-align: left; grid-column: 1 / -1; }
}

/* -- Legal pages (confidentialitate) ------------------------ */
.legal { background: var(--bg); padding: 140px 0 80px; }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 16px 0 8px; }
.legal h2 {
    font-size: 21px; font-weight: 700; letter-spacing: -.01em;
    margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--border);
}
.legal h3 { font-size: 16.5px; font-weight: 700; margin: 26px 0 10px; color: var(--text); }
.legal p { font-size: 15.5px; line-height: 1.72; color: var(--text-2); margin-bottom: 14px; }
.legal ul { margin: 0 0 18px 0; padding-left: 22px; list-style: disc; }
.legal li { font-size: 15.5px; line-height: 1.72; color: var(--text-2); margin-bottom: 9px; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--primary-strong); }
.legal code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 5px; padding: 1px 6px;
}
.legal-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.legal-lead {
    font-size: 16.5px !important; color: var(--text) !important;
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid var(--primary); border-radius: var(--radius);
    padding: 20px 22px; margin-bottom: 8px;
}
.legal-todo {
    background: rgba(234, 88, 12, .12); color: var(--orange);
    border-radius: 5px; padding: 1px 7px; font-weight: 600; font-size: 14px;
}
