/* ── RESET & BASE ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #080c14;
  --bg-2:       #0d1220;
  --bg-3:       #111827;
  --border:     rgba(255,255,255,.07);
  --border-2:   rgba(255,255,255,.12);
  --accent:     #3b82f6;
  --accent-2:   #60a5fa;
  --accent-glow:rgba(59,130,246,.35);
  --green:      #22c55e;
  --text:       #f1f5f9;
  --text-2:     #94a3b8;
  --text-3:     #64748b;
  --font-head:  'Arial', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 24px 64px rgba(0,0,0,.6);
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent-2); }

/* ── HEADER ───────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  border-radius: 8px;
}

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

.nav a {
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 400;
  transition: color .2s;
}

.nav a:hover { color: var(--text); }

.nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 8px;
  font-weight: 500 !important;
  font-size: .88rem !important;
  transition: background .2s, opacity .2s !important;
}

.nav__cta:hover { opacity: .88; }

/* ── BUTTONS ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform .18s, opacity .18s, box-shadow .18s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--primary:hover {
  opacity: .9;
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn--ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border-2);
}

.btn--ghost:hover { background: rgba(255,255,255,.1); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
  width: 100%;
  justify-content: center;
}

.btn--outline:hover { border-color: var(--accent); color: var(--accent-2); }

/* ── SECTION COMMON ───────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-2);
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  padding: 4px 14px;
  border-radius: 40px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
}

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .18;
}

.hero__glow--1 {
  width: 700px;
  height: 700px;
  background: var(--accent);
  top: -200px;
  left: -100px;
}

.hero__glow--2 {
  width: 500px;
  height: 500px;
  background: #8b5cf6;
  bottom: -100px;
  right: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-2);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-2);
  padding: 5px 14px 5px 10px;
  border-radius: 40px;
  margin-bottom: 24px;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 22px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-2);
  position: relative;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero__note {
  font-size: .8rem;
  color: var(--text-3);
}

/* screenshots */
.hero__visual {
  position: relative;
  height: 420px;
}

.screenshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--bg-3);
  box-shadow: var(--shadow);
}

.screenshot-frame__bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px 8px;
  background: #1a2233;
  border-bottom: 1px solid var(--border);
}

.screenshot-frame__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}

.screenshot-frame__bar span:nth-child(1) { background: #ff5f57; }
.screenshot-frame__bar span:nth-child(2) { background: #febc2e; }
.screenshot-frame__bar span:nth-child(3) { background: #28c840; }

.screenshot-frame img { width: 100%; }

.screenshot-frame--main {
  position: absolute;
  right: 0;
  top: 0;
  width: 88%;
  z-index: 2;
  animation: floatA 6s ease-in-out infinite;
}

.screenshot-frame--secondary {
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 58%;
  z-index: 3;
  animation: floatB 6s ease-in-out infinite;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
}

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── STRIP ────────────────────────────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  background: rgba(255,255,255,.02);
}

.strip .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.strip__label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  white-space: nowrap;
}

.strip__logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--text-2);
  font-weight: 500;
}

.strip__logos .sep { color: var(--text-3); }

/* ── FEATURES ─────────────────────────────────────────────────────────── */
.features {
  padding: 100px 0;
  background: var(--bg-2);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, transform .25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-card--wide {
  grid-column: span 2;
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.2);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-2);
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.feature-card p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── HOW IT WORKS ─────────────────────────────────────────────────────── */
.howto {
  padding: 100px 0;
}

.howto__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.step {
  display: flex;
  gap: 20px;
}

.step__num {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  opacity: .4;
  line-height: 1;
  min-width: 48px;
  letter-spacing: -.04em;
}

.step__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.step__body p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.step__connector {
  width: 1px;
  height: 32px;
  background: var(--border-2);
  margin-left: 23px;
}

.screenshot-frame--guide {
  position: sticky;
  top: 90px;
}

/* ── SUPPORTED ────────────────────────────────────────────────────────── */
.supported {
  padding: 100px 0;
  background: var(--bg-2);
}

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

.platform-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.platform-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}

.platform-card__color {
  width: 32px;
  height: 4px;
  background: var(--c);
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: 0 0 12px var(--c);
}

.platform-card h4 {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: .8rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 14px;
}

.platform-card p code {
  font-size: .75rem;
  background: rgba(255,255,255,.07);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent-2);
  font-family: 'Courier New', monospace;
}

.platform-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 40px;
}

.platform-tag--ok {
  background: rgba(34,197,94,.1);
  color: var(--green);
  border: 1px solid rgba(34,197,94,.25);
}

.platform-tag--generic {
  background: rgba(251,191,36,.08);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,.2);
}

/* ── PLANS ────────────────────────────────────────────────────────────── */
.plans {
  padding: 100px 0;
}

.plans__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 740px;
  margin: 0 auto;
}

.plan-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}

.plan-card--pro {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(59,130,246,.12);
}

.plan-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  background: var(--accent);
  color: #fff;
  padding: 3px 14px;
  border-radius: 40px;
}

.plan-card__header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-card__header h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text);
}

.plan-price span {
  font-size: .85rem;
  font-weight: 400;
  color: var(--text-3);
  font-family: var(--font-body);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  font-size: .88rem;
}

.plan-features li {
  display: flex;
  gap: 10px;
  color: var(--text-2);
}

.plan-features .ok { color: var(--green); flex-shrink: 0; }
.plan-features .dim { color: var(--text-3); flex-shrink: 0; }

/* ── DOWNLOAD ─────────────────────────────────────────────────────────── */
.download {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: var(--bg-2);
}

.download__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.download__glow {
  position: absolute;
  width: 800px;
  height: 400px;
  background: var(--accent);
  filter: blur(160px);
  opacity: .1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.download__inner {
  position: relative;
  text-align: center;
}

.download__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  line-height: 1.15;
}

.download__title em {
  font-style: normal;
  color: var(--accent-2);
}

.download__sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 48px;
}

.download__buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-width: 240px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.download-btn:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59,130,246,.18);
}

.download-btn__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  flex-shrink: 0;
}

.download-btn__icon svg {
  width: 28px;
  height: 28px;
}

.download-btn__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.download-btn__sub {
  font-size: .72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.download-btn__os {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.download-btn__ext {
  font-size: .75rem;
  color: var(--text-3);
  margin-top: 2px;
}

.download__version {
  font-size: .8rem;
  color: var(--text-3);
}

/* ── FOOTER ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: .82rem;
  color: var(--text-3);
}

.footer__copy a {
  color: var(--text-2);
  transition: color .2s;
}

.footer__copy a:hover { color: var(--text); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .supported__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid  { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }
}

@media (max-width: 860px) {
  .hero__inner      { grid-template-columns: 1fr; }
  .hero__visual     { display: none; }
  .howto__layout    { grid-template-columns: 1fr; }
  .screenshot-frame--guide { position: static; }
  .plans__grid      { grid-template-columns: 1fr; max-width: 400px; }
  .nav a:not(.nav__cta) { display: none; }
}

@media (max-width: 600px) {
  .features__grid    { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .supported__grid   { grid-template-columns: 1fr 1fr; }
  .hero__actions     { flex-direction: column; }
  .download__buttons { flex-direction: column; align-items: center; }
  .footer__inner     { flex-direction: column; gap: 12px; text-align: center; }
  .strip .container  { flex-direction: column; align-items: flex-start; }
}
