/*!
 * © 2026 Swiss 3D Surface · Pawel Swirski · Arbon CH
 * Visualizer landing page — dark cinematic, premium.
 */

:root {
    --bg: #0a0a0a;
    --bg-soft: #141414;
    --bg-card: #181818;
    --fg: #f5f3f0;
    --muted: #8a857d;
    --line: #2a2a2a;
    --line-strong: #3a3a3a;
    --accent: #d4a574;
    --ok: #4a7c5d;
    --err: #c41e3a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s;
}
a:hover { opacity: 0.75; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    border-bottom: 1px solid var(--line);
    padding: 60px 18px 56px;
}
.hero-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.brand-mark {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4em;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 38px;
    line-height: 1.18;
    letter-spacing: -0.015em;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--fg);
}
.hero-sub {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    max-width: 640px;
    margin: 0 auto;
}

/* ─── EXAMPLES ────────────────────────────────────────── */
.examples {
    max-width: 1100px;
    margin: 56px auto 0;
    padding: 0 18px;
}
.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.example { margin: 0; }
.example-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #1a1816;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.example-img::before {
    /* Fallback rendered when no real image: shows the caption tag */
    content: attr(data-fallback);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #1c1815 0%, #0e0c0a 100%);
    z-index: 0;
    /* Real image (background-image on parent) sits visually behind via z-index trick:
       we use opacity-overlay only when no image. Simpler: keep this as ::before with low z. */
    opacity: 0;
}
/* Show fallback when image fails: handled via JS swapping a class — see landing.js */
.example-img.no-image::before { opacity: 1; }

.example figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-align: center;
}

/* ─── CTA / FORM ──────────────────────────────────────── */
.cta {
    max-width: 720px;
    margin: 72px auto 0;
    padding: 0 18px;
}
.cta h2 {
    font-size: 26px;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}
.cta-intro {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.access-form {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.lbl {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.access-form input[type="text"],
.access-form input[type="email"],
.access-form input[type="tel"],
.access-form select,
.access-form textarea {
    background: var(--bg-soft);
    color: var(--fg);
    border: 1px solid var(--line);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    border-radius: 2px;
    transition: border-color 0.15s;
}
.access-form input:focus,
.access-form select:focus,
.access-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.access-form textarea { resize: vertical; min-height: 70px; }
.access-form select { cursor: pointer; }

.form-row.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
}
.form-row.checkbox input { margin-top: 3px; accent-color: var(--accent); }
.form-row.checkbox span { font-size: 12px; color: var(--fg); line-height: 1.5; }

/* Honeypot — visually hidden, accessible */
.hp-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
    margin-top: 6px;
}
.btn-primary:hover:not(:disabled) { opacity: 0.9; }
.btn-primary:disabled {
    background: var(--bg-soft);
    color: var(--muted);
    cursor: not-allowed;
    border: 1px solid var(--line);
}

.form-status {
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
}
.form-status.loading {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--muted);
}
.form-status.error {
    background: rgba(196, 30, 58, 0.12);
    border: 1px solid var(--err);
    color: var(--err);
}

.form-thanks {
    background: var(--bg-card);
    border: 1px solid var(--ok);
    border-top: 3px solid var(--ok);
    border-radius: 5px;
    padding: 28px 24px;
    text-align: center;
}
.form-thanks h3 { color: var(--ok); margin-bottom: 10px; font-size: 18px; }
.form-thanks p { color: var(--muted); font-size: 14px; }

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
    margin-top: 72px;
    padding: 28px 18px 32px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.copyright { font-size: 11px; letter-spacing: 0.04em; margin-top: 8px; }

/* ─── MOBILE ──────────────────────────────────────────── */
@media (max-width: 700px) {
    .hero { padding: 40px 16px 36px; }
    .hero h1 { font-size: 26px; }
    .hero-sub { font-size: 15px; }
    .examples-grid { grid-template-columns: 1fr; gap: 14px; }
    .form-row.two-col { grid-template-columns: 1fr; gap: 10px; }
    .cta h2 { font-size: 22px; }
    .access-form { padding: 18px 16px; }
}
