/* Termika landing - dark locked, single cyan accent, Unbounded + Manrope */

:root {
  --bg: #06080b;
  --bg-2: #0a0e14;
  --paper: #f2f5f7;
  --muted: rgba(242, 245, 247, 0.62);
  --faint: rgba(242, 245, 247, 0.38);
  --cyan: #22d3ee;
  --cyan-ink: #062832;
  --cyan-dim: rgba(34, 211, 238, 0.1);
  --line: rgba(255, 255, 255, 0.09);
  --r-card: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-d: 'Unbounded', sans-serif;
  --font-b: 'Manrope', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(52% 38% at 82% 4%, rgba(34, 211, 238, 0.07), transparent 70%),
    radial-gradient(46% 34% at 8% 96%, rgba(34, 211, 238, 0.05), transparent 70%);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-d); font-weight: 600; line-height: 1.16; }
p { color: var(--muted); }
img, video { max-width: 100%; display: block; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(6, 8, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--paper); }
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.brand-dot.small { width: 9px; height: 9px; }
.brand-name { font-family: var(--font-d); font-weight: 700; font-size: 19px; letter-spacing: 0.01em; }

.nav-right { display: flex; align-items: center; gap: 18px; }

.langs { display: flex; gap: 4px; }
.lang {
  font-family: var(--font-b); font-weight: 600; font-size: 12.5px;
  color: var(--faint);
  background: none; border: 1px solid transparent; border-radius: 999px;
  padding: 6px 11px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lang:hover { color: var(--paper); }
.lang.on { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-b); font-weight: 700; font-size: 15px;
  border-radius: 999px; text-decoration: none;
  padding: 13px 26px;
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--cyan); color: var(--cyan-ink); }
.btn-primary:hover { background: #4be0f6; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.2); color: var(--paper); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.04); }
.btn-nav { padding: 10px 19px; font-size: 13.5px; }
.btn-big { padding: 16px 34px; font-size: 16px; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 84px) clamp(18px, 4vw, 48px) clamp(48px, 8vh, 96px);
  min-height: calc(100dvh - 68px);
}

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.55rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.hero h1 em { font-style: normal; color: var(--cyan); }

.sub { margin-top: 22px; font-size: clamp(1.02rem, 1.5vw, 1.16rem); max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* phone-framed demo video */
.hero-demo { position: relative; display: flex; justify-content: center; }

.pulse { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pulse i {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  border: 1.5px solid rgba(34, 211, 238, 0.35);
  animation: ring 3.6s var(--ease) infinite;
  opacity: 0;
}
.pulse i:nth-child(2) { animation-delay: 1.2s; }
.pulse i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring {
  0% { transform: scale(0.62); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

.phone {
  position: relative;
  width: min(320px, 78vw);
  /* exactly the demo video's aspect - no side cropping */
  aspect-ratio: 9 / 16;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #000;
  overflow: hidden;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.03),
    0 30px 90px -30px rgba(34, 211, 238, 0.35),
    0 24px 70px -30px rgba(0, 0, 0, 0.8);
}
.phone video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.sound {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-b); font-weight: 700; font-size: 12.5px;
  color: var(--paper);
  background: rgba(6, 8, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s;
}
.sound:hover { border-color: rgba(255, 255, 255, 0.5); }
.sound[aria-pressed="true"] { color: var(--cyan); border-color: rgba(34, 211, 238, 0.5); }

/* ---------------------------------------------------------------- sections shared */
section { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 9vh, 110px) clamp(18px, 4vw, 48px); }
section h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); color: var(--paper); letter-spacing: -0.005em; }

/* ---------------------------------------------------------------- pain */
.pain {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 80px);
  border-top: 1px solid var(--line);
}
.pain-statement p { margin-top: 16px; font-size: 1.08rem; max-width: 30em; }
.pain-list { list-style: none; }
.pain-list li { padding: 22px 0; }
.pain-list li + li { border-top: 1px solid var(--line); }
.pain-list h3 { font-size: 1.02rem; color: var(--paper); margin-bottom: 6px; }
.pain-list p { font-size: 0.98rem; }

/* ---------------------------------------------------------------- how */
.how { border-top: 1px solid var(--line); }
.steps { list-style: none; margin-top: 44px; display: grid; gap: 34px; max-width: 760px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; }
.step-n {
  font-family: var(--font-d); font-weight: 700; font-size: 1.5rem;
  color: var(--cyan);
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: var(--cyan-dim);
  display: grid; place-items: center;
}
.steps h3 { font-size: 1.08rem; color: var(--paper); margin-bottom: 7px; padding-top: 8px; }
.steps p { max-width: 46em; }

