/* Digdarsan Live website — the app's own design (Figma kit tokens: graphite surfaces, brand blue, tally red) */
:root {
  --bg: #0F1216; --panel: #171B21; --panel2: #20262E; --hover: #262D36; --line: #232932; --frame: #3A424D;
  --text: #F2F4F7; --muted: #9AA3AF; --dim: #7B8491;
  --primary: #2E6BFF; --primary2: #2457D6; --live: #E5322D; --ok: #1FA463; --warn: #F2A93B;
  --max: 1180px;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }   /* keep each picture at its own shape when it shrinks */
a { color: #7FA4FF; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-weight: 700; margin: 0; }
.display { letter-spacing: -.045em; line-height: .98; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 18, 22, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-logo { width: 44px; height: 44px; flex: none; object-fit: contain; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--text); }
@media (max-width: 720px) { .top nav a:not(.btn) { display: none; } }

/* buttons (the app's: 44 high, radius 8) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 8px;
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text); background: var(--panel2); border: 0; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary2); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.big { height: 56px; padding: 0 26px; font-size: 17px; border-radius: 10px; }
.btn svg { flex: none; }
.top nav a.btn.primary { color: #fff; }

/* hero */
.hero { padding: 64px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero-logo { width: min(400px, 100%); height: auto; aspect-ratio: 1; object-fit: contain; margin-left: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--panel2);
  color: var(--text); font-size: 14px; font-weight: 600; }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--live); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 600px; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--dim); font-size: 14px; margin-top: 16px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-logo { order: -1; width: 220px; margin: 0 auto; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
}

/* the app's picture, framed like its preview (graphite off air) */
.shot-wrap { padding: 32px 0 8px; }
.shot { border-radius: 16px; overflow: hidden; border: 2px solid var(--frame); background: #000;
  box-shadow: 0 40px 120px -30px rgba(46, 107, 255, .25), 0 20px 60px -20px rgba(0, 0, 0, .7); }
.shot.tally { border-color: var(--live); box-shadow: 0 40px 120px -40px rgba(229, 50, 45, .35), 0 20px 60px -20px rgba(0, 0, 0, .7); }
.caption { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.caption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--frame); }
.caption .dot.live { background: var(--live); box-shadow: 0 0 8px var(--live); }

/* sections */
section { padding: 80px 0; }
section h2 { font-size: clamp(34px, 4.6vw, 52px); margin: 0 0 14px; }
section .sub { color: var(--muted); max-width: 680px; margin: 0 0 40px; font-size: 18px; }
.center { text-align: center; } .center .sub { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card { background: var(--panel); border-radius: 12px; padding: 24px 24px 26px; }
.card h3 { margin: 16px 0 6px; font-size: 19px; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--panel2); color: var(--text); }
.icon.blue { background: rgba(46, 107, 255, .16); color: #7FA4FF; } .icon.red { background: rgba(229, 50, 45, .16); color: #FF6B66; }
.icon.green { background: rgba(31, 164, 99, .16); color: #4ED494; }
.split { display: grid; gap: 48px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--mono);
  background: var(--primary); color: #fff; }
.steps b { display: block; font-size: 17px; } .steps span { color: var(--muted); font-size: 15px; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--panel2); font-size: 14px; font-weight: 600; }
.pill svg { flex: none; }

/* pop-up keys strip (like the app's) */
.keys { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.key { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 8px; border-radius: 10px; background: var(--panel); font-weight: 700; }
.ball { width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; font: 700 13px var(--mono); color: #fff; }
.ball.four { background: var(--ok); } .ball.six { background: #8B5CF6; } .ball.w { background: var(--live); border-radius: 7px; }
.ball.fifty { background: #fff; color: var(--bg); font-size: 11px; }
kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 6px; background: var(--hover);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .45); font: 700 13px var(--mono); color: var(--text); margin-left: 4px; }

/* download */
.download { background: var(--panel); }
.dl { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }
.download .card { background: var(--panel2); }
.req { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.req li { display: flex; gap: 12px; color: var(--muted); font-size: 15px; }
.req li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.download .cta { justify-content: flex-start; }
.dl-form { display: grid; gap: 10px; }
.dl-form label { font-weight: 600; font-size: 15px; }
.dl-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-row input { flex: 1 1 200px; min-width: 0; height: 56px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--frame);
  background: var(--bg); color: var(--text); font: 600 20px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.dl-row input::placeholder { color: var(--dim); text-transform: none; }
.dl-row input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.dl-msg { display: none; margin: 0; padding: 12px 16px; border-radius: 10px; background: rgba(229, 50, 45, .14); color: #FFB4B1; font-size: 15px; }
.dl-msg:target { display: block; }
.dl-msg { scroll-margin-top: 280px; }   /* lands with the code box in view, below the sticky top bar */
@media (max-width: 560px) { .dl-row .btn { width: 100%; } }

/* faq */
details { background: var(--panel); border-radius: 12px; padding: 18px 22px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; }
details p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

/* legal pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -.04em; line-height: 1; margin: 0 0 10px; }
.doc .updated { color: var(--dim); margin: 0 0 32px; }
.doc h2 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.doc th { color: var(--text); }
.callout { background: var(--panel); border-left: 3px solid var(--primary); border-radius: 10px; padding: 16px 18px; margin: 18px 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .brand { font-size: 15px; } footer .brand-logo { width: 32px; height: 32px; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
