@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Poppins:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg: #08081c;
    --card: #12132e;
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #00abf0;
    --accent-2: #7c5cff;
    --text: #f4f6fb;
    --text-dim: #a6acc4;
    --radius: 14px;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    min-height: 100vh;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: var(--accent);
    color: #05131a;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--accent), var(--accent-2));
    border-radius: 10px;
    border: 2px solid var(--bg);
}

/* Ambient background */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(600px circle at 15% 10%, rgba(0, 171, 240, 0.18), transparent 60%),
        radial-gradient(500px circle at 85% 20%, rgba(124, 92, 255, 0.16), transparent 60%),
        radial-gradient(700px circle at 30% 90%, rgba(0, 171, 240, 0.09), transparent 60%),
        radial-gradient(600px circle at 90% 80%, rgba(124, 92, 255, 0.1), transparent 60%);
    animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.spotlight {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(320px circle at var(--x, 50%) var(--y, 50%), rgba(0, 171, 240, 0.1), transparent 70%);
    transition: opacity .4s ease;
}

.spotlight.active {
    opacity: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(8, 8, 28, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}

.header.scrolled {
    border-bottom-color: var(--card-border);
    background: rgba(8, 8, 28, 0.85);
}

.logo {
    font-size: 24px;
    font-weight: 800;
}

.logo span {
    color: var(--accent);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.navbar a {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
    padding: 6px 0;
    transition: color .3s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width .3s ease;
}

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

.navbar a:hover::after {
    width: 100%;
}

/* Layout */
.wrap {
    flex-grow: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 150px 6% 60px;
}

.eyebrow {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    font-family: var(--font-mono);
    margin-bottom: 14px;
}

.wrap h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff, var(--accent) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wrap h1 span {
    background: linear-gradient(90deg, #ffffff, var(--accent) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Quote card */
.quote-box {
    position: relative;
    margin-top: 40px;
    width: 100%;
    max-width: 660px;
    background: rgba(18, 19, 46, 0.6);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 52px 48px 40px;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.quote-mark {
    position: absolute;
    top: 22px;
    left: 28px;
    width: 46px;
    height: 46px;
    color: var(--accent);
    opacity: 0.28;
}

.quote-box blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    line-height: 1.55;
    font-weight: 600;
    color: var(--text);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .3s ease, transform .3s ease;
}

.quote-box blockquote.long-quote {
    font-size: 21px;
}

.quote-box span#author {
    display: block;
    margin-top: 18px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    transition: opacity .3s ease, transform .3s ease;
}

.quote-box span#author::before {
    content: '— ';
}

.quote-box.fading blockquote,
.quote-box.fading span#author {
    opacity: 0;
    transform: translateY(8px);
}

.btn-row {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #05131a;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 30px;
    border: 0;
    padding: 0 34px;
    height: 50px;
    cursor: pointer;
    transition: transform .3s ease, filter .3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .3s ease, color .3s ease, transform .3s ease;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    padding: 24px 0;
    color: var(--text-dim);
    font-size: 14px;
    border-top: 1px solid var(--card-border);
}

@media (max-width: 600px) {
    .wrap {
        padding: 130px 6% 50px;
    }

    .quote-box {
        padding: 46px 26px 32px;
    }

    .quote-box blockquote {
        font-size: 22px;
    }

    .quote-box blockquote.long-quote {
        font-size: 18px;
    }
}