/* ---------------------------------------------------------------- admin */
.admin {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.admin-preview {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.ap-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-d); font-size: 15px; }
.ap-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ap-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 20px; }
.ap-chip {
  font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 13px; color: var(--paper);
}
.ap-chip.ok { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); }
.ap-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 17px; margin-top: 11px;
  background: rgba(255, 255, 255, 0.02);
}
.ap-row strong { display: block; font-size: 15px; font-weight: 700; }
.ap-row span { font-size: 13px; color: var(--muted); }
.ap-row.fresh {
  border-color: rgba(34, 211, 238, 0.55);
  background: var(--cyan-dim);
  box-shadow: 0 0 44px -14px rgba(34, 211, 238, 0.4);
}
.ap-new {
  font-style: normal; font-weight: 800; font-size: 11.5px; letter-spacing: 0.08em;
  color: var(--cyan-ink); background: var(--cyan);
  border-radius: 999px; padding: 6px 11px;
}

.admin-copy p { margin-top: 16px; max-width: 32em; }
.checks { list-style: none; margin-top: 26px; display: grid; gap: 13px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--paper); font-weight: 600; font-size: 0.99rem; }
.checks svg { color: var(--cyan); flex-shrink: 0; }

/* ---------------------------------------------------------------- features bento */
.features { border-top: 1px solid var(--line); }
.bento {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cell {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.cell:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-3px); }
.cell h3 { font-size: 1.02rem; color: var(--paper); margin-bottom: 9px; }
.cell p { font-size: 0.96rem; }
.cell.big {
  grid-column: span 4;
  background:
    linear-gradient(115deg, rgba(34, 211, 238, 0.12), transparent 55%),
    url('assets/poster-hu.jpg') right -40px center / auto 165% no-repeat,
    var(--bg-2);
}
.cell.big h3 { font-size: 1.2rem; max-width: 12em; }
.cell.big p { max-width: 24em; }
.cell.tint { grid-column: span 2; background: linear-gradient(150deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.03)); }
.cell.tint2 { grid-column: span 2; background: linear-gradient(330deg, rgba(34, 211, 238, 0.1), transparent 60%); }
.cell:nth-child(3), .cell:nth-child(4) { grid-column: span 2; }

/* ---------------------------------------------------------------- offer */
.offer {
  text-align: center;
  border-top: 1px solid var(--line);
}
.offer h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.offer p { margin: 16px auto 30px; max-width: 34em; }

/* ---------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 34px; border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-d); font-weight: 600; font-size: 1.02rem;
  padding: 21px 40px 21px 2px;
  position: relative;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-b); font-weight: 400; font-size: 1.5rem; color: var(--faint);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--cyan); }
.faq summary:hover { color: var(--cyan); }
.faq details p { padding: 0 2px 24px; max-width: 46em; }

/* ---------------------------------------------------------------- live case */
.case { border-top: 1px solid var(--line); }
.case > p { margin-top: 14px; max-width: 40em; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.case-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
  padding: 28px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.case-card:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateY(-3px); }
.case-card h3 { font-size: 1.06rem; color: var(--paper); }
.case-card .case-kind { font-size: 0.92rem; color: var(--muted); }
.case-card a {
  margin-top: 16px; font-weight: 700; font-size: 0.95rem;
  color: var(--cyan); text-decoration: none;
}
.case-card a:hover { text-decoration: underline; }
.case-note { margin-top: 22px; font-size: 0.98rem; color: var(--muted); }

/* ---------------------------------------------------------------- whatsapp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: grid; place-items: center;
  box-shadow: 0 12px 34px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.18s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float:active { transform: scale(0.97); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--line);
  max-width: 1200px; margin: 0 auto;
  padding: 44px clamp(18px, 4vw, 48px) 54px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--cyan); }
.foot-small { width: 100%; font-size: 0.85rem; color: var(--faint); }

/* ---------------------------------------------------------------- reveals (JS-gated) */
body.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
body.js .reveal.in { opacity: 1; transform: none; }

/* hero load-in */
body.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise 0.5s var(--ease) forwards; }
body.js .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
body.js .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
body.js .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
body.js .hero-demo { opacity: 0; animation: rise 0.55s var(--ease) 0.15s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse i { animation: none; opacity: 0; }
  body.js .reveal, body.js .hero-copy > *, body.js .hero-demo {
    opacity: 1; transform: none; animation: none; transition: none;
  }
  .cell, .btn { transition: none; }
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .hero-demo { order: 2; margin-top: 14px; }
  .pain, .admin { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .admin-preview { order: 2; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell.big, .cell.tint, .cell.tint2, .cell:nth-child(3), .cell:nth-child(4) { grid-column: span 2; }
  .btn-nav { display: none; }
}

@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .cell.big, .cell.tint, .cell.tint2, .cell:nth-child(3), .cell:nth-child(4) { grid-column: span 1; }
  .cta-row .btn { width: 100%; }
}
