/* ==========================================================================
   Ringly Max — premium design system
   Warm gold-on-obsidian, editorial serif display, subtle ring motif.
   A distinct identity (no purple/blue), shared across every page.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Surfaces — warm obsidian */
    --bg:          #0a0908;
    --bg-alt:      #0f0d0a;
    --surface:     #15120c;
    --surface-2:   #1d1810;
    --border:      #2d2618;
    --border-soft: #241e13;

    /* Ink — warm */
    --ink:         #ece4d3;
    --ink-strong:  #faf4e6;
    --muted:       #ab9f8b;
    --muted-dim:   #80755f;

    /* Gold — brand */
    --gold:        #e9cf7a;
    --gold-bright: #f4df97;
    --gold-deep:   #d4af37;
    --gold-grad:   linear-gradient(135deg, #f8dd8a 0%, #ecb84e 52%, #cf8f27 100%);

    /* Warm ambience (replaces Zena-style purple glow) */
    --warm:        rgba(236, 184, 78, 0.10);
    --warm-soft:   rgba(236, 184, 78, 0.06);

    /* Type */
    --display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --ui:      'Inter', Arial, sans-serif;

    --maxw:        1080px;
    --radius:      18px;
    --radius-sm:   12px;

    --shadow:      0 24px 60px -24px rgba(0,0,0,0.8);
    --shadow-gold: 0 16px 40px -16px rgba(236, 184, 78, 0.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--ui);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    color: var(--ink-strong);
    line-height: 1.14;
    letter-spacing: -0.005em;
    margin: 0 0 0.5em;
    font-weight: 700;
}

a { color: var(--gold); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-bright); }

p { margin: 0 0 1em; }

img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation -------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 9, 8, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img.mark { height: 34px; width: 34px; border-radius: 9px; display: block; }
.brand img.word { height: 22px; width: auto; display: block; }
.brand .brand-text {
    font-family: var(--display);
    font-weight: 700;
    font-size: 21px;
    color: var(--ink-strong);
    letter-spacing: -0.01em;
}
.brand .brand-text span { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--ui);
}
.nav-links a:hover { color: var(--ink-strong); }

/* ---------- Buttons ----------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--ui);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gold-grad);
    color: #2a1c05;
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); color: #2a1c05; }
.btn-ghost {
    background: rgba(255,255,255,0.03);
    border-color: var(--border);
    color: var(--ink-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--ink-strong); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
    position: relative;
    text-align: center;
    padding: 104px 24px 88px;
    overflow: hidden;
}
/* warm halo + faint concentric rings (a nod to "Ringly") */
.hero::before {
    content: "";
    position: absolute;
    inset: -10% -20% auto -20%;
    height: 760px;
    background:
        radial-gradient(44% 50% at 50% 6%, var(--warm), transparent 68%),
        radial-gradient(circle at 50% 30%, transparent 238px, var(--warm-soft) 240px, transparent 243px),
        radial-gradient(circle at 50% 30%, transparent 360px, rgba(236,184,78,0.04) 362px, transparent 365px);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow {
    font-family: var(--ui);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.7rem, 6.6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.04;
    max-width: 15ch;
    margin: 0 auto 0.42em;
}
.hero h1 .accent {
    color: var(--gold);
    font-style: italic;
    font-weight: 600;
}
.hero-sub {
    color: var(--muted);
    font-size: clamp(1.04rem, 2.2vw, 1.24rem);
    max-width: 54ch;
    margin: 0 auto 38px;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
    margin-top: 32px;
    color: var(--muted-dim);
    font-size: 13.5px;
    letter-spacing: 0.04em;
}

/* ---------- Sections ---------------------------------------------------- */
.section { padding: 80px 24px; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 52px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Feature grid ------------------------------------------------ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: var(--maxw);
    margin: 0 auto;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border); background: var(--surface-2); }
.feature-ico {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    border-radius: 14px;
    background: radial-gradient(120% 120% at 30% 20%, rgba(236,184,78,0.20), rgba(236,184,78,0.04));
    border: 1px solid rgba(236,184,78,0.24);
    margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Steps ------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--maxw);
    margin: 0 auto;
}
.step {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
}
.step-num {
    font-family: var(--display);
    font-weight: 900;
    font-size: 2.4rem;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}
