/* ArudamAI website — night-sky theme: indigo, gold and cream, matching the app. */

:root {
    --bg: #0b0a20;
    --bg-2: #14123a;
    --indigo: #1e1b4b;
    --indigo-2: #2a2766;
    --violet: #5b4fd6;
    --gold: #e9b824;
    --gold-light: #ffe27a;
    --gold-dark: #b8860b;
    --cream: #fff7e6;
    --lav: #b9b3ff;
    --muted: #8c88c9;
    --line: rgba(233, 184, 36, 0.28);
    --line-soft: rgba(233, 184, 36, 0.14);
    --ok: #4ade80;
    --bad: #f87171;
    --radius: 18px;
    --chamfer: 18px;
    --maxw: 1160px;
    --font: 'Outfit', 'Noto Sans Tamil', 'Noto Sans Devanagari', 'Noto Sans Telugu', 'Noto Sans Kannada', 'Noto Sans Malayalam', 'Nirmala UI', 'Latha', 'Mangal', 'Gautami', 'Tunga', 'Kartika', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--lav);
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(91, 79, 214, 0.35), transparent 60%),
        radial-gradient(900px 500px at -10% 5%, rgba(47, 79, 184, 0.28), transparent 60%),
        linear-gradient(180deg, #17143f 0%, #0f0e2b 45%, #0b0a20 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { color: var(--cream); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1em; }

#sky {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.page { position: relative; z-index: 1; overflow-x: clip; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.eyebrow::before,
.eyebrow::after {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--lav); font-size: 17px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    font: 600 16px/1 var(--font);
    color: var(--indigo);
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 26px rgba(233, 184, 36, 0.28);
}
.btn:hover { transform: translateY(-2px); color: var(--indigo); box-shadow: 0 12px 34px rgba(233, 184, 36, 0.4); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--line);
    box-shadow: none;
}
.btn-ghost:hover { background: rgba(233, 184, 36, 0.1); color: var(--gold-light); box-shadow: none; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(15, 14, 43, 0.72);
    border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand-name { font: 700 24px/1 var(--serif); color: var(--cream); letter-spacing: 0.2px; }
.brand-name span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--lav);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--cream); background: rgba(255, 255, 255, 0.06); }
.nav a.active { color: var(--indigo); background: linear-gradient(90deg, var(--gold-light), var(--gold)); font-weight: 600; }
.nav .btn { padding: 10px 22px; font-size: 15px; margin-left: 8px; color: var(--indigo); }
.nav .btn:hover { color: var(--indigo); background: linear-gradient(90deg, var(--gold-light), var(--gold)); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--gold-light);
    cursor: pointer;
}
.nav-toggle svg { margin: auto; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); letter-spacing: -0.5px; margin-bottom: 0.4em; }
.hero h1 .gold {
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p.lead { font-size: 19px; max-width: 540px; color: var(--lav); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.hero-badges span::before { content: '✦'; color: var(--gold); margin-right: 8px; }

.emblem { position: relative; width: min(440px, 88vw); aspect-ratio: 1; margin: 0 auto; }
.emblem svg { width: 100%; height: 100%; overflow: visible; }
.emblem .glow {
    position: absolute;
    inset: -12%;
    background: radial-gradient(circle, rgba(91, 79, 214, 0.55), rgba(91, 79, 214, 0.18) 45%, transparent 70%);
    animation: pulse 5s ease-in-out infinite;
}
.emblem .ring-out { transform-origin: 256px 256px; animation: spin 48s linear infinite; }
.emblem .ring-in { transform-origin: 256px 256px; animation: spin 70s linear infinite reverse; }
.emblem .mark { animation: float 5s ease-in-out infinite; transform-origin: 256px 256px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes pulse { 50% { transform: scale(1.06); opacity: 0.8; } }

/* ---------- kundali card ---------- */
.kcard {
    --c: var(--chamfer);
    position: relative;
    overflow: hidden;
    padding: 26px;
    background: linear-gradient(135deg, rgba(233, 184, 36, 0.8), rgba(233, 184, 36, 0.1) 38%, rgba(233, 184, 36, 0.1) 62%, rgba(233, 184, 36, 0.8));
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
    transition: transform 0.25s ease;
}
.kcard::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, #2a2766, #181547);
    clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.kcard::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 1px solid var(--line-soft);
    box-shadow: 0 0 0 18px rgba(233, 184, 36, 0.03), inset 0 0 0 18px rgba(233, 184, 36, 0.03);
}
.kcard > * { position: relative; z-index: 1; }
.kcard:hover { transform: translateY(-4px); }
.kcard h3 { font-size: 20px; margin-bottom: 8px; }
.kcard p { margin: 0; color: var(--lav); font-size: 15.5px; }

.icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: var(--gold-light);
    background: radial-gradient(circle at 30% 25%, #3b3690, #1e1b4b);
    border: 1px solid rgba(233, 184, 36, 0.5);
    box-shadow: 0 0 0 5px rgba(233, 184, 36, 0.07);
}
.icon-badge svg { width: 26px; height: 26px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.step { text-align: center; padding: 10px 14px; }
.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    font: 700 26px var(--serif);
    color: var(--indigo);
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: 0 0 0 8px rgba(233, 184, 36, 0.12);
}
.step h3 { font-size: 20px; }
.step p { color: var(--lav); }

/* ---------- languages ---------- */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.lang-chip {
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 18px;
    color: var(--cream);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #26235f, #181547);
}

/* ---------- plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.plan { text-align: center; }
.plan .coins { font: 700 44px/1 var(--font); color: var(--gold-light); margin: 6px 0 0; }
.plan .coins-label { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.plan .price { font-size: 26px; font-weight: 700; color: var(--cream); }
.plan .was { color: var(--muted); text-decoration: line-through; font-size: 15px; margin-left: 8px; }
.plan .save {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-light);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(233, 184, 36, 0.12);
}

/* ---------- reviews ---------- */
.review { display: flex; flex-direction: column; gap: 14px; }
.review .who { display: flex; align-items: center; gap: 14px; }
.review img, .review .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    background: var(--indigo);
}
.review .avatar { display: grid; place-items: center; color: var(--gold-light); font-weight: 700; }
.review strong { color: var(--cream); display: block; }
.review small { color: var(--muted); }
.review blockquote { margin: 0; color: #e6e1ff; font-size: 15.5px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(42, 39, 102, 0.8), rgba(24, 21, 71, 0.8));
    padding: 0 22px;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-weight: 600;
    font-size: 17px;
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; color: var(--gold); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--lav); }

