/* Cryndal site — one stylesheet, no build step */

:root {
  --ink: #0b1020;
  --ink-2: #0e1428;
  --panel: #111a2e;
  --panel-2: #16203a;
  --line: #22304d;
  --line-soft: #1a2540;
  --text: #e8ecf6;
  --muted: #93a3c4;
  --muted-2: #7385a8;
  --blue: #4f8cff;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #4f8cff, #22d3ee);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Bengali", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 400px at 12% -5%, rgba(79, 140, 255, 0.16), transparent 70%),
    radial-gradient(700px 500px at 88% 0%, rgba(34, 211, 238, 0.10), transparent 70%);
}

img { max-width: 100%; display: block; }

a { color: #7fb2ff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #a8ccff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cyan); color: #04121a; padding: 10px 16px;
  border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.narrow { max-width: 780px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 64px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 650;
  font-size: 18px; letter-spacing: -0.2px;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }

.nav a {
  color: var(--muted); text-decoration: none; font-size: 14.5px;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel); }

.nav .gh {
  color: var(--text); border: 1px solid var(--line);
  margin-left: 8px; display: inline-flex; align-items: center; gap: 7px;
}
.nav .gh:hover { border-color: #35507f; background: var(--panel-2); }
.nav svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 40px; }

.hero-grid { max-width: 780px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: #bfd3f7;
  background: rgba(79, 140, 255, 0.10);
  border: 1px solid rgba(79, 140, 255, 0.28);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.06; letter-spacing: -1.6px;
  margin: 0 0 20px; font-weight: 720;
}
h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lede { font-size: 18px; color: var(--muted); margin: 0 0 30px; max-width: 52ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #04121a; box-shadow: 0 10px 30px -12px rgba(79, 140, 255, 0.75); }
.btn-primary:hover { color: #04121a; box-shadow: 0 14px 34px -10px rgba(34, 211, 238, 0.6); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--panel); color: var(--text); border-color: #35507f; }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 9px; }
.btn svg { width: 17px; height: 17px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 13.5px; color: var(--muted-2); padding: 0; margin: 0; list-style: none;
}
.trust li { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 15px; height: 15px; color: var(--cyan); }

/* ---------- sections ---------- */

section { padding: 56px 0; }

.sec-head { margin-bottom: 32px; max-width: 640px; }
.eyebrow {
  font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--cyan); font-weight: 600; margin: 0 0 10px;
}
h2 {
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.18;
  letter-spacing: -0.8px; margin: 0 0 12px; font-weight: 700;
}
.sec-head p { color: var(--muted); margin: 0; font-size: 16px; }

h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.2px; }

/* app cards */

.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.app-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), #0f1729);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; overflow: hidden;
  transition: border-color .18s ease, transform .18s ease;
}
.app-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 160px at 90% 0%, rgba(79, 140, 255, 0.10), transparent 70%);
}
.app-card:hover { border-color: #35507f; transform: translateY(-2px); }

.app-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-top img { width: 54px; height: 54px; border-radius: 14px; box-shadow: 0 8px 20px -10px #000; }
.app-top h3 { margin: 0 0 2px; font-size: 20px; }
.app-top .sub { color: var(--muted-2); font-size: 13px; }

.app-card p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }

.feat-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.feat-list li { display: flex; gap: 9px; font-size: 14.5px; color: #cdd8ee; }
.feat-list svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--cyan); }

.app-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app-meta { font-size: 12.5px; color: var(--muted-2); margin-left: auto; }

.tag {
  display: inline-block; font-size: 11.5px; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 999px; font-weight: 600;
  background: rgba(34, 211, 238, 0.12); color: #8ce8f7; border: 1px solid rgba(34,211,238,.22);
}
.tag.soon { background: rgba(147,163,196,.10); color: var(--muted); border-color: var(--line); }

/* feature grid */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.feature {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 22px;
}
.feature .ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(79, 140, 255, 0.12); color: #9cc4ff; margin-bottom: 14px;
  border: 1px solid rgba(79, 140, 255, 0.2);
}
.feature .ico svg { width: 19px; height: 19px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* stats */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), #0d1426);
  overflow: hidden;
}
.stat { padding: 26px 22px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 30px; letter-spacing: -1px; line-height: 1.1; margin-bottom: 4px; }
.stat span { color: var(--muted-2); font-size: 13.5px; }

/* steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 22px 22px 22px 60px; background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: 14px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 20px; top: 22px;
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #04121a; background: var(--grad);
}
.step h3 { font-size: 15.5px; margin-bottom: 5px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* faq */

.faq { display: grid; gap: 10px; }
details {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 16px 20px;
}
details[open] { border-color: var(--line); background: var(--panel); }
summary {
  cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--cyan); font-size: 20px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }

/* prose */

.prose { max-width: 74ch; }
.prose h2 { margin-top: 44px; font-size: 24px; letter-spacing: -0.4px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: #c6d2e8; font-size: 15.5px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose code {
  font-family: var(--mono); font-size: 13.5px; background: var(--panel);
  border: 1px solid var(--line-soft); padding: 2px 6px; border-radius: 5px; color: #cfe0ff;
}
.prose blockquote {
  margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--blue);
  background: var(--ink-2); border-radius: 0 10px 10px 0; color: var(--muted);
}

/* download box */

.dl-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  background: linear-gradient(135deg, rgba(79,140,255,.10), rgba(34,211,238,.06));
  border: 1px solid #2b4470; border-radius: var(--radius); padding: 24px 26px;
}
.dl-box .dl-text { flex: 1 1 260px; }
.dl-box h3 { margin: 0 0 4px; font-size: 17px; }
.dl-box p { margin: 0; color: var(--muted); font-size: 13.5px; }
.dl-box .mono { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }

/* screenshots */

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot {
  background: #05080f; border: 1px solid #22304d; border-radius: 18px;
  padding: 6px; overflow: hidden;
  aspect-ratio: 9 / 19.5; /* phone portrait */
}
.shot img { width: 100%; height: 100%; border-radius: 13px; object-fit: cover; }

/* page hero */

.page-hero { padding: 60px 0 28px; border-bottom: 1px solid var(--line-soft); }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 14px; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 62ch; margin: 0; }

.crumbs { font-size: 13px; color: var(--muted-2); margin-bottom: 16px; }
.crumbs a { color: var(--muted-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* footer */

.site-footer {
  border-top: 1px solid var(--line-soft); margin-top: 40px;
  padding: 46px 0 34px; font-size: 14px;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted-2); margin: 12px 0 0; max-width: 32ch; font-size: 13.5px; }
.foot-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted-2); margin: 0 0 12px; font-weight: 600;
}
.foot-col a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 14px; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  color: var(--muted-2); font-size: 13px;
}

/* misc */

.note {
  border: 1px solid var(--line-soft); background: var(--ink-2);
  border-radius: 12px; padding: 16px 18px; color: var(--muted); font-size: 14px;
}

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 22px;
}
.card h3 { font-size: 16.5px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.card li { margin-bottom: 7px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .phone-stage { order: -1; }
  .float-1 { left: -8px; }
  .float-2 { right: -8px; }
  .features, .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .steps, .foot-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .apps, .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 20px; }
  section { padding: 40px 0; }
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .nav a.gh { display: none; }
  .site-header .wrap { gap: 8px; min-height: 58px; }
  .foot-grid { gap: 24px; }
  .dl-box { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
