/* ===========================================================
   Candor — advanced homepage styles (light/dark, animated)
   Scoped to index.html only. privacy/support use styles.css.
   =========================================================== */

:root {
    --magenta: #CB30E0;
    --blue: #0088FF;
    --grad: linear-gradient(135deg, #CB30E0, #0088FF);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* light theme */
    --bg: #faf8ff;
    --bg-soft: #ffffff;
    --text: #16131f;
    --muted: #5d586e;
    --card: rgba(255, 255, 255, 0.68);
    --card-2: #ffffff;
    --line: rgba(120, 80, 150, 0.14);
    --input: #ffffff;
    --shadow: 0 24px 60px -32px rgba(70, 20, 110, 0.32);
    --m1: rgba(203, 48, 224, 0.30);
    --m2: rgba(0, 136, 255, 0.28);
    --m3: rgba(150, 60, 255, 0.20);
    --nav-bg: rgba(250, 248, 255, 0.72);
}

html[data-theme="dark"] {
    --bg: #08070d;
    --bg-soft: #100e18;
    --text: #f3f1f8;
    --muted: #a39fb5;
    --card: rgba(255, 255, 255, 0.045);
    --card-2: #13111c;
    --line: rgba(255, 255, 255, 0.09);
    --input: rgba(255, 255, 255, 0.05);
    --shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.8);
    --m1: rgba(203, 48, 224, 0.36);
    --m2: rgba(0, 136, 255, 0.30);
    --m3: rgba(150, 40, 220, 0.30);
    --nav-bg: rgba(10, 9, 16, 0.66);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
}

a { color: var(--blue); }

/* ---------- animated aurora background ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg);
}
.blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.9;
    will-change: transform;
}
.b1 { background: radial-gradient(circle, var(--m1), transparent 68%); top: -22vw; left: -14vw; animation: drift1 22s ease-in-out infinite; }
.b2 { background: radial-gradient(circle, var(--m2), transparent 68%); top: -12vw; right: -16vw; animation: drift2 26s ease-in-out infinite; }
.b3 { background: radial-gradient(circle, var(--m3), transparent 68%); top: 38vw; left: 28vw; animation: drift3 30s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8vw, 10vw) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-10vw, 8vw) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6vw, -10vw) scale(1.2); } }

/* ---------- buttons ---------- */
.btn-primary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 999px;
    padding: 11px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
    color: #fff;
    background: var(--grad);
    background-size: 160% 160%;
    box-shadow: 0 12px 30px -12px rgba(150, 40, 180, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(150, 40, 180, 0.7); }
.btn-primary i { width: 18px; height: 18px; }
.btn-ghost {
    color: var(--text);
    background: var(--card);
    border-color: var(--line);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); }
.btn-primary.lg, .btn-ghost.lg { padding: 15px 28px; font-size: 1rem; }
.btn-primary.full { width: 100%; }

/* ---------- sticky nav ---------- */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(0,0,0,0.4);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
}
.brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
    text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--card);
    color: var(--text); cursor: pointer; display: grid; place-items: center;
    backdrop-filter: blur(10px); transition: transform 0.2s ease;
}
.theme-toggle:hover { transform: rotate(-15deg); }
.theme-toggle i { width: 18px; height: 18px; }

/* ---------- sections ---------- */
main { display: block; }
section { max-width: 1100px; margin: 0 auto; padding: 90px 24px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 12px;
}
.section-head h2 {
    font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    line-height: 1.12; letter-spacing: -0.02em;
}
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* ---------- hero ---------- */
.hero { padding-top: 150px; padding-bottom: 60px; max-width: 1180px; }
.hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--card); backdrop-filter: blur(10px);
    font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(203,48,224,.5);} 50% { opacity: .6; box-shadow: 0 0 0 6px rgba(203,48,224,0);} }
