/* ==========================================================================
   Ora — oracortex.ai
   Dark theme inspired by JetBrains Nightfall
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom properties (Nightfall palette)
   -------------------------------------------------------------------------- */

:root {
    /* Backgrounds */
    --bg-deep: #1c1e26;
    --bg-surface: #232530;
    --bg-elevated: #2B2D3B;
    --bg-hover: #2e303e;

    /* Text */
    --text-primary: #B6C4F2;
    --text-secondary: #abb2bf;
    --text-muted: #5c6370;
    --text-bright: #BFC7D7;

    /* Accents */
    --accent-purple: #b877db;
    --accent-teal: #64d1a9;
    --accent-orange: #fab795;
    --accent-gold: #DBBE7F;
    --accent-cyan: #7fdaff;
    --accent-lavender: #baacff;
    --accent-pink: #f3c1ff;

    /* Borders */
    --border: #2e303e;
    --border-subtle: #3D3F5250;

    /* Sizing */
    --max-width: 1200px;
    --section-padding: 6rem 2rem;
    --card-radius: 12px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}


/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

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

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-cyan);
}

img {
    max-width: 100%;
    height: auto;
}


/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
    color: var(--text-bright);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    max-width: 65ch;
}

.mono {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}


/* --------------------------------------------------------------------------
   Layout utilities
   -------------------------------------------------------------------------- */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.section--alt {
    background: var(--bg-surface);
}

.section__label {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.section__intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 60ch;
    margin-bottom: 3rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}


/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 2rem;
    transition: border-color var(--transition-medium), transform var(--transition-medium);
}

.section--alt .card {
    background: var(--bg-deep);
}

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

.card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.card__title {
    color: var(--text-bright);
    margin-bottom: 0.75rem;
}

.card__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(184, 119, 219, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 30% 60%, rgba(100, 209, 169, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 30%, rgba(127, 218, 255, 0.04) 0%, transparent 60%);
    animation: heroGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1.05) rotate(1deg);
    }
}

#hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

.hero__title {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-lavender), var(--accent-teal));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero__tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 40ch;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 1;
}

.hero__scroll svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-muted);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}


/* --------------------------------------------------------------------------
   Feature highlight (large text + cards)
   -------------------------------------------------------------------------- */

.feature-intro {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 55ch;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.feature-intro strong {
    color: var(--text-bright);
}


/* --------------------------------------------------------------------------
   About grid (text + mood radar)
   -------------------------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 300px;
        gap: 4rem;
    }
}

.about-grid .feature-intro {
    margin-bottom: 0;
}

.mood-radar {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.mood-radar svg {
    width: 100%;
    height: auto;
}

.mood-radar__ring {
    fill: none;
    stroke: var(--border);
    stroke-width: 1;
}

.mood-radar__ring--inner {
    stroke-dasharray: 4 4;
    opacity: 0.5;
}

.mood-radar__axes line {
    stroke: var(--border);
    stroke-width: 0.5;
    opacity: 0.4;
}

.mood-radar__shape {
    fill: rgba(184, 119, 219, 0.15);
    stroke: var(--accent-purple);
    stroke-width: 2;
    transition: all 2s ease;
}

.mood-radar__shape-glow {
    fill: rgba(184, 119, 219, 0.06);
    stroke: none;
    transition: all 2s ease;
    filter: blur(8px);
}

.mood-radar__labels text {
    fill: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-anchor: middle;
}


/* --------------------------------------------------------------------------
   Tag/badge
   -------------------------------------------------------------------------- */

.tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag--purple { color: var(--accent-purple); border-color: rgba(184, 119, 219, 0.3); }
.tag--teal { color: var(--accent-teal); border-color: rgba(100, 209, 169, 0.3); }
.tag--orange { color: var(--accent-orange); border-color: rgba(250, 183, 149, 0.3); }
.tag--gold { color: var(--accent-gold); border-color: rgba(219, 190, 127, 0.3); }
.tag--cyan { color: var(--accent-cyan); border-color: rgba(127, 218, 255, 0.3); }


/* --------------------------------------------------------------------------
   Architecture diagram (simple)
   -------------------------------------------------------------------------- */

.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.arch-flow__node {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
}

.arch-flow__arrow {
    color: var(--accent-purple);
    font-size: 1.2rem;
}


/* --------------------------------------------------------------------------
   Accent line (section divider)
   -------------------------------------------------------------------------- */

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal));
    border: none;
    border-radius: 2px;
    margin: 0 0 2rem 0;
}


/* --------------------------------------------------------------------------
   Scroll animations
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero::before {
        animation: none;
    }

    .hero__scroll {
        animation: none;
    }
}


/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--accent-teal);
}

.footer__brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* --------------------------------------------------------------------------
   Nav (minimal sticky)
   -------------------------------------------------------------------------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-medium), box-shadow var(--transition-medium);
}

.nav.scrolled {
    background: rgba(28, 30, 38, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

.nav__logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.02em;
}

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

.nav__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav__links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

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

@media (max-width: 640px) {
    .nav__links {
        display: none;
    }
}


/* --------------------------------------------------------------------------
   Quote / callout
   -------------------------------------------------------------------------- */

.callout {
    border-left: 3px solid var(--accent-purple);
    padding: 1.25rem 1.5rem;
    background: rgba(184, 119, 219, 0.05);
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
}

.callout p {
    color: var(--text-primary);
    font-style: italic;
    font-size: 1.05rem;
}


/* --------------------------------------------------------------------------
   Privacy policy page specifics
   -------------------------------------------------------------------------- */

.policy {
    padding: 8rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.policy h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
}

.policy__updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.policy h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-purple);
}

.policy p,
.policy li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy li {
    margin-bottom: 0.5rem;
}

.policy a {
    color: var(--accent-teal);
}


/* --------------------------------------------------------------------------
   Responsive fine-tuning
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    :root {
        --section-padding: 4rem 1.25rem;
    }

    .card {
        padding: 1.5rem;
    }

    .arch-flow {
        flex-direction: column;
    }

    .arch-flow__arrow {
        transform: rotate(90deg);
    }
}
