/* ============================================================
   SiraAI V3 — LUMINOUS STILLNESS
   Lavender + Sage Green · Anti-Gravity · Editorial
   ============================================================ */

:root {
    /* Palette */
    --bg: #080812;
    --surface: #0f0f1a;
    --lavender: #B4A0E6;
    --lavender-bright: #C8AFFF;
    --lavender-dim: #7864AA;
    --lavender-glow: rgba(180, 160, 230, 0.15);
    --sage: #8CB482;
    --sage-bright: #AAD29B;
    --sage-dim: #648C5F;
    --sage-glow: rgba(140, 180, 130, 0.15);
    --cream: #F5F0E6;
    --text: #E6E1D8;
    --muted: #968F86;
    --dim: #5A5750;
    --warm: #DCC8AA;
    --gold: #F0D28C;
    --rose: #D4A0B0;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.07);
    --glass-blur: 20px;

    /* Typography */
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.23, 0.86, 0.39, 0.96);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   PARTICLES CANVAS
   ============================================================ */
#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ============================================================
   GRADIENT ORBS
   ============================================================ */
.gradient-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-lavender {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(180,160,230,0.12) 0%, transparent 70%);
}

.orb-lavender-dim {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(150,130,200,0.08) 0%, transparent 70%);
}

.orb-sage {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(140,180,130,0.1) 0%, transparent 70%);
}

/* ============================================================
   FLOATING SHAPES — Anti-Gravity
   ============================================================ */
.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    width: var(--size);
    height: var(--size);
    animation: float var(--duration) ease-in-out var(--delay) infinite;
}

.shape-ring {
    border: 1.5px solid rgba(180, 160, 230, 0.12);
    border-radius: 50%;
}

.shape-ring::after {
    content: '';
    position: absolute;
    top: 25%; left: 25%; right: 25%; bottom: 25%;
    border: 1px solid rgba(180, 160, 230, 0.06);
    border-radius: 50%;
}

.shape-diamond {
    border: 1.5px solid rgba(140, 180, 130, 0.15);
    transform: rotate(45deg);
}

.shape-cross {
    background: transparent;
}
.shape-cross::before, .shape-cross::after {
    content: '';
    position: absolute;
    background: rgba(245, 240, 230, 0.1);
}
.shape-cross::before {
    top: 50%; left: 0; right: 0; height: 1.5px;
    transform: translateY(-50%);
}
.shape-cross::after {
    left: 50%; top: 0; bottom: 0; width: 1.5px;
    transform: translateX(-50%);
}

.shape-dots {
    background: transparent;
    background-image: radial-gradient(circle, rgba(180,160,230,0.2) 2px, transparent 2px);
    background-size: 33% 33%;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out);
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.glow-top-lavender {
    border-top: 1px solid rgba(180, 160, 230, 0.25);
    box-shadow: 0 -1px 20px rgba(180, 160, 230, 0.05);
}

.glow-top-sage {
    border-top: 1px solid rgba(140, 180, 130, 0.25);
    box-shadow: 0 -1px 20px rgba(140, 180, 130, 0.05);
}

.glow-top-gold {
    border-top: 1px solid rgba(240, 210, 140, 0.2);
    box-shadow: 0 -1px 20px rgba(240, 210, 140, 0.04);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 28px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    border: none;
    text-decoration: none;
}

