:root {
    --ink: #1d1b29;
    --muted: #615e75;
    --line: #e7e3f1;
    --bg: #ffffff;
    --alt: #f8f6fd;
    --brand: #5b2fd6;
    --brand-2: #ff7a1a;
    --night: #0f0b24;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", "Nirmala UI", "Noto Sans Tamil", sans-serif; }
img { max-width: 100%; }
a { color: var(--brand); }
code { font-size: .92em; background: #f0edf8; padding: 1px 6px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #b9a5f5; outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.big { padding: 13px 24px; font-size: 17px; }
.btn.solid { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 24px rgba(91, 47, 214, .25); }
.btn.solid:hover { filter: brightness(1.08); }
.btn.line { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn.line:hover { background: rgba(255, 255, 255, .08); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15, 11, 36, .88); backdrop-filter: blur(10px); color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { border-radius: 10px; flex: none; }
.brand span { font-weight: 800; font-size: 17px; line-height: 1.1; }
.brand small { display: block; font-weight: 600; font-size: 12px; opacity: .7; letter-spacing: .04em; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-header nav a:not(.btn) { color: #e5e0ff; text-decoration: none; }
.site-header nav a:not(.btn):hover { color: #fff; }

/* hero */
.hero { color: #fff; padding: 72px 0 84px; background: radial-gradient(1100px 560px at 85% -10%, #3a1d8f 0%, transparent 60%), radial-gradient(800px 480px at -10% 110%, #7a2a0d 0%, transparent 55%), var(--night); }
.hero.small { padding: 48px 0 64px; background: radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--c) 55%, #000) 0%, transparent 60%), var(--night); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #ffcf99; background: rgba(255, 255, 255, .08); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); margin: 0 0 18px; }
.hero h1 span { background: linear-gradient(90deg, #ffb347, #ff6fd8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: #d8d2f3; max-width: 640px; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 24px 0 0; color: #cfc8ef; font-size: 15px; }
.ticks li::before { content: "✓ "; color: #7dfc9a; font-weight: 700; }
.crumbs { font-size: 14px; color: #bdb5e6; margin-bottom: 18px; }
.crumbs a { color: #e3ddff; }
.live-note { color: #ffd27a; font-weight: 600; }

.code-card { background: #17122f; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.code-card .dots { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; color: #9890c4; }
.code-card .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-card .dots i:nth-child(2) { background: #febc2e; }
.code-card .dots i:nth-child(3) { background: #28c840; margin-right: 8px; }
.code-card pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-size: 14px; line-height: 1.6; color: #efe9ff; }
.code-card code { background: none; padding: 0; }
.code-card .c { color: #8a83b5; }
.code-card .k { color: #ffb347; }
.code-card p { color: #bdb5e6; font-size: 14px; margin: 14px 0 0; }

.strip { background: #1a1438; color: #cfc8ef; font-size: 14px; padding: 14px 0; text-align: center; }
.strip span { font-weight: 700; color: #fff; margin-right: 8px; }

/* sections */
.block { padding: 76px 0; }
.block.alt { background: var(--alt); }
.block h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 680px; font-size: 17px; }

.fest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.fest-grid.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.fest { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 16px; padding: 22px; background: #fff; transition: transform .15s, box-shadow .15s; }
.fest:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(29, 27, 41, .1); }
.fest .ico { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c) 12%, white); }
.fest h3 { margin: 14px 0 6px; font-size: 19px; }
.fest p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.fest .more { color: var(--brand); font-weight: 700; font-size: 14px; }
.fest-grid.compact .fest { display: flex; align-items: center; gap: 12px; padding: 14px; }
.fest-grid.compact h3 { margin: 0; font-size: 16px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.features div { border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.features h3 { margin: 0 0 6px; font-size: 18px; }
.features p { margin: 0; color: var(--muted); }

.prose { max-width: 780px; }
.prose p { color: #3c394f; font-size: 17px; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.center { text-align: center; margin: 0 auto; }

.faq { max-width: 820px; display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col h2 { font-size: 24px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: #2e9b46; font-weight: 800; }
.howto li { margin: 8px 0; }

.final-cta { background: linear-gradient(135deg, #2a1670, #8a2c0a); color: #fff; text-align: center; padding: 72px 0; }
.final-cta h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.final-cta p { color: #e3dcff; margin: 0 0 24px; font-size: 18px; }

/* auth */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px; background: var(--alt); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 20px 50px rgba(29, 27, 41, .08); }
.auth-card h1 { margin: 0 0 4px; font-size: 26px; }
.auth-card .sub { margin: 0 0 22px; font-size: 15px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.form label small { color: var(--muted); font-weight: 400; }
.form label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.form input:not([type=checkbox]) { font: inherit; padding: 11px 12px; border: 1px solid #d9d4e8; border-radius: 10px; }
.form .btn { margin-top: 6px; }
.alert { background: #fdecec; color: #b3261e; padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; }
.switch { text-align: center; color: var(--muted); margin: 18px 0 0; font-size: 15px; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .amount { font-size: 40px; font-weight: 800; margin: 4px 0 8px; line-height: 1.1; }
.plan .amount small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan .checks { margin-bottom: 18px; flex: 1; }
.plan .btn { align-self: flex-start; }
.plan.best { border: 2px solid var(--brand); box-shadow: 0 20px 50px rgba(91, 47, 214, .15); }
.tag-best { position: absolute; top: -12px; right: 24px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }

/* reviews */
.btn.outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn.outline:hover { background: #f4f0ff; }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 18px; }
.stars .off { color: #d9d5e3; }
.rating-big { font-size: 20px; color: #e3ddff; margin: 0 0 24px; }
.rating-big .stars { font-size: 26px; }
.rating-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.review { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.review h3 { margin: 0; font-size: 17px; }
.review p { margin: 0; color: #3c394f; flex: 1; }
.review footer { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; }
.review footer small { display: block; color: var(--muted); }
.review time { margin-left: auto; color: var(--muted); font-size: 13px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800; flex: none; }
.more-link { margin-top: 22px; font-weight: 600; }
.narrow { max-width: 720px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.notice { background: #e8f5e9; color: #1b6e20; padding: 10px 14px; border-radius: 10px; }
.review-form { display: flex; flex-direction: column; gap: 14px; }
.review-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; }
.review-form label small { color: var(--muted); font-weight: 400; }
.review-form input, .review-form textarea { font: inherit; padding: 11px 12px; border: 1px solid #d9d4e8; border-radius: 10px; }
.review-form .btn { align-self: flex-start; }
.review-status { padding: 10px 14px; border-radius: 10px; background: #fff3e0; color: #8a4500; margin: 0 0 14px; }
.review-status.approved { background: #e8f5e9; color: #1b6e20; }
.review-status.rejected { background: #fdecec; color: #b3261e; }
.star-input { border: 0; padding: 0; margin: 0; }
.star-input legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 34px; line-height: 1; color: #d9d5e3; cursor: pointer; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a623; }
.star-input input:focus-visible + label { outline: 3px solid #b9a5f5; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* footer */
.site-footer { background: var(--night); color: #bdb6dc; padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin: 0 0 6px; }
.site-footer a { color: #cfc8ef; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px; font-size: 14px; }

@media (max-width: 900px) {
    .hero-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
    .steps, .features { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .site-header nav a:not(.btn) { display: none; }
    .hero { padding: 48px 0 60px; }
    .block { padding: 56px 0; }
    .brand small { display: none; }
}