.step h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Split (Kundli / Talk) -------------------------------------- */
.split {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.split.reverse .split-visual { order: 2; }
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--shadow);
}
.panel-cap {
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 20px;
    font-family: var(--ui);
    font-weight: 600;
}
.split-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; }
.split-copy > p { color: var(--muted); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 15px; color: var(--ink); }
.ticks li::before {
    content: "";
    position: absolute; left: 0; top: 7px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--gold-grad);
    box-shadow: 0 0 0 4px rgba(236,184,78,0.12);
}
.ticks li strong { color: var(--ink-strong); }

/* Kundli chart */
.kundli svg { width: 100%; height: auto; display: block; }
.kundli .ln { stroke: rgba(233,207,122,0.55); stroke-width: 1.4; fill: none; }
.kundli .frame { stroke: rgba(233,207,122,0.82); stroke-width: 1.8; fill: rgba(236,184,78,0.015); }
.kundli .hn { fill: var(--muted-dim); font: 600 11px var(--ui); }
.kundli .pl { fill: var(--gold-bright); font: 700 12px var(--ui); }

/* ---------- Modes chips ------------------------------------------------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: var(--ui);
    font-weight: 600; font-size: 14px;
    color: var(--ink-strong);
}
.chip span { font-size: 16px; }

/* ---------- Chat -------------------------------------------------------- */
.chat {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bubble {
    max-width: 78%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.98rem;
    line-height: 1.55;
}
.bubble.user {
    align-self: flex-end;
    background: var(--gold-grad);
    color: #2a1c05;
    border-bottom-right-radius: 6px;
    font-weight: 500;
}
.bubble.ai {
    align-self: flex-start;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--ink);
    border-bottom-left-radius: 6px;
}
.bubble .who {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 5px;
    font-weight: 700;
    font-family: var(--ui);
}

/* ---------- FAQ --------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq details[open] { border-color: var(--border); }
.faq summary {
    cursor: pointer;
    padding: 18px 22px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink-strong);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 400;
    transition: transform .2s ease;
    font-family: var(--ui);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq .faq-body p { margin: 0; }

/* ---------- CTA band ---------------------------------------------------- */
.cta-band {
    max-width: var(--maxw);
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(80% 150% at 50% 0%, rgba(236,184,78,0.13), transparent 68%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 66px 28px;
}
.cta-band h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 700; }
.cta-band p { color: var(--muted); font-size: 1.1rem; max-width: 48ch; margin: 0 auto 30px; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-soft);
    padding: 58px 24px 34px;
}
.footer-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 {
    font-family: var(--ui);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 700;
}
.footer-col a, .footer-col span {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 11px;
}
.footer-col a:hover { color: var(--ink-strong); }
.footer-bottom {
    max-width: var(--maxw);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted-dim);
    font-size: 0.88rem;
}

/* ---------- Content / legal pages -------------------------------------- */
.page-hero {
    text-align: center;
    padding: 72px 24px 44px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 340px;
    background: radial-gradient(44% 70% at 50% 0%, var(--warm-soft), transparent 72%);
    pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 700; }
.page-hero p { color: var(--muted); margin: 0; }

.prose {
    max-width: 860px;
    margin: 0 auto 40px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 44px 46px;
    box-shadow: var(--shadow);
}
.prose h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.6em; }
.prose h2 { font-size: 1.5rem; font-weight: 600; margin: 1.6em 0 0.5em; color: var(--gold-bright); }
.prose h3 { font-size: 1.18rem; font-weight: 600; margin: 1.3em 0 0.4em; }
.prose p, .prose li { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink-strong); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 920px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 34px; }
    .split.reverse .split-visual { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 680px) {
    .nav-links { display: none; }
    .nav-links.compact { display: flex; gap: 16px; }
    .hero { padding: 78px 20px 62px; }
    .section { padding: 60px 20px; }
    .prose { padding: 28px 22px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; }
}