.hero-title {
    font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 5.2vw, 4rem);
    line-height: 1.06; letter-spacing: -0.025em; margin-bottom: 20px;
}
.grad {
    background: linear-gradient(110deg, #CB30E0, #0088FF, #CB30E0);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% 0; } }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-badges.center { justify-content: center; }
.store-badge img { height: 46px; width: auto; transition: transform 0.2s ease; }
.store-badge.gp img { height: 67px; margin: -10px 0; }
.store-badge:hover img { transform: scale(1.05); }
.hero-trial { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }

/* hero phone */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-glow {
    position: absolute; width: 340px; height: 340px; border-radius: 50%;
    background: var(--grad); filter: blur(90px); opacity: 0.35; z-index: 0;
}
.phone {
    position: relative; z-index: 1;
    width: 300px; max-width: 100%; border-radius: 44px; padding: 13px;
    background: linear-gradient(160deg, #1b1726, #0a0911);
    box-shadow: 0 40px 90px -30px rgba(120, 30, 160, 0.6), 0 14px 40px rgba(0,0,0,0.3);
}
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone-screen {
    border-radius: 32px; padding: 17px;
    background: linear-gradient(165deg, #f4ebfb, #e7f0ff);
    display: flex; flex-direction: column; gap: 10px;
}
.ps-prompt { background: rgba(255,255,255,0.74); border-radius: 16px; padding: 13px; }
.ps-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; color: #9c6b5a; margin-bottom: 7px; }
.ps-cat i { width: 13px; height: 13px; }
.ps-prompt p { font-size: 0.8rem; line-height: 1.42; color: #3a3550; }
.ps-tone { background: #fff; border-radius: 13px; padding: 10px 13px; border-left: 4px solid; }
.ps-tone span { display: block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 4px; }
.ps-tone p { font-size: 0.78rem; line-height: 1.38; color: #2c2740; }
.ps-tone.w { border-color: #D4537E; } .ps-tone.w span { color: #b53e69; }
.ps-tone.d { border-color: #378ADD; } .ps-tone.d span { color: #1f6fc0; }
.ps-tone.f { border-color: #7F77DD; } .ps-tone.f span { color: #5249c0; }

/* ---------- interactive demo ---------- */
.demo-card {
    max-width: 720px; margin: 0 auto;
    background: var(--card); border: 1px solid var(--line); border-radius: 26px;
    padding: 28px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 15px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted);
    font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
    transition: all 0.2s ease;
}
.chip i { width: 15px; height: 15px; }
.chip:hover { color: var(--text); transform: translateY(-1px); }
.chip.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 20px -10px rgba(150,40,180,0.6); }
.demo-label { display: block; font-weight: 600; font-size: 0.92rem; margin: 0 0 8px 2px; }
#demoInput {
    width: 100%; border-radius: 16px; padding: 15px 16px;
    border: 1px solid var(--line); background: var(--input); color: var(--text);
    font-family: var(--sans); font-size: 0.98rem; line-height: 1.5; resize: vertical; min-height: 84px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#demoInput:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(203,48,224,0.14); }
.gen { margin-top: 16px; }
.gen.loading { pointer-events: none; opacity: 0.85; }
.gen.loading i { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results { display: grid; gap: 14px; margin-top: 22px; }
.res-card {
    background: var(--card-2); border: 1px solid var(--line); border-left: 4px solid;
    border-radius: 16px; padding: 16px 18px;
    opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease;
}
.res-card.show { opacity: 1; transform: none; }
.res-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.res-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.res-card p { font-size: 0.96rem; line-height: 1.55; color: var(--text); }
.res-card.w { border-left-color: #D4537E; } .res-card.w .res-label { color: #c14d77; }
.res-card.d { border-left-color: #378ADD; } .res-card.d .res-label { color: #2f7fcf; }
.res-card.f { border-left-color: #7F77DD; } .res-card.f .res-label { color: #6a61cf; }
.copy-btn {
    display: inline-flex; align-items: center; gap: 5px; border: none; background: transparent;
    color: var(--muted); cursor: pointer; font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
    padding: 4px 8px; border-radius: 8px; transition: color 0.2s ease, background 0.2s ease;
}
.copy-btn:hover { color: var(--text); background: var(--card); }
.copy-btn i { width: 15px; height: 15px; }
.demo-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 18px; }

/* ---------- features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cell {
    background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cell:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(203,48,224,0.35); }
.cell.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.cell-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.cell-icon i { width: 25px; height: 25px; }
.cell h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.cell.big h3 { font-family: var(--serif); font-size: 1.6rem; }
.cell p { color: var(--muted); font-size: 0.92rem; }
.cell.big p { font-size: 1.02rem; }
.grad-bg { background: var(--grad); }
.c-orange { background: #eaa991; } .c-purple { background: #c597db; } .c-green { background: #90d3a5; }
.c-blue { background: #88bae6; } .c-pink { background: #ec94b9; } .c-brown { background: #d7c1a2; }
.mini-tones { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
.mt { font-size: 0.74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }
.mt.w { color: #c14d77; } .mt.d { color: #2f7fcf; } .mt.f { color: #6a61cf; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
    background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px;
    backdrop-filter: blur(12px);
}
.step .num {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
    font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: #fff; background: var(--grad);
    margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- pricing ---------- */
.price-card {
    position: relative; max-width: 460px; margin: 0 auto;
    background: var(--card-2); border: 1px solid var(--line); border-radius: 26px; padding: 36px 32px;
    box-shadow: var(--shadow); overflow: hidden;
}
.price-glow { position: absolute; top: -60px; right: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--grad); filter: blur(70px); opacity: 0.25; }
.price-top { position: relative; text-align: center; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.price-top h3 { font-size: 1.2rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.price { font-family: var(--serif); font-size: 3rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price span { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.price-feats { list-style: none; margin-bottom: 28px; }
.price-feats li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 1rem; }
.price-feats i { width: 20px; height: 20px; color: var(--magenta); flex-shrink: 0; }

/* ---------- closing CTA ---------- */
.cta-band { max-width: 1100px; }
.cta-inner {
    background: var(--grad); border-radius: 32px; padding: 64px 32px; text-align: center; color: #fff;
    box-shadow: 0 40px 90px -40px rgba(150, 40, 180, 0.7);
}
.cta-inner h2 { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; margin-bottom: 12px; }
.cta-inner p { font-size: 1.15rem; opacity: 0.92; margin-bottom: 30px; }
.cta-inner .store-badge img { filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25)); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-inner {
    max-width: 1100px; margin: 0 auto; padding: 48px 24px 28px;
    display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.foot-brand .brand { margin-bottom: 10px; }
.foot-brand p { color: var(--muted); font-size: 0.95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.foot-links a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--line); }
.foot-bottom p { max-width: 1100px; margin: 0 auto; padding: 20px 24px; color: var(--muted); font-size: 0.85rem; text-align: center; }
.foot-bottom a { color: var(--muted); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.bento .cell:nth-child(2).in { transition-delay: .05s; }
.bento .cell:nth-child(3).in { transition-delay: .1s; }
.bento .cell:nth-child(4).in { transition-delay: .15s; }
.steps .step:nth-child(2).in { transition-delay: .1s; }
.steps .step:nth-child(3).in { transition-delay: .2s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta, .hero-badges { justify-content: center; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .cell.big { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 820px) {
    .nav-links { display: none; }
}
@media (max-width: 620px) {
    section { padding: 64px 20px; }
    .hero { padding-top: 130px; }
    .bento { grid-template-columns: 1fr; }
    .cell.big { grid-column: span 1; }
    .steps { grid-template-columns: 1fr; }
    .demo-card { padding: 22px 18px; }
    .foot-inner { flex-direction: column; gap: 24px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .blob, .float, .grad, .badge .dot { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
