/* site.css - Acid Secs Productions. Colours live in :root so you can change them in one place. */

:root {
    --ink: #05070d;
    --ink-2: #0a0f1c;
    --panel: rgba(12, 18, 32, 0.78);
    --line: rgba(57, 243, 255, 0.18);
    --text: #e6f7ff;
    --muted: #9fb2c4;
    --cyan: #39f3ff;
    --magenta: #ff3ea5;
    --amber: #ffb547;
    --radius: 14px;
    --gutter: 16px;
    --font-head: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-head);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background layer. It sits behind everything and fades out where the text is. */
#bg-shader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

a { color: var(--cyan); text-decoration: none; }
main { display: block; padding-top: 84px; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px var(--gutter);
    background: rgba(5, 7, 13, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

/* Logo: restored to the original mark and wording */
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--cyan), #6366f1);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(57, 243, 255, 0.3);
}
.brand-sub {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--cyan);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu { display: flex; gap: 22px; margin-left: auto; }

/* Menu items: 3D lift on hover with a gradient underline */
.menu-item {
    position: relative;
    display: inline-block;
    color: var(--text);
    font-weight: 500;
    transform-style: preserve-3d;
    transition: transform 0.25s ease, color 0.25s ease;
}
.menu-item::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.menu-item:hover,
.menu-item:focus-visible { color: var(--cyan); transform: perspective(400px) translateY(-2px) rotateX(14deg); }
.menu-item:hover::after,
.menu-item:focus-visible::after { transform: scaleX(1); }

.header-tools { display: flex; align-items: center; gap: 14px; }

.time-in {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}
.time-in select {
    background: var(--ink-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 8px;
    font: inherit;
}
.time-in output { color: var(--cyan); min-width: 3.6em; }

/* Start button: solid magenta. The amber layer fades in on hover. No glow, no gradient edge. */
.btn-start,
.btn-primary,
.btn-ghost {
    position: relative;
    display: inline-block;
    isolation: isolate;
    overflow: hidden;
    font-family: var(--font-head);
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.btn-start::before,
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}
.btn-start span { position: relative; }

.btn-start { background: var(--magenta); color: #05070d; padding: 10px 18px; border-radius: 999px; }
.btn-start::before { background: var(--amber); }
.btn-start:hover::before,
.btn-start:focus-visible::before { opacity: 1; }

.btn-primary { background: var(--cyan); color: #05070d; padding: 13px 24px; }
.btn-primary::before { background: var(--magenta); }
.btn-primary:hover::before,
.btn-primary:focus-visible::before { opacity: 1; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.03); padding: 13px 24px; }
.btn-ghost:hover { border-color: var(--cyan); }

.btn-start:hover,
.btn-primary:hover,
.btn-ghost:hover { transform: translateY(-2px); }

.menu-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: var(--font-mono);
    cursor: pointer;
}

/* ---------- Sections ---------- */
section { padding: 72px var(--gutter); max-width: 1120px; margin: 0 auto; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 28px; display: flex; gap: 12px; align-items: baseline; }
.section-note { color: var(--muted); margin: -12px 0 22px; font-size: 0.95rem; }
.tag { font-family: var(--font-mono); font-size: 0.8rem; color: var(--magenta); }

.kicker { font-family: var(--font-mono); font-size: 0.85rem; color: var(--cyan); letter-spacing: 0.06em; margin-bottom: 14px; }

.hero { padding-top: 80px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.08; font-weight: 700; margin-bottom: 20px; }
.grad {
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.back-link { display: inline-block; font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 18px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card {
    display: block;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--cyan); }
.card p { color: var(--muted); }
.card:hover { border-color: rgba(255, 62, 165, 0.5); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 8px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan), var(--magenta), var(--amber));
    opacity: 0.7;
}
.timeline li { position: relative; margin-bottom: 14px; }
.step-btn {
    position: relative;
    width: 100%;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    text-align: left;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px 18px 18px;
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.step-btn:hover,
.step-btn:focus-visible { border-color: var(--magenta); transform: translateX(4px); outline: none; }
.step-num {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ink-2);
    border: 2px solid var(--cyan);
    color: var(--amber);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 0 14px rgba(57, 243, 255, 0.25);
}
.step-title { display: block; font-weight: 700; font-size: 1.08rem; color: var(--text); }
.step-summary { display: block; color: var(--muted); margin-top: 2px; }