/* ---------- call to action ---------- */
.cta {
    text-align: center;
    padding: 56px 28px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background:
        radial-gradient(600px 240px at 50% 0%, rgba(233, 184, 36, 0.18), transparent 70%),
        linear-gradient(135deg, #2a2766, #181547);
}
.cta h2 { font-size: clamp(26px, 3.6vw, 38px); }
.cta p { max-width: 560px; margin: 0 auto 26px; }

/* ---------- page banner (inner pages) ---------- */
.page-banner { padding: 70px 0 30px; text-align: center; }
.page-banner h1 { font-size: clamp(32px, 4.6vw, 50px); }
.page-banner p { max-width: 640px; margin: 0 auto; font-size: 18px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-light); }

/* ---------- feature rows (services) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; margin-bottom: 70px; }
.feature-row:nth-child(even) .feature-copy { order: 2; }
.feature-copy h3 { font-size: 28px; }
.feature-copy ul { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-copy li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.feature-copy li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
}
.feature-art { display: grid; place-items: center; min-height: 260px; }
.feature-art .big-icon { width: 130px; height: 130px; color: var(--gold-light); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--gold); }
.form input[type='text'],
.form input[type='email'],
.form input[type='password'],
.form input[type='tel'],
.form textarea {
    width: 100%;
    padding: 14px 16px;
    font: 400 16px var(--font);
    color: var(--cream);
    background: #14123a;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:focus, .form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 184, 36, 0.18); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form label.check { display: flex; margin: 0; font-weight: 400; color: var(--lav); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--lav); }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.alert { padding: 14px 18px; border-radius: 14px; font-size: 15px; margin-bottom: 18px; }
.alert-ok { background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.5); color: #bbf7d0; }
.alert-bad { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.5); color: #fecaca; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-badge { margin: 0; flex: none; width: 48px; height: 48px; }
.contact-item h4 { margin: 0 0 2px; font-size: 16px; }
.contact-item p, .contact-item a { margin: 0; color: var(--lav); font-size: 15px; word-break: break-word; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.socials a {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
}

/* ---------- legal pages ---------- */
.policy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; padding-bottom: 80px; }
.policy-aside { position: sticky; top: 96px; }
.policy-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.policy-switch a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--lav); }
.policy-switch a:hover { color: var(--cream); border-color: var(--gold); }
.policy-switch a.active { background: linear-gradient(90deg, var(--gold-light), var(--gold)); color: var(--indigo); border-color: transparent; font-weight: 600; }
.toc { border-left: 2px solid var(--line-soft); padding-left: 16px; font-size: 14px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); line-height: 1.4; }
.toc a:hover, .toc a.on { color: var(--gold-light); }
.toc .toc-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }

.policy-body {
    background: linear-gradient(135deg, rgba(42, 39, 102, 0.55), rgba(24, 21, 71, 0.55));
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    padding: 42px 46px;
}
.policy-body h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 38px;
    font-size: 24px;
    scroll-margin-top: 96px;
}
.policy-body h3:first-of-type { margin-top: 10px; }
.policy-body h3::before { content: ''; flex: none; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.policy-body h4 { margin-top: 22px; font-size: 18px; color: var(--gold-light); }
.policy-body ul, .policy-body ol { padding-left: 24px; margin-bottom: 16px; }
.policy-body li { margin-bottom: 8px; }
.policy-body li::marker { color: var(--gold); }
.policy-body strong { color: var(--cream); font-weight: 600; }
.policy-body .policy-updated { font-size: 14px; color: var(--muted); }
.policy-summary, .policy-contact {
    border: 1px solid var(--line);
    background: rgba(233, 184, 36, 0.07);
    border-radius: 16px;
    padding: 18px 22px;
    margin: 8px 0 14px;
}
.policy-summary p, .policy-contact p { margin-bottom: 6px; }
.policy-summary p:last-child, .policy-contact p:last-child { margin-bottom: 0; }
.policy-body table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15px; }
.policy-body th, .policy-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.policy-body th { color: var(--gold); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; position: relative; z-index: 1; }
.auth-brand { display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.auth-brand h1 { font-size: clamp(32px, 4vw, 48px); }
.auth-brand .emblem { width: min(320px, 70%); margin: 34px 0 0; }
.auth-card-wrap { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .kcard { padding: 38px 34px; }
.auth-card h2 { font-size: 28px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.auth-back { display: inline-block; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: rgba(8, 7, 24, 0.6); padding: 60px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { color: var(--lav); font-size: 15px; }
.site-footer li a:hover { color: var(--gold-light); }
.footer-about p { color: var(--muted); font-size: 15px; max-width: 320px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    font-size: 13.5px;
    color: var(--muted);
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.not-found .code { font: 700 clamp(90px, 18vw, 170px)/1 var(--serif); background: linear-gradient(180deg, var(--gold-light), var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; } .d5 { transition-delay: 0.4s; } .d6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .emblem .ring-out, .emblem .ring-in, .emblem .mark, .emblem .glow { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .hero .wrap, .feature-row, .contact-grid, .auth { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; text-align: center; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-cta, .hero-badges { justify-content: center; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .feature-row:nth-child(even) .feature-copy { order: 0; }
    .policy-layout { grid-template-columns: 1fr; }
    .policy-aside { position: static; }
    .toc { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth-brand { padding: 40px 24px 0; text-align: center; align-items: center; }
    .auth-brand .emblem { display: none; }
}

@media (max-width: 820px) {
    .nav-toggle { display: grid; }
    .nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 14px 22px 22px;
        background: rgba(15, 14, 43, 0.97);
        border-bottom: 1px solid var(--line-soft);
        display: none;
    }
    .nav.open { display: flex; }
    .nav a { text-align: center; }
    .nav .btn { margin: 8px 0 0; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4, .form .row { grid-template-columns: 1fr; }
    .policy-body { padding: 26px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .kcard { padding: 22px; }
}