.btn-sage {
    background: var(--sage);
    color: #0a1208;
}
.btn-sage:hover {
    background: var(--sage-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(140, 180, 130, 0.2);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-glow {
    box-shadow: 0 0 40px rgba(140, 180, 130, 0.15);
}
.btn-glow:hover {
    box-shadow: 0 0 60px rgba(140, 180, 130, 0.25);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.text-cream { color: var(--cream); }
.text-lavender { color: var(--lavender); }
.text-lavender-bright { color: var(--lavender-bright); }
.text-lavender-italic { color: var(--lavender); font-style: italic; }
.text-sage { color: var(--sage); }
.text-sage-bright { color: var(--sage-bright); }
.text-sage-italic { color: var(--sage); font-style: italic; }
.text-gold { color: var(--gold); }
.italic { font-style: italic; }
.mono { font-family: 'JetBrains Mono', 'SF Mono', monospace; font-size: 11px; color: var(--dim); letter-spacing: 0.05em; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 48px;
    right: 48px;
    z-index: 100;
    transition: all 0.4s var(--ease-out);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled .nav-inner {
    background: rgba(8, 8, 18, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Navbar logo — horizontal "icon + wordmark" lockup (ChatGPT / Stripe / Notion style).
   The icon is a precision crop of SiraPIC3.png (a 1024×1024 PNG); the wordmark
   is rendered as live text so it stays crisp at any zoom and matches the font
   stack of the rest of the site.

   Measured icon-only bounds in the source PNG:
     x: 356 → 702 (width 346),   y: 240 → 536 (height 296)
   .nav-logo-icon is a fixed-size frame that scales + offsets the PNG so that
   the icon region exactly fills it — zero dead space, no stretch. */
.nav-logo {
    /* Resize the whole lockup by changing --logo-h. */
    --logo-h: 38px;

    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--logo-h);
    color: var(--cream);
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-out), filter 0.35s var(--ease-out);
    will-change: transform, filter;
    -webkit-tap-highlight-color: transparent;
}

.nav-logo-icon {
    /* Source PNG + icon-only bounding box (used by the calc()s below) */
    --src: 1024;
    --icon-w: 346;
    --icon-h: 296;
    --icon-x: 356;
    --icon-y: 240;

    position: relative;
    display: inline-block;
    height: var(--logo-h);
    width: calc(var(--logo-h) * var(--icon-w) / var(--icon-h));
    overflow: hidden;
    flex-shrink: 0;
}

.nav-logo-img {
    position: absolute;
    height: calc(var(--logo-h) * var(--src) / var(--icon-h));
    width:  calc(var(--logo-h) * var(--src) / var(--icon-h));
    max-width: none;
    top:  calc(var(--logo-h) * -1 * var(--icon-y) / var(--icon-h));
    left: calc(var(--logo-h) * -1 * var(--icon-x) / var(--icon-h));
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    image-rendering: -webkit-optimize-contrast;
    transition: filter 0.4s var(--ease-out);
}

.nav-logo-text {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--cream);
    white-space: nowrap;
    /* Tiny optical alignment with the icon's vertical center */
    transform: translateY(0.5px);
}

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

.nav-logo:hover {
    transform: translateY(-1px) scale(1.03);
    filter: drop-shadow(0 10px 24px rgba(180, 160, 230, 0.35))
            drop-shadow(0 3px 10px rgba(150, 200, 170, 0.22));
}

.nav-logo:hover .nav-logo-img {
    filter: brightness(1.08) saturate(1.12);
}

.nav-logo:active {
    transform: scale(0.98);
    transition-duration: 120ms;
}

.nav-logo:focus-visible {
    outline: 2px solid var(--lavender);
    outline-offset: 5px;
    border-radius: 10px;
}

/* Footer logo stays as text "SiraAI" — the navbar .nav-logo rules above set up
   a fixed-size cropping frame for the PNG; the footer text logo overrides all
   of that and renders as plain styled text. */
.footer-brand .nav-logo {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    color: var(--cream);
    display: inline-flex;
    align-items: center;
    position: static;
    height: auto;
    width: auto;
    overflow: visible;
    gap: 2px;
    transition: none;
    filter: none;
    transform: none;
}
.footer-brand .nav-logo:hover { filter: none; transform: none; }

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

.nav-link {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.3s;
    position: relative;
}
.nav-link:hover { color: var(--cream); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--lavender);
    transition: width 0.3s var(--ease-out);
}
.nav-link:hover::after { width: 100%; }

.nav-cta {
    padding: 10px 22px;
    background: var(--sage);
    color: #0a1208;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
}
.nav-cta:hover {
    background: var(--sage-bright);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 22px; height: 1.5px;
    background: var(--cream);
    transition: all 0.3s;
}

.nav-actions { display: flex; }

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */
@media (max-width: 768px) {
    .navbar { left: 16px; right: 16px; top: 12px; }
    .nav-inner { padding: 8px 18px; }
    .nav-logo { --logo-h: 32px; gap: 8px; }
    .nav-logo-text { font-size: 15.5px; }
    .footer-brand .nav-logo { height: auto; width: auto; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-actions { display: none; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: rgba(8, 8, 18, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 20px;
        padding: 24px;
        gap: 20px;
    }
}