/* Pop-up for each step */
.step-dialog {
    width: min(620px, calc(100% - 32px));
    background: var(--ink-2);
    color: var(--text);
    border: 1px solid var(--magenta);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 0 40px rgba(255, 62, 165, 0.25);
}
.step-dialog::backdrop { background: rgba(5, 7, 13, 0.78); }
.step-dialog-inner { padding: 28px; position: relative; display: grid; gap: 14px; }
.step-dialog h3 { color: var(--amber); font-size: 1.4rem; padding-right: 36px; }
.step-dialog p { color: var(--muted); }
.dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.stack-group {
    display: block;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.stack-group:hover { border-color: var(--cyan); }
.stack-group h3 { color: var(--amber); font-size: 1rem; margin-bottom: 6px; }
.stack-group p { color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; }

.cta { text-align: center; }
.cta p { color: var(--muted); margin: 8px 0 22px; }

/* ---------- Service, platform, AI, company and legal pages ---------- */
.page-hero { padding-top: 56px; padding-bottom: 8px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 14px; }
.page-body { padding-top: 24px; }
.page-block {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--magenta);
    border-radius: var(--radius);
    padding: 24px 26px;
    margin-bottom: 16px;
}
.page-block h2 { font-size: 1.25rem; color: var(--cyan); margin-bottom: 10px; }
.page-block p { color: var(--muted); margin-bottom: 10px; }
.page-block p:last-child { margin-bottom: 0; }
.check-list { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.check-list li { color: var(--text); padding-left: 22px; position: relative; }
.check-list li::before { content: '>'; position: absolute; left: 0; color: var(--amber); font-family: var(--font-mono); }

.draft-box {
    margin-top: 18px;
    background: rgba(255, 181, 71, 0.08);
    border: 1px solid rgba(255, 181, 71, 0.5);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.92rem;
}

.page-cta { text-align: center; margin-top: 24px; padding-bottom: 80px; }
.page-cta p { color: var(--muted); margin: 8px 0 22px; }

/* ---------- Contact form ---------- */
.contact-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 14px; }
.brief-form {
    margin-top: 28px;
    display: grid;
    gap: 16px;
    max-width: 640px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); }
.field input,
.field select,
.field textarea {
    background: var(--ink-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--magenta); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { color: var(--muted); min-height: 1.5em; }
.form-status.ok { color: #7cffb2; }
.form-status.err { color: var(--magenta); }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    border-top: 1px solid var(--line);
    background: rgba(5, 7, 13, 0.9);
    padding: 48px var(--gutter) 24px;
    margin-top: 40px;
}
.footer-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 28px;
}
.footer-col h3 { font-family: var(--font-mono); font-size: 0.8rem; color: var(--amber); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col a,
.footer-col .soon,
.footer-col .link-button {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    padding: 3px 0;
}
.footer-col a:hover,
.link-button:hover { color: var(--cyan); }
.link-button { background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.footer-col .soon em { font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; color: var(--magenta); margin-left: 4px; }
.footer-bottom {
    max-width: 1120px;
    margin: 32px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: var(--gutter);
    max-width: 620px;
    margin: 0 auto;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    background: var(--ink-2);
    border: 1px solid var(--cyan);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    font-size: 0.92rem;
    color: var(--muted);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 280px; }
.cookie-banner a { color: var(--cyan); }
.cookie-banner .btn-primary { padding: 10px 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Phone width ---------- */
@media (max-width: 860px) {
    .brand-text { font-size: 0.9rem; }
    .menu-toggle { display: inline-block; }
    .menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 14px;
        padding: 16px var(--gutter) 20px;
        background: rgba(5, 7, 13, 0.97);
        border-bottom: 1px solid var(--line);
    }
    .site-header.open .menu { display: flex; }
    .header-tools { margin-left: auto; }
    .time-in { display: none; }
}

@media (max-width: 480px) {
    .brand-mark { width: 32px; height: 32px; font-size: 0.8rem; }
    .btn-start { padding: 9px 13px; font-size: 0.9rem; }
    .site-header { gap: 10px; }
    section { padding: 56px var(--gutter); }
    .hero { padding-top: 64px; }
    .step-btn { gap: 12px; }
    .timeline::before { left: 19px; }
}

@media (hover: none) {
    .card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    #bg-shader { display: none; }
}

/* ---------- Company logo in the header (replaces the old AS square) ---------- */
.brand-logo { display: block; padding: 0; background: #0A0E14; object-fit: cover; box-shadow: 0 0 18px rgba(240, 190, 40, 0.28); }


/* ---------- Phones: smaller tagline, and the "Start a project" button moves out of the way (Contact stays in the menu) ---------- */
@media (max-width: 480px) {
    .brand-sub { font-size: 0.55rem; letter-spacing: 0.03em; }
    .btn-start { display: none; }
}


/* ---------- Forms: fields never grow wider than the form, even with long choices ---------- */
.brief-form, .field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

