/* ============================================================
   Spawellness Design — Coming Soon
   Premium dark theme: charcoal canvas with brushed gold accents
   ============================================================ */

:root {
    --bg:          #0F0B08;
    --bg-soft:     #1C1410;
    --surface:     #2A1F18;
    --text:        #F5EDE3;
    --text-muted:  #A89888;
    --accent:      #C8A96E;
    --accent-soft: #8B7349;
    --line:        rgba(245, 237, 227, 0.08);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    --container-max: 1240px;
    --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ── Atmospheric layers ── */

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
    position: fixed;
    top: -25vh;
    left: 50%;
    transform: translateX(-50%);
    width: 140vmax;
    height: 140vmax;
    background: radial-gradient(
        circle at center,
        rgba(200, 169, 110, 0.18) 0%,
        rgba(200, 169, 110, 0.08) 25%,
        transparent 55%
    );
    pointer-events: none;
    z-index: 0;
    animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
    0%   { transform: translate(-50%, 0) scale(1); }
    100% { transform: translate(-48%, 4%) scale(1.05); }
}

/* ── Layout stage ── */

.stage {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 7vw, 6rem);
}

/* ── Brand mark ── */

.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
    letter-spacing: -0.01em;
    color: var(--text);
    animation: fadeUp 1s var(--reveal-ease) both;
}

.brand-dot { color: var(--accent); }

/* ── Hero ── */

.hero {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
    max-width: 900px;
    flex: 1;
    justify-content: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    animation: fadeUp 1s 0.15s var(--reveal-ease) both;
}

.eyebrow-line {
    display: inline-block;
    width: 2.5rem;
    height: 1px;
    background: var(--accent);
    transform-origin: left;
    animation: lineExpand 1.2s 0.4s var(--reveal-ease) both;
}

.headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 7.5vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--text);
}

.headline .word {
    display: block;
    overflow: hidden;
}

.headline .word > * {
    display: inline-block;
}

.headline .word:nth-child(1) { animation: textReveal 1.1s 0.3s var(--reveal-ease) both; }
.headline .word:nth-child(2) { animation: textReveal 1.1s 0.45s var(--reveal-ease) both; }
.headline .word:nth-child(3) { animation: textReveal 1.1s 0.6s var(--reveal-ease) both; }

.headline em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.lede {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.75;
    animation: fadeUp 1s 0.85s var(--reveal-ease) both;
}

/* ── Actions ── */

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 2rem;
    margin-top: 0.5rem;
    animation: fadeUp 1s 1.05s var(--reveal-ease) both;
}

.action-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    border-radius: 999px;
    transition: background 0.3s ease, transform 0.25s ease, gap 0.3s ease;
    will-change: transform;
}

.action-primary:hover {
    background: #d9bd87;
    gap: 0.9rem;
    transform: translateY(-1px);
}

.action-primary svg { transition: transform 0.3s ease; }
.action-primary:hover svg { transform: translateX(3px); }

.action-secondary {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.action-secondary:hover {
    color: var(--text);
    border-color: var(--accent-soft);
}

/* ── Pillars ── */

.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
    row-gap: 1.75rem;
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--line);
    animation: fadeUp 1s 1.25s var(--reveal-ease) both;
}

@media (max-width: 900px) {
    .pillars { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
}

.pillar {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.pillar:hover { color: var(--text); }

.pillar-no {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 400;
}

.pillar-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* "& much more" — closing flourish: centered on its own row below the four pillars */
.pillar-more {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 0.25rem;
}
.pillar-more .pillar-label {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--accent);
}

/* ── Legal footer ── */

.legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    animation: fadeUp 1s 1.4s var(--reveal-ease) both;
}

.legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal a:hover { color: var(--accent); }

.legal .dot { color: var(--accent-soft); }

/* ── Animations ── */

@keyframes fadeUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes textReveal {
    0%   { opacity: 0; transform: translateY(100%); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes lineExpand {
    0%   { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(1); opacity: 1; }
}

/* ── Responsive ── */

@media (max-width: 720px) {
    .pillars { grid-template-columns: 1fr; gap: 1rem; }
    .pillar { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
    .pillar:last-child { border-bottom: none; }
    .actions { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .action-primary { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .glow { animation: none; }
}
