/* Fonts are loaded from Google Fonts in index.html (same as opalbot.gg):
   - Neuton (serif, italic + weights)
   - Cormorant Garamond (italic serif)
   - JetBrains Mono
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #050402;
    --gold-1: #FFE7A8;
    --gold-2: #E8B266;
    --gold-3: #C77E2A;
    --gold-4: #6B3F12;
    --gold-glow: rgba(232, 178, 102, 0.55);
    --text: #EFE5D0;
    --muted: #8a7a5e;
    --border: rgba(214, 159, 84, 0.35);
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Neuton", "Cormorant Garamond", Georgia, serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bg {
    position: fixed;
    inset: -40px;
    z-index: 0;
    pointer-events: none;
    background-image: url("img/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter:
        sepia(0.55)
        hue-rotate(-20deg)
        saturate(1.6)
        brightness(0.95)
        contrast(1.05)
        blur(6px);
    opacity: 0.8;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 50% at 50% 45%, rgba(0, 0, 0, 0.9), transparent 75%),
        radial-gradient(ellipse 100% 100% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
}

/* ---------- Nav ---------- */
.nav-wrap {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 22px 16px 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 14px;
    max-width: calc(100vw - 24px);
    background: rgba(20, 14, 6, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 160, 0.08),
        0 10px 40px rgba(0, 0, 0, 0.5);
}

.brand-name {
    white-space: nowrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    color: var(--gold-1);
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 210, 140, 0.08), rgba(255, 210, 140, 0));
    border: 1px solid rgba(214, 159, 84, 0.25);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    filter: drop-shadow(0 0 4px var(--gold-glow));
}

.brand-mark img {
    width: 130%;
    height: 130%;
    object-fit: cover;
}

.brand-name {
    letter-spacing: 0.01em;
}

.links {
    list-style: none;
    margin: 0;
    padding: 0 6px;
    display: flex;
    gap: 4px;
}

.links a {
    display: inline-block;
    padding: 7px 14px;
    color: var(--text);
    text-decoration: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    border-radius: 999px;
    opacity: 0.85;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.links a:hover {
    background: rgba(255, 210, 140, 0.08);
    color: var(--gold-1);
    opacity: 1;
}

.cta {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 220, 160, 0.55);
    background: rgba(255, 220, 160, 0.04);
    color: var(--gold-1);
    text-decoration: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
    background: rgba(255, 220, 160, 0.12);
    box-shadow: 0 0 22px rgba(255, 200, 120, 0.25);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 4;
    width: min(1100px, 100%);
    padding: 60px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ---- Preview frame ---- */
.preview {
    position: relative;
    width: min(440px, 78%);
    aspect-ratio: 16 / 10;
    margin: 0 0 28px;
    padding: 14px;
    border: 1px solid rgba(214, 159, 84, 0.35);
    background: rgba(10, 7, 3, 0.55);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.6);
}

.m {
    position: absolute;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    color: var(--gold-2);
    letter-spacing: 0.05em;
    opacity: 0.85;
}

.m-tl { top: 6px; left: 10px; }
.m-tr { top: 6px; right: 10px; }
.m-bl { bottom: 6px; left: 10px; }
.m-br { bottom: 6px; right: 10px; }

.preview-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(60, 35, 10, 0.4), transparent 65%),
        radial-gradient(ellipse at 50% 50%, #1a1006 0%, #050301 70%, #000 100%);
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(214, 159, 84, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(214, 159, 84, 0.18) 1px, transparent 1px);
    background-size: 33.33% 33.33%;
    background-position: 0 0;
    opacity: 0.7;
    pointer-events: none;
}

.orb-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 78%;
    height: 78%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 160, 70, 0.35));
    mix-blend-mode: screen;
}

.caption {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    z-index: 2;
}

.cap-brand {
    color: var(--gold-1);
    text-transform: lowercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.cap-sep {
    color: var(--gold-2);
    opacity: 0.7;
}

.cap-label {
    color: var(--gold-2);
    letter-spacing: 0.22em;
}

/* ---------- Headline ---------- */
.headline {
    font-family: "Neuton", serif;
    font-weight: 400;
    font-size: clamp(40px, 7.2vw, 86px);
    line-height: 1.02;
    letter-spacing: -0.012em;
    margin: 6px 0 0;
    color: #F3EAD3;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
}

.line {
    display: block;
}

.headline em {
    font-family: "Cormorant Garamond", "Neuton", serif;
    font-style: italic;
    font-weight: 400;
    color: #F8EFD9;
    letter-spacing: -0.005em;
}

.cursor {
    display: inline-block;
    transform: translateY(-0.04em);
    margin-left: 2px;
    color: #F3EAD3;
    font-family: "Neuton", serif;
    animation: blink 1s steps(2, end) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* "CLAIM $OPAL" highlighted button */
.for-ai {
    --pad-x: 1.1em;
    --pad-y: 0.55em;
    display: inline-block;
    position: relative;
    padding: var(--pad-y) var(--pad-x);
    margin-top: 0.55em;
    font-size: clamp(16px, 1.6vw, 22px);
    border: 1.5px solid rgba(255, 180, 90, 0.55);
    background: radial-gradient(
        ellipse at 50% 60%,
        rgba(255, 140, 50, 0.22) 0%,
        rgba(120, 60, 10, 0.18) 55%,
        rgba(0, 0, 0, 0) 100%
    );
    box-shadow:
        inset 0 0 28px rgba(255, 140, 50, 0.25),
        0 0 30px rgba(255, 130, 40, 0.25);
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.2s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.claim-btn:hover,
.claim-btn:focus-visible {
    border-color: rgba(255, 210, 140, 0.95);
    box-shadow:
        inset 0 0 36px rgba(255, 160, 60, 0.4),
        0 0 50px rgba(255, 140, 50, 0.5);
    transform: translateY(-1px);
    outline: none;
}

.claim-btn:active {
    transform: translateY(0);
    box-shadow:
        inset 0 0 26px rgba(255, 140, 50, 0.45),
        0 0 22px rgba(255, 130, 40, 0.35);
}

.for-ai-text {
    font-family: "JetBrains Mono", "Neuton", monospace;
    font-weight: 700;
    font-size: 1em;
    background: linear-gradient(
        180deg,
        #FFEFC4 0%,
        #F2C273 30%,
        #C77E2A 60%,
        #7A3F0F 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(255, 150, 60, 0.4);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ---------- Responsive ---------- */

/* Tablet and below: tighten nav */
@media (max-width: 820px) {
    .nav { padding: 5px 5px 5px 10px; gap: 4px; }
    .links a { padding: 6px 10px; font-size: 11px; }
    .cta, .brand { font-size: 11px; }
}

/* Phone: hide the middle nav links, keep brand + CTA */
@media (max-width: 640px) {
    .nav-wrap { padding: 14px 12px 0; }
    .nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        padding: 5px 5px 5px 8px;
    }
    .links { display: none; }
    .brand { padding: 5px 10px 5px 5px; font-size: 12px; }
    .cta { padding: 7px 14px; font-size: 12px; }

    .hero { padding: 32px 16px 60px; }
    .preview { width: 92%; padding: 10px; }
    .m { font-size: 9px; }
    .caption { font-size: 9px; bottom: 10px; }

    .headline {
        font-size: clamp(30px, 9vw, 56px);
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .brand-name { display: none; }
    .cta { padding: 7px 12px; font-size: 11px; }
}
