/* ============================================================
   SleepGeek — Design System
   Colors: Deep navy (#0a0a1a) → Lavender (#B8A9E8) → Cyan (#67e8f9)
   ============================================================ */

:root {
    --bg-deep: #0a0a1a;
    --bg-dark: #0f0f2a;
    --bg-card: #161638;
    --bg-card-hover: #1c1c48;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;
    --accent-lavender: #B8A9E8;
    --accent-purple: #9b7fe8;
    --accent-cyan: #67e8f9;
    --accent-pink: #e879a8;
    --gradient-primary: linear-gradient(135deg, #B8A9E8 0%, #67e8f9 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 30%, rgba(184, 169, 232, 0.12) 0%, transparent 60%);
    --shadow-glow: 0 0 40px rgba(184, 169, 232, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Montserrat', 'Inter', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Stars Background
   ============================================================ */
.stars-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle ease-in-out infinite alternate;
}
@keyframes twinkle {
    from { opacity: 0.1; transform: scale(0.8); }
    to { opacity: 0.7; transform: scale(1.2); }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}
.nav-scrolled {
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(184, 169, 232, 0.1);
    padding: 10px 0;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.nav-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-lavender);
    transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    z-index: 1;
}
.hero-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.hero-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
}
.hero-logo {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}
.hero-logo-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(184, 169, 232, 0.2);
    animation: pulse-ring 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.08); opacity: 0.6; }
}
.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 16px;
}
.hero-title-line {
    color: var(--text-primary);
}
.hero-title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent-lavender);
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-deep);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(184, 169, 232, 0.35);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(184, 169, 232, 0.3);
}
.btn-secondary:hover {
    border-color: var(--accent-lavender);
    background: rgba(184, 169, 232, 0.08);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(184, 169, 232, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent-lavender);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(14px); opacity: 0.3; }
}

/* ============================================================
   Sections
   ============================================================ */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}
.section-dark {
    background: rgba(15, 15, 42, 0.6);
}
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(184, 169, 232, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: all 0.3s ease;
}
.about-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(184, 169, 232, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.about-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.about-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(184, 169, 232, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px 24px 32px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.platform-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(184, 169, 232, 0.25);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}
.platform-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: white;
}
.platform-icon svg {
    width: 28px;
    height: 28px;
}
.platform-telegram { background: linear-gradient(135deg, #2AABEE, #229ED9); }
.platform-youtube { background: linear-gradient(135deg, #FF0000, #CC0000); }
.platform-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.platform-threads { background: linear-gradient(135deg, #333, #000); }
.platform-facebook { background: linear-gradient(135deg, #1877F2, #0d65d9); }

.platform-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.platform-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
    line-height: 1.5;
}
.platform-handle {
    font-size: 0.8rem;
    color: var(--accent-lavender);
    font-weight: 500;
    opacity: 0.8;
}

/* Contact */
.contact-content {
    text-align: center;
    max-width: 500px;
    margin: 40px auto 0;
}
.contact-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
}
.contact-email {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-lavender);
    padding: 12px 32px;
    border: 1px solid rgba(184, 169, 232, 0.3);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    margin-bottom: 32px;
}
.contact-email:hover {
    background: rgba(184, 169, 232, 0.08);
    border-color: var(--accent-lavender);
    transform: translateY(-2px);
}
.contact-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.contact-social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(184, 169, 232, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}
.contact-social-link svg {
    width: 20px;
    height: 20px;
}
.contact-social-link:hover {
    color: var(--accent-lavender);
    border-color: rgba(184, 169, 232, 0.3);
    transform: translateY(-2px);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(184, 169, 232, 0.08);
    padding: 40px 0;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}
.footer-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--accent-lavender);
}
.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   Animations
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Stagger children */
.about-card:nth-child(2), .platform-card:nth-child(2) { transition-delay: 0.1s; }
.about-card:nth-child(3), .platform-card:nth-child(3) { transition-delay: 0.2s; }
.about-card:nth-child(4), .platform-card:nth-child(4) { transition-delay: 0.3s; }
.platform-card:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   Legal Pages (shared)
   ============================================================ */
.legal-page {
    padding: 120px 24px 80px;
    position: relative;
    z-index: 1;
}
.legal-content {
    max-width: 740px;
    margin: 0 auto;
}
.legal-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.legal-content .legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
}
.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-lavender);
    margin: 40px 0 16px;
}
.legal-content p, .legal-content li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}
.legal-content li {
    margin-bottom: 6px;
}
.legal-content a {
    color: var(--accent-lavender);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-content a:hover {
    color: var(--accent-cyan);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .about-grid { grid-template-columns: 1fr; }
    .platforms-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .legal-content h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2.4rem; }
    .hero-logo { width: 100px; height: 100px; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
}
