/* ===== Ferrite — landing page ===== */
:root {
  --bg: #0b0e14;
  --bg-panel: #10141d;
  --bg-elev: #161c28;
  --border: #232b3a;
  --border-soft: #1b2230;
  --text: #e6edf3;
  --text-dim: #9aa7b8;
  --text-faint: #66748a;
  --accent: #2ee6c8;
  --accent-2: #3a94f5;
  --grad: linear-gradient(135deg, #2ee6c8, #3a94f5);
  --maxw: 1180px;
  --r: 12px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }

.glow {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 620px;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(46, 230, 200, 0.10), transparent 70%),
    radial-gradient(55% 80% at 85% 5%, rgba(58, 148, 245, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
main, .footer { position: relative; z-index: 1; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #06231f; box-shadow: 0 10px 30px -12px rgba(46, 230, 200, 0.45); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(58, 148, 245, 0.5); }
.btn--outline { border-color: rgba(46, 230, 200, 0.4); color: var(--accent); background: rgba(46, 230, 200, 0.04); }
.btn--outline:hover { background: rgba(46, 230, 200, 0.12); border-color: rgba(46, 230, 200, 0.6); }
.btn--ghost { color: var(--text-dim); border-color: var(--border); }
.btn--ghost:hover { color: var(--text); border-color: var(--text-faint); }

/* ===== nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  height: 66px; padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav.is-scrolled { background: rgba(11, 14, 20, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--border-soft); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { filter: drop-shadow(0 3px 8px rgba(46, 230, 200, 0.25)); }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; margin-left: 14px; margin-right: auto; }
.nav__links a { font-size: 14px; color: var(--text-dim); transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.langtoggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.langtoggle button { border: 0; background: transparent; color: var(--text-faint); font: 600 12px/1 var(--font-body); padding: 6px 10px; border-radius: 999px; cursor: pointer; letter-spacing: .04em; }
.langtoggle button.is-active { background: var(--bg-elev); color: var(--text); }
.nav__menu { display: none; }

/* ===== hero ===== */
.hero { padding: 56px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: rgba(46, 230, 200, 0.08);
  border: 1px solid rgba(46, 230, 200, 0.28); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; }
.hero .lead { color: var(--text-dim); font-size: clamp(1rem, 1.4vw, 1.12rem); margin: 20px 0 28px; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { color: var(--text-faint); font-size: 13px; margin-top: 18px; }
.hero__shot {
  margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-panel); box-shadow: var(--shadow);
  position: relative;
}
.hero__shot::after { content: ""; position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03); pointer-events: none; }

/* ===== trust strip ===== */
.trust { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: rgba(16, 20, 29, 0.5); }
.trust__row { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding: 18px 24px; }
.trust__row span { font-size: 13px; color: var(--text-dim); position: relative; padding-left: 20px; }
.trust__row span::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ===== sections ===== */
.section { padding: 84px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(16, 20, 29, 0.6) 12%, rgba(16, 20, 29, 0.6) 88%, transparent); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

/* ===== grids / cards ===== */
.grid { display: grid; gap: 18px; }
.grid--features { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.card:hover { border-color: rgba(46, 230, 200, 0.35); transform: translateY(-2px); background: var(--bg-elev); }
.feature__ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 11px; color: var(--accent); background: rgba(46, 230, 200, 0.08); border: 1px solid rgba(46, 230, 200, 0.18); margin-bottom: 16px; }
.feature__ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ===== screenshot tour ===== */
.tour { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tour__item { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-panel); }
.tour__item--wide { grid-column: 1 / -1; }
.tour__item img { width: 100%; }
.tour__item figcaption { padding: 12px 16px; font-size: 13px; color: var(--text-dim); border-top: 1px solid var(--border-soft); }

/* ===== why ===== */
.why__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.grid--why { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.why__card { padding: 24px; border-left: 2px solid; border-image: var(--grad) 1; }
.why__card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why__card p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* ===== pricing ===== */
.price { max-width: 440px; margin: 0 auto; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 18px; padding: 34px 32px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.price::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.price__badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(46, 230, 200, 0.08); border: 1px solid rgba(46, 230, 200, 0.28); padding: 5px 12px; border-radius: 999px; }
.price__amount { margin: 18px 0 4px; display: inline-flex; align-items: flex-start; gap: 2px; }
.price__cur { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--text-dim); margin-top: 8px; }
.price__num { font-family: var(--font-head); font-size: 4rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price__note { color: var(--text-faint); font-size: 13px; margin: 0 0 22px; }
.price__list { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; display: grid; gap: 11px; }
.price__list li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--text-dim); }
.price__list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #06231f; background: var(--grad); border-radius: 50%; }
.price__sec { color: var(--text-faint); font-size: 12.5px; margin: 16px 0 0; }

/* ===== download / steps ===== */
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 34px; }
.step { padding: 22px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r); }
.step__n { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; font-family: var(--font-head); font-weight: 700; color: #06231f; background: var(--grad); margin-bottom: 14px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: 14px; margin: 0; }
.dlbar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.dlbar__soon { text-align: center; color: var(--text-faint); font-size: 13px; margin: 14px 0 0; }
.reqs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 40px; }
.reqs__col { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r); padding: 22px 24px; }
.reqs__col--warn { border-color: rgba(58, 148, 245, 0.35); background: rgba(58, 148, 245, 0.05); }
.reqs h4 { font-size: .95rem; margin-bottom: 12px; }
.reqs ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 13.5px; display: grid; gap: 8px; }
.reqs__col--warn p { color: var(--text-dim); font-size: 13.5px; margin: 0; }
.reqs__col--warn strong { color: var(--text); }

/* ===== faq ===== */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r); padding: 4px 20px; }
.faq__item summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: var(--font-head); font-weight: 500; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 16px; color: var(--text-dim); font-size: 14.5px; }

/* ===== footer ===== */
.footer { border-top: 1px solid var(--border-soft); background: var(--bg-panel); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer__tag { color: var(--text-dim); font-size: 14px; margin: 16px 0 0; max-width: 34ch; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.footer__col a { display: block; color: var(--text-dim); font-size: 14px; padding: 4px 0; transition: color .2s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__bar { border-top: 1px solid var(--border-soft); padding: 20px 24px; max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; color: var(--text-faint); font-size: 13px; }

/* ===== legal pages ===== */
.topbar { display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 24px; border-bottom: 1px solid var(--border-soft); }
.legal { padding: 44px 0 80px; }
.legal__back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 14px; margin-bottom: 26px; }
.legal__back:hover { color: var(--accent); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 10px; }
.legal__meta { color: var(--text-faint); font-size: 13.5px; margin: 0; }
.legal__draft { color: var(--text-dim); font-size: 13.5px; background: rgba(58, 148, 245, 0.06); border: 1px solid rgba(58, 148, 245, 0.25); border-radius: 10px; padding: 12px 16px; margin: 20px 0 30px; }
.legal h2 { font-size: 1.2rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); }
.legal .caps { font-size: 13px; color: var(--text-faint); }

/* ===== responsive ===== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero .lead { max-width: none; }
  .tour { grid-template-columns: 1fr; }
  .reqs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(11, 14, 20, 0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; margin: 0; }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
  .nav__dl { display: none; }
  .nav__menu { display: inline-flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
  .nav__menu span { width: 20px; height: 2px; background: var(--text); transition: transform .25s ease, opacity .25s ease; }
  .nav.is-open .nav__menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__menu span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 60px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 420px) {
  .nav .brand__name { display: none; }
  .btn { padding: 9px 14px; }
}
