@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600&display=swap');

/* ── Design tokens ────────────────────────────── */
:root {
    --void:         #050508;
    --bg:           #08090e;
    --surface:      #0f1017;
    --surface-up:   #161722;
    --ring:         #c9a84c;
    --ring-soft:    rgba(201, 168, 76, 0.12);
    --ring-glow:    rgba(201, 168, 76, 0.06);
    --text:         #e4e2dc;
    --text-dim:     #706f78;
    --text-mid:     #9e9da5;
    --border:       rgba(255, 255, 255, 0.04);
    --border-light: rgba(255, 255, 255, 0.07);

    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body:    'Outfit', -apple-system, sans-serif;

    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* ── Navigation ───────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 9, 14, 0.7);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--ring);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.3s var(--ease-smooth);
}

.logo img {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.logo:hover { opacity: 0.8; }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-body);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.3s var(--ease-smooth);
}

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

/* ── Hero ─────────────────────────────────────── */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 180px 32px 120px;
    max-width: 1080px;
    margin: 0 auto;
    overflow: visible;
}

.hero-content {
    flex: 1;
    max-width: 520px;
    text-align: left;
}

/* ── Constellation (from app icon) ────────────── */
.constellation {
    position: relative;
    flex-shrink: 0;
    width: 380px;
    height: 380px;
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 50%;
    will-change: opacity, transform;
}

/* Center moon — warm cream like the icon */
.star-center {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 40% 38%, #eae6da, #ddd8c8);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(228, 224, 212, 0.12), 0 0 80px rgba(228, 224, 212, 0.05);
    animation: center-glow 6s ease-in-out infinite alternate;
}

/* Steel blue — upper left */
.star-1 {
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 40% 38%, #8a9dae, #6b7d8e);
    top: 25%;
    left: 28%;
    animation: twinkle 4.2s ease-in-out 0.3s infinite;
}

/* Slate — small, far upper left */
.star-2 {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 40% 38%, #7a8898, #5a6878);
    top: 18%;
    left: 22%;
    animation: twinkle 5.1s ease-in-out 1.8s infinite;
}

/* Gold — upper right, larger */
.star-3 {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 40% 38%, #ccaa50, #b69b44);
    top: 28%;
    left: 65%;
    animation: twinkle 3.8s ease-in-out 0.8s infinite;
}

/* Dark gold — small, upper right */
.star-4 {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 40% 38%, #9e9648, #7e7a3e);
    top: 20%;
    left: 60%;
    animation: twinkle 5.5s ease-in-out 2.4s infinite;
}

/* Purple/mauve — lower left */
.star-5 {
    width: 24px;
    height: 24px;
    background: radial-gradient(circle at 40% 38%, #a07aa0, #8e6a8e);
    top: 65%;
    left: 24%;
    animation: twinkle 4.6s ease-in-out 1.2s infinite;
}

/* Dusty rose — lower center-right */
.star-6 {
    width: 16px;
    height: 16px;
    background: radial-gradient(circle at 40% 38%, #a06a6e, #8e5a5e);
    top: 62%;
    left: 62%;
    animation: twinkle 5.3s ease-in-out 3.1s infinite;
}

/* Teal — right side */
.star-7 {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 40% 38%, #5e9e8e, #4e7e6e);
    top: 48%;
    left: 78%;
    animation: twinkle 4.9s ease-in-out 0.6s infinite;
}

/* Gray — small, far right */
.star-8 {
    width: 11px;
    height: 11px;
    background: radial-gradient(circle at 40% 38%, #8e8e92, #6e6e72);
    top: 36%;
    left: 82%;
    animation: twinkle 6.2s ease-in-out 2.0s infinite;
}

/* Olive — lower center */
.star-center ~ .star-8 {
    /* intentionally left for 8 dots */
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.85); }
    50%      { opacity: 1;   transform: scale(1);    }
}

@keyframes center-glow {
    0%   { box-shadow: 0 0 40px rgba(228, 224, 212, 0.10), 0 0 80px rgba(228, 224, 212, 0.04); }
    100% { box-shadow: 0 0 50px rgba(228, 224, 212, 0.16), 0 0 100px rgba(228, 224, 212, 0.06); }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 0.25s forwards;
}

.hero h1 em {
    font-style: italic;
    color: var(--ring);
}

.subtitle {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    color: var(--text-dim);
    max-width: 480px;
    margin: 0 0 44px;
    line-height: 1.75;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 0.4s forwards;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    background: transparent;
    color: var(--ring);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 100px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-smooth);
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 0.55s forwards;
}

.cta:hover {
    background: var(--ring-soft);
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.08);
}

.cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ── Divider ──────────────────────────────────── */
.section-divider {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ring), transparent);
    margin: 0 auto;
    opacity: 0.4;
}

/* ── Features ─────────────────────────────────── */
.features {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 32px 100px;
}

.features-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 56px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--ring-soft) 50%, transparent 90%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.feature:hover {
    background: var(--surface-up);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ring-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--ring);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.feature p {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ── About ────────────────────────────────────── */
.about {
    position: relative;
    padding: 100px 32px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.about-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.about h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}

.about h2 em {
    font-style: italic;
    color: var(--ring);
}

.about p {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about a {
    color: var(--ring);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    transition: border-color 0.3s;
}

.about a:hover {
    border-color: var(--ring);
}

.about h2 a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}

.about h2 a em {
    transition: color 0.3s var(--ease-smooth);
}

.about h2 a:hover em {
    color: var(--ring);
}

/* ── Footer ───────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 32px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: color 0.3s var(--ease-smooth);
}

.footer-links a:hover {
    color: var(--text-mid);
}

/* ── Legal pages ──────────────────────────────── */
.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 140px 32px 100px;
}

.legal h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.legal .updated {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-dim);
    margin-bottom: 48px;
    letter-spacing: 0.3px;
}

.legal h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    margin-top: 48px;
    margin-bottom: 14px;
    color: var(--text);
}

.legal p, .legal li {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal strong {
    color: var(--text-mid);
    font-weight: 500;
}

.legal ul {
    padding-left: 24px;
    margin-bottom: 14px;
}

.legal li {
    margin-bottom: 8px;
}

.legal a {
    color: var(--ring);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    transition: border-color 0.3s;
}

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

/* ── Support page ─────────────────────────────── */
.support-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.support-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s var(--ease-smooth);
}

.support-card:hover {
    background: var(--surface-up);
    border-color: var(--border-light);
}

.support-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.support-card p {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-dim);
    margin-bottom: 14px;
    line-height: 1.6;
}

.support-card a {
    color: var(--ring);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    transition: border-color 0.3s;
}

.support-card a:hover {
    border-color: var(--ring);
}

/* ── Animations ───────────────────────────────── */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.6s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 150px 24px 60px;
        gap: 20px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-content .subtitle {
        margin: 0 auto 36px;
    }

    .hero-content .cta {
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 42px;
    }

    .constellation {
        width: 280px;
        height: 280px;
    }

    .star-center {
        width: 52px;
        height: 52px;
    }

    .subtitle {
        font-size: 15px;
    }

    .features {
        padding: 60px 24px 80px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .feature {
        padding: 32px 24px 28px;
    }

    .about {
        padding: 60px 24px;
    }

    .about h2 {
        font-size: 28px;
    }

    .support-options {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .nav-inner {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .legal {
        padding: 120px 24px 80px;
    }

    .legal h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 34px;
    }

    .nav-links {
        gap: 14px;
    }
}
