/* =================================================================
   Artificial Mindz Domains — premium lander
   Theme: deep midnight + warm champagne, glassmorphic, slow aurora.
   ================================================================= */

:root {
    --bg-0:        #07090f;
    --bg-1:        #0a0e1a;
    --bg-2:        #11162a;
    --surface:     rgba(255, 255, 255, 0.04);
    --surface-2:   rgba(255, 255, 255, 0.07);
    --border:      rgba(255, 255, 255, 0.09);
    --border-soft: rgba(255, 255, 255, 0.06);

    --ink:         #f2f4f9;
    --ink-soft:    #c8cdd9;
    --ink-mute:    #8b91a3;
    --ink-faint:   #5b6275;

    --accent:      #d6b87a;  /* champagne gold */
    --accent-2:    #f6e0a8;
    --accent-glow: rgba(214, 184, 122, 0.35);

    /* Aliases used by the .nav-logo wordmark (artificialmindz.com tokens). */
    --paper:       #f2f4f9;
    --gold:        #d6b87a;
    --cool:        #7aa7ff;
    --cool-glow:   rgba(122, 167, 255, 0.25);

    --success:     #5bd6a0;
    --danger:      #ff8a8a;

    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --shadow-lg: 0 30px 80px -30px rgba(0,0,0,0.75), 0 2px 4px rgba(0,0,0,0.4);
    --shadow-md: 0 12px 36px -16px rgba(0,0,0,0.6);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif:'Fraunces', 'Times New Roman', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(122,167,255,0.10), transparent 60%),
        radial-gradient(1000px 500px at 110% 10%, rgba(214,184,122,0.10), transparent 55%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle moving aurora -------------------------------------------------- */
.aurora {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
    position: absolute; width: 720px; height: 720px; border-radius: 50%;
    filter: blur(120px); opacity: .35; will-change: transform;
    animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { background: radial-gradient(closest-side, #c9a86a, transparent 70%); top: -240px; left: -180px; }
.orb-2 { background: radial-gradient(closest-side, #7aa7ff, transparent 70%); top: 30%;    right: -260px; animation-delay: -7s; }
.orb-3 { background: radial-gradient(closest-side, #6b5dff, transparent 70%); bottom: -320px; left: 30%; animation-delay: -14s; }
@keyframes drift {
    from { transform: translate3d(0,0,0) scale(1);   }
    to   { transform: translate3d(40px,-30px,0) scale(1.07); }
}

main, header, footer { position: relative; z-index: 1; }

/* Top bar -------------------------------------------------------------- */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px clamp(20px, 4vw, 56px);
    max-width: 1280px; margin: 0 auto;
}
.nav-logo,
.nav-logo:link,
.nav-logo:visited,
.nav-logo:hover,
.nav-logo:focus,
.nav-logo:active { font-family:'Cormorant Garamond',serif;font-size:1.35rem;font-weight:600;letter-spacing:.04em;color:var(--paper);text-decoration:none; }
.nav-logo span { color: var(--gold); }
.topnav { display: flex; gap: 26px; }
.topnav a {
    color: var(--ink-mute); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: color .2s ease;
}
.topnav a:hover { color: var(--ink); }
@media (max-width: 640px) { .topnav { display: none; } }

/* Hero ----------------------------------------------------------------- */
.hero { padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 56px) 28px; }
.hero-inner { max-width: 980px; margin: 0 auto; text-align: center; }

.eyebrow { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; justify-content: center; }
.tier-pill {
    display: inline-block; padding: 6px 14px; border-radius: 999px;
    font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
    background: rgba(214,184,122,0.10);
    color: var(--accent-2);
    border: 1px solid rgba(214,184,122,0.30);
}
.tier-ultra    { background: rgba(255,255,255,0.06); color: #fff;            border-color: rgba(255,255,255,0.20); }
.tier-category { background: rgba(214,184,122,0.10); color: var(--accent-2); border-color: rgba(214,184,122,0.30); }
.niche {
    font-size: 12px; color: var(--ink-mute); letter-spacing: .15em; text-transform: uppercase;
}

.domain-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(48px, 9vw, 112px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 6px 0 18px;
}
.domain-title span {
    background: linear-gradient(120deg, #ffffff 0%, #f6e0a8 50%, #d6b87a 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    text-shadow: 0 0 80px rgba(214,184,122,0.15);
}
.tagline {
    color: var(--ink-soft);
    font-size: clamp(16px, 1.6vw, 19px);
    max-width: 640px; margin: 0 auto 36px;
    font-weight: 300;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: 999px;
    font-weight: 600; font-size: 14px; letter-spacing: .02em;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #1a1407;
    box-shadow: 0 10px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 50px -16px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-ghost {
    background: var(--surface); color: var(--ink); border-color: var(--border);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.18); }
.btn-block { width: 100%; padding: 16px 22px; font-size: 15px; }

.trust-row {
    list-style: none; padding: 0; margin: 28px 0 0;
    display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
    color: var(--ink-mute); font-size: 13px;
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(91,214,160,0.18);
}

/* Value section -------------------------------------------------------- */
.value {
    max-width: 1100px; margin: 60px auto;
    padding: 0 clamp(20px, 4vw, 56px);
}
.value h2 {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(24px, 3vw, 32px); margin: 0 0 28px;
    color: var(--ink); letter-spacing: -.01em;
}
.value h2 em { font-style: normal; color: var(--accent-2); font-weight: 600; }
.value-grid {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.value-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.value-card:hover { transform: translateY(-2px); border-color: var(--border); background: var(--surface-2); }
.value-card .num {
    display: inline-block; font-family: var(--font-serif); font-size: 13px;
    color: var(--accent); letter-spacing: .2em; margin-bottom: 12px;
}
.value-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; font-weight: 300; }

/* Offer section -------------------------------------------------------- */
.offer-section {
    max-width: 820px; margin: 8px auto 80px;
    padding: 0 clamp(20px, 4vw, 56px);
    scroll-margin-top: 80px;
}
.offer-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 44px);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    box-shadow: var(--shadow-lg);
}
.offer-head { text-align: center; margin-bottom: 28px; }
.offer-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; letter-spacing: -.01em; }
.offer-head h2 em { font-style: normal; color: var(--accent-2); font-weight: 600; }
.offer-head p { margin: 0; color: var(--ink-mute); font-size: 14px; }

/* Tabs ----------------------------------------------------------------- */
.tabs {
    display: flex; gap: 4px; padding: 4px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    margin-bottom: 24px;
}
.tab {
    flex: 1; appearance: none; border: none; background: transparent;
    color: var(--ink-mute); font-family: inherit; font-weight: 500; font-size: 13px;
    padding: 11px 16px; border-radius: 999px; cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #1a1407;
    box-shadow: 0 6px 20px -8px var(--accent-glow);
}
@media (max-width: 520px) { .tab { font-size: 12px; padding: 10px 8px; } }

/* Panes ---------------------------------------------------------------- */
.pane { display: none; animation: fade .25s ease; }
.pane.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Form fields ---------------------------------------------------------- */
.offer-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.offer-form .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.offer-form .mt    { margin-top: 14px; }
@media (max-width: 560px) {
    .offer-form .grid-2, .offer-form .grid-3 { grid-template-columns: 1fr; }
}

.field { display: block; margin-bottom: 14px; }
.field > span {
    display: block; font-size: 12px; color: var(--ink-mute);
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; font-weight: 500;
}
.field input, .field select, .field textarea {
    width: 100%;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--ink);
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0,0,0,0.35);
    box-shadow: 0 0 0 4px rgba(214,184,122,0.10);
}
.field select { appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238b91a3'><path d='M5 8l5 5 5-5z'/></svg>");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

.fine { font-size: 12px; color: var(--ink-mute); margin: 8px 0 0; }
.fine.center { text-align: center; margin-top: 14px; }
.fine strong { color: var(--ink-soft); font-weight: 600; }

.consent { font-size: 13px; color: var(--ink-mute); margin: 6px 0 18px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--accent); }

/* Honeypot — visually hidden but DOM-present */
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

/* Flash ---------------------------------------------------------------- */
.flash {
    padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px;
    font-size: 14px; border: 1px solid transparent;
}
.flash-success { background: rgba(91,214,160,0.10); border-color: rgba(91,214,160,0.30); color: #b9f1d3; }
.flash-error   { background: rgba(255,138,138,0.08); border-color: rgba(255,138,138,0.30); color: #ffc6c6; }

/* Footer --------------------------------------------------------------- */
.footer { padding: 30px clamp(20px, 4vw, 56px) 50px; }
.footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    flex-wrap: wrap;
    font-size: 13px; color: var(--ink-mute);
    border-top: 1px solid var(--border-soft); padding-top: 20px;
}
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--accent-2); }

/* Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Selection ------------------------------------------------------------ */
::selection { background: var(--accent); color: #1a1407; }

/* reCAPTCHA centering -------------------------------------------------- */
.captcha-row {
    display: flex; justify-content: center;
    margin: 4px 0 18px;
    min-height: 78px;
}

/* ---------------------------------------------------------------------
   Content protection
   - Disable text selection page-wide (form fields are exempt)
   - Disable native drag of images / elements
   - Hide everything when the user tries to print
   --------------------------------------------------------------------- */
.no-select,
.no-select * {
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    -webkit-touch-callout: none;
}
.no-select input,
.no-select textarea,
.no-select select,
.no-select [contenteditable="true"] {
    -webkit-user-select: text;
       -moz-user-select: text;
        -ms-user-select: text;
            user-select: text;
}
.no-select img, .no-select a { -webkit-user-drag: none; }

@media print {
    html, body { display: none !important; visibility: hidden !important; }
}

/* =====================================================================
   THEMES
   Switch in config.php → 'design' => ['template' => 'midnight'|'linen'|'aurora'].
   The body gets class="theme-<name>". Each block below overrides the
   relevant CSS variables (and a few structural details where needed).
   The default ("midnight") needs no overrides — it IS the base.
   ===================================================================== */

/* --- Linen: editorial cream + ink + aged brass ----------------------- */
body.theme-linen {
    --bg-0:        #ebe3d4;
    --bg-1:        #f6f1e8;
    --bg-2:        #ffffff;
    --surface:     rgba(26, 29, 43, 0.05);
    --surface-2:   rgba(26, 29, 43, 0.08);
    --border:      rgba(26, 29, 43, 0.14);
    --border-soft: rgba(26, 29, 43, 0.08);
    --ink:         #1a1d2b;
    --ink-soft:    #3a3f50;
    --ink-mute:    #6b7080;
    --ink-faint:   #9da3b3;
    --accent:      #8c6b3b;
    --accent-2:    #a78147;
    --accent-glow: rgba(140, 107, 59, 0.20);
    --paper:       #1a1d2b;
    --gold:        #8c6b3b;
    --shadow-lg:   0 30px 60px -30px rgba(60, 50, 30, 0.25), 0 2px 4px rgba(60, 50, 30, 0.06);
    --shadow-md:   0 12px 30px -16px rgba(60, 50, 30, 0.18);

    background:
        radial-gradient(900px 500px at 10% -10%, rgba(140,107,59,0.10), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(184,145,90,0.10), transparent 55%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
body.theme-linen .aurora { display: none; }
body.theme-linen .domain-title span {
    background: none;
    -webkit-background-clip: initial; background-clip: initial;
    -webkit-text-fill-color: var(--ink);
    color: var(--ink);
    text-shadow: none;
}
body.theme-linen .tier-pill {
    background: rgba(140,107,59,0.10);
    color: #6e5224;
    border-color: rgba(140,107,59,0.35);
}
body.theme-linen .offer-card {
    background: rgba(255,255,255,0.72);
    border-color: rgba(26,29,43,0.10);
    backdrop-filter: blur(8px) saturate(120%);
}
body.theme-linen .tabs { background: rgba(26,29,43,0.04); }
body.theme-linen .tab.is-active { color: #f6f1e8; }
body.theme-linen .field input,
body.theme-linen .field select,
body.theme-linen .field textarea {
    background: rgba(255,255,255,0.70);
    color: var(--ink);
    border-color: rgba(26,29,43,0.12);
}
body.theme-linen .field input:focus,
body.theme-linen .field select:focus,
body.theme-linen .field textarea:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(140,107,59,0.15);
}
body.theme-linen .field input::placeholder,
body.theme-linen .field textarea::placeholder { color: #aaa294; }
body.theme-linen .btn-primary {
    color: #f6f1e8;
    background: linear-gradient(135deg, #a78147, #8c6b3b);
    box-shadow: 0 10px 24px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
body.theme-linen .btn-ghost {
    background: rgba(26,29,43,0.04);
    border-color: rgba(26,29,43,0.14);
}
body.theme-linen .value-card { background: rgba(255,255,255,0.55); }
body.theme-linen .footer-inner { border-top-color: rgba(26,29,43,0.10); }
body.theme-linen ::selection { background: var(--accent); color: #f6f1e8; }
body.theme-linen .flash-success {
    background: rgba(34, 130, 86, 0.10);
    border-color: rgba(34, 130, 86, 0.35);
    color: #1e6b46;
}
body.theme-linen .flash-error {
    background: rgba(180, 50, 50, 0.08);
    border-color: rgba(180, 50, 50, 0.35);
    color: #8a1a1a;
}

/* --- Aurora: pure black + electric cyan / violet --------------------- */
body.theme-aurora {
    --bg-0:        #020308;
    --bg-1:        #07060f;
    --accent:      #4dd4ff;
    --accent-2:    #b388ff;
    --accent-glow: rgba(77, 212, 255, 0.45);
    --gold:        #4dd4ff;

    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(77,212,255,0.18), transparent 60%),
        radial-gradient(1000px 500px at 110% 10%, rgba(179,136,255,0.18), transparent 55%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
body.theme-aurora .orb-1 { background: radial-gradient(closest-side, #4dd4ff, transparent 70%); opacity: .45; }
body.theme-aurora .orb-2 { background: radial-gradient(closest-side, #b388ff, transparent 70%); opacity: .40; }
body.theme-aurora .orb-3 { background: radial-gradient(closest-side, #ff5cc7, transparent 70%); opacity: .30; }
body.theme-aurora .domain-title span {
    background: linear-gradient(120deg, #ffffff 0%, #4dd4ff 45%, #b388ff 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 0 100px rgba(77, 212, 255, 0.30);
}
body.theme-aurora .tier-pill {
    background: rgba(77,212,255,0.10);
    color: #b8ecff;
    border-color: rgba(77,212,255,0.35);
}
body.theme-aurora .btn-primary {
    color: #03060f;
    background: linear-gradient(135deg, #4dd4ff, #b388ff);
    box-shadow: 0 10px 36px -8px rgba(77,212,255,0.45), inset 0 1px 0 rgba(255,255,255,0.30);
}
body.theme-aurora .tab.is-active {
    color: #03060f;
    background: linear-gradient(135deg, #4dd4ff, #b388ff);
    box-shadow: 0 6px 22px -8px rgba(77,212,255,0.50);
}
body.theme-aurora .offer-card {
    border-color: rgba(77,212,255,0.18);
    box-shadow: 0 30px 80px -30px rgba(77,212,255,0.18), 0 2px 4px rgba(0,0,0,0.5);
}
body.theme-aurora .value-card:hover { border-color: rgba(77,212,255,0.30); }
body.theme-aurora .dot {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(77,212,255,0.20);
}
body.theme-aurora ::selection { background: var(--accent); color: #03060f; }
