/* ============================================
   Quill — Coming Soon
   Luminous dark luxury
   ============================================ */

:root {
    --lavender: #8A7FD6;
    --lavender-bright: #A99BEB;
    --sky: #7AA2E3;
    --sky-bright: #8BB8F0;
    --teal: #4D9E8E;
    --ink: #0C0E14;
    --ink-mid: #151822;
    --ink-surface: #1A1E2C;
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.3);

    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: var(--ink);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Particle canvas
   ============================================ */

#ink-canvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ============================================
   Ambient glows — the soul of the atmosphere
   ============================================ */

.glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.glow-1 {
    width: 600px;
    height: 600px;
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(138, 127, 214, 0.15) 0%, transparent 70%);
    animation: breathe-1 12s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    bottom: -20%;
    right: -5%;
    background: radial-gradient(circle, rgba(122, 162, 227, 0.12) 0%, transparent 70%);
    animation: breathe-2 15s ease-in-out infinite;
}

.glow-3 {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 55%;
    background: radial-gradient(circle, rgba(77, 158, 142, 0.08) 0%, transparent 70%);
    animation: breathe-3 18s ease-in-out infinite;
}

@keyframes breathe-1 {
    0%, 100% { opacity: 0.6; transform: scale(1) translate(0, 0); }
    50% { opacity: 1; transform: scale(1.15) translate(30px, 20px); }
}

@keyframes breathe-2 {
    0%, 100% { opacity: 0.5; transform: scale(1) translate(0, 0); }
    50% { opacity: 0.9; transform: scale(1.1) translate(-20px, -30px); }
}

@keyframes breathe-3 {
    0%, 100% { opacity: 0.4; transform: scale(1) translate(0, 0); }
    50% { opacity: 0.8; transform: scale(1.2) translate(-15px, 15px); }
}

/* ============================================
   Film grain overlay — texture and depth
   ============================================ */

.grain {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
}

/* ============================================
   Page structure
   ============================================ */

.page {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Header ---- */

header {
    padding: 36px 48px;
    opacity: 0;
    animation: fade-down 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
}

.nav-logo {
    height: 28px;
    width: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(138, 127, 214, 0.2));
    transition: filter 0.4s ease;
}

.nav-logo:hover {
    filter: drop-shadow(0 0 30px rgba(138, 127, 214, 0.4));
}

/* ============================================
   Hero — the main event
   ============================================ */

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 48px;
}

.hero {
    max-width: 700px;
    text-align: center;
}

/* Overline */
.overline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lavender-bright);
    margin-bottom: 28px;
    opacity: 0;
    animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

/* Headline */
h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 32px;
}

h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--lavender-bright) 0%, var(--sky-bright) 60%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 .reveal {
    display: block;
}

/* Tagline */
.tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 48px;
}

/* ---- Reveal animation ---- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.d2 { transition-delay: 0.15s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.45s; }
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Coming Soon status
   ============================================ */

.cta-row {
    display: flex;
    justify-content: center;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid rgba(138, 127, 214, 0.12);
    background: rgba(138, 127, 214, 0.04);
    backdrop-filter: blur(20px);
    position: relative;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lavender-bright);
    box-shadow: 0 0 8px rgba(169, 155, 235, 0.5);
    position: relative;
    z-index: 1;
}

.pulse-ring {
    position: absolute;
    left: 28px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid var(--lavender-bright);
    animation: ring-pulse 3s ease-out infinite;
}

@keyframes ring-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(4); opacity: 0; }
}

/* ============================================
   Footer
   ============================================ */

footer {
    padding: 28px 48px;
    text-align: center;
    opacity: 0;
    animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

footer p {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   Keyframes
   ============================================ */

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    header { padding: 24px 24px; }
    main { padding: 0 24px; }
    footer { padding: 20px 24px; }

    .nav-logo { height: 22px; }

    h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .glow-1 { width: 350px; height: 350px; }
    .glow-2 { width: 300px; height: 300px; }
    .glow-3 { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.85rem;
    }

    .overline {
        font-size: 0.65rem;
    }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    header, .overline, footer { opacity: 1; }
    #ink-canvas { display: none; }
}
