/* ============================================================
   deriv.si — landing page styles (dark, tech)
   ============================================================ */
:root {
  --bg: #07070c;
  --bg-2: #0b0b13;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf2;
  --text-dim: #9a9ab0;
  --text-faint: #6a6a82;
  --accent-1: #7c5cff;
  --accent-2: #22d3ee;
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---------- background texture ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-orb {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  z-index: -1;
  background: radial-gradient(circle at 30% 30%, rgba(124, 92, 255, 0.28), transparent 60%),
              radial-gradient(circle at 70% 40%, rgba(34, 211, 238, 0.22), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #0a0a12;
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124, 92, 255, 0.5); }
.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 12, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.brand__mark { color: var(--accent-2); font-size: 18px; }
.brand__dot { color: var(--accent-1); }
.brand__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  text-transform: uppercase;
}
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--text-dim); font-size: 14.5px; transition: color 0.15s; }
.nav__links a:hover { color: var(--text); }
.nav .btn--sm { margin-left: 4px; }
.nav__toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: 70px 24px 40px; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  margin-bottom: 26px;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 17px;
}
.hero__sub strong { color: var(--text); }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

/* ---------- product mock ---------- */
.mock {
  max-width: 940px;
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.mock__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mock__url { font-size: 12.5px; color: var(--text-faint); font-family: ui-monospace, monospace; }
.mock__badge { margin-left: auto; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(124,92,255,0.2); color: #c4b5ff; border: 1px solid rgba(124,92,255,0.4); }
.mock__body { display: grid; grid-template-columns: 240px 1fr; gap: 18px; padding: 18px; }
.mock__side { display: flex; flex-direction: column; gap: 14px; }
.mock__tag { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.mock__sketch { display: block; width: 100%; height: 150px; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.mock__meta { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-dim); }
.mock__ok { color: var(--ok); }
.mock__upload { padding: 10px; border-radius: 10px; border: 1px dashed var(--border-strong); background: var(--surface); color: var(--text-dim); cursor: pointer; font-size: 13px; }
.mock__main { display: flex; flex-direction: column; gap: 14px; }
.mock__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); }
.chip--on { background: rgba(124,92,255,0.18); border-color: rgba(124,92,255,0.5); color: #d8ccff; }
.chip--more { color: var(--text-faint); }
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.thumb:hover img { transform: scale(1.06); }
.mock__lineage { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.lineage__icon { color: var(--accent-2); }
.mock__note { text-align: center; font-size: 13px; color: var(--text-faint); margin-top: 14px; }

/* ---------- value strip ---------- */
.vstrip {
  max-width: 940px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.vstrip__item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vstrip__item strong { font-size: 14px; }
.vstrip__item span { font-size: 12.5px; color: var(--text-faint); }
.vstrip__sep { width: 1px; height: 30px; background: var(--border-strong); }

/* ---------- section ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 80px 24px; }
.section__head { text-align: center; margin-bottom: 46px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.section__head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 38px); margin: 12px 0 10px; letter-spacing: -0.01em; }
.section__lead { color: var(--text-dim); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card--hl { border-color: rgba(124, 92, 255, 0.45); background: linear-gradient(180deg, rgba(124,92,255,0.08), var(--surface)); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--accent-2); margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14.5px; }
.ticks { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--text-dim); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---------- steps ---------- */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 12px; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; }
.step__num { font-family: var(--font-display); font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-family: var(--font-display); font-size: 18px; margin: 10px 0 8px; }
.step p { color: var(--text-dim); font-size: 14px; }
.step__arrow { display: grid; place-items: center; font-size: 26px; color: var(--text-faint); align-self: center; }

/* ---------- arch ---------- */
.arch { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin: 0 auto; }
.arch__row { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.arch__layer { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--accent-2); }
.arch__desc { color: var(--text-dim); font-size: 14.5px; }
.techbase { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.techbase__label { font-size: 13px; color: var(--text-faint); }
.tech { font-size: 12.5px; padding: 5px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); }

/* ---------- progress ---------- */
.prog__badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.prog--done .prog__badge { background: rgba(52, 211, 153, 0.15); color: var(--ok); border: 1px solid rgba(52,211,153,0.4); }
.prog--wip .prog__badge { background: rgba(251, 191, 36, 0.15); color: var(--warn); border: 1px solid rgba(251,191,36,0.4); }
.prog--planned .prog__badge { background: var(--surface-2); color: var(--text-faint); border: 1px solid var(--border); }

/* ---------- timeline ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.timeline__q { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #0a0a12; background: var(--grad); padding: 3px 12px; border-radius: 8px; margin-bottom: 12px; }
.timeline__item h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 6px; }
.timeline__item p { color: var(--text-dim); font-size: 13.5px; }

/* ---------- pricing ---------- */
.price { display: flex; flex-direction: column; position: relative; }
.price__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #0a0a12; white-space: nowrap; }
.price h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; }
.price__amount { font-family: var(--font-display); font-weight: 800; font-size: 40px; margin: 6px 0; }
.price__per { font-size: 15px; color: var(--text-dim); font-weight: 500; }
.price__note { color: var(--text-faint); font-size: 13.5px; margin-bottom: 16px; }
.price .btn { margin-top: auto; }

/* ---------- disclaimer ---------- */
.disclaimer { text-align: center; font-size: 12.5px; color: var(--text-faint); margin-top: 26px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; }
.faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 22px; color: var(--text-dim); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { color: var(--text-dim); font-size: 14.5px; padding-bottom: 16px; }

/* ---------- cta ---------- */
.cta { padding: 40px 24px 90px; }
.cta__inner { max-width: 620px; margin: 0 auto; text-align: center; background: linear-gradient(180deg, rgba(124,92,255,0.1), rgba(34,211,238,0.05)); border: 1px solid var(--border-strong); border-radius: 22px; padding: 48px 32px; }
.cta__inner h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4vw, 34px); margin-bottom: 12px; }
.cta__inner > p { color: var(--text-dim); font-size: 16px; margin-bottom: 28px; }
.cta__form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.cta__row { display: flex; gap: 12px; }
.cta__row--2 > * { flex: 1; }
.cta__form input, .cta__form select, .cta__form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cta__form input:focus, .cta__form select:focus, .cta__form textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
}
.cta__form textarea { resize: vertical; }
.cta__form select { appearance: none; cursor: pointer; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-dim); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-1); flex-shrink: 0; }
.cta__msg { font-size: 14px; min-height: 20px; text-align: center; }
.cta__msg.ok { color: var(--ok); }
.cta__msg.err { color: #f87171; }
.cta__fine { font-size: 12px; color: var(--text-faint); margin-top: 18px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; }
.footer__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { color: var(--text-dim); font-size: 14px; }
.footer__nav a:hover { color: var(--text); }
.footer__legal { color: var(--text-faint); font-size: 13px; margin: 20px 0 14px; line-height: 1.7; }
.footer__copy { color: var(--text-faint); font-size: 12.5px; }
.footer__email { display: block; margin-top: 6px; color: var(--text-dim); font-size: 13px; text-decoration: none; transition: color 0.2s ease; }
.footer__email:hover { color: #d8ccff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards--3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .mock__body { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 14px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,7,12,0.97); padding: 20px 24px; border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
  .cta__row--2 { flex-direction: column; }
  .vstrip { flex-direction: column; gap: 12px; }
  .vstrip__sep { display: none; }
  .hero { padding-top: 40px; }
  .section { padding: 56px 20px; }
}
