/* =========================================================
   TeleDrive — style.css
   ========================================================= */

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

:root {
  --bg:       #0e0e16;
  --bg-2:     #141420;
  --bg-3:     #1a1a24;

  --line:     rgba(255,255,255,0.08);
  --line-hi:  rgba(255,255,255,0.14);

  --text:     #f0f0f8;
  --text-2:   #9090b0;
  --text-3:   #45455a;

  --blue:     #2AABEE;
  --blue-hi:  #50bdf5;
  --blue-dim: rgba(42,171,238,0.1);
  --blue-bdr: rgba(42,171,238,0.25);

  --mono: 'IBM Plex Mono', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;

  --max: 1060px;
  --pad: 36px;
}

html { scroll-behavior: smooth; }

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

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

@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade { opacity: 0; animation: up 0.5s ease forwards; }
.fade--1 { animation-delay: 0.05s; }
.fade--2 { animation-delay: 0.15s; }
.fade--3 { animation-delay: 0.27s; }
.fade--4 { animation-delay: 0.40s; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(11,11,18,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav__logo svg { transition: transform 0.22s ease; }
.nav__logo:hover svg { transform: rotate(-8deg) scale(1.06); }

.nav__dl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 1px solid var(--blue-bdr);
  border-radius: 7px;
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-dim);
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.2s, visibility 0.2s;
}
.nav__dl--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav__dl:hover {
  background: rgba(42,171,238,0.18);
  border-color: rgba(42,171,238,0.45);
  color: var(--blue-hi);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: calc(100dvh - 58px);
  display: flex;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 58px;
}

.hero__inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr 308px;
  gap: 64px;
  align-items: start;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  color: #fff;
  margin-bottom: 30px;
  letter-spacing: -0.015em;
}
.hero__title em {
  font-style: italic;
  color: var(--blue);
}

.hero__desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.72;
  max-width: 430px;
}
.hero__desc strong {
  color: var(--text);
  font-weight: 500;
}

/* Download panel */
.hero__panel {
  background: var(--bg-2);
  border: 1px solid var(--line-hi);
  border-radius: 16px;
  padding: 26px;
  position: sticky;
  top: 78px;
  scroll-margin-top: 90px;
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}



.panel__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.download__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 46px;
}

.download__state {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
}
.download__state--error { color: #f87171; }

.btn-dl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-family: var(--mono);
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s, border-color 0.12s, color 0.12s;
  text-decoration: none;
}
.btn-dl__icon { width: 16px; height: 16px; flex-shrink: 0; }

.btn-dl--primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-dl--primary:hover {
  background: var(--blue-hi);
  border-color: var(--blue-hi);
  transform: translateX(3px);
}

.btn-dl--secondary {
  background: transparent;
  color: var(--text-2);
  border-color: var(--line-hi);
}
.btn-dl--secondary:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  transform: translateX(3px);
}

.download__meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.download__meta a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.download__meta a:hover { color: var(--text); }
.download__meta-sep { opacity: 0.3; }

.panel__platforms {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.8;
}
.platform { transition: color 0.2s ease; }
.platform--active { color: var(--text-2); }
.platform--unavailable { 
  color: rgba(220, 80, 80, 0.6); 
  cursor: help;
}

/* ── Features ────────────────────────────────────────────── */
.features {
  padding: 100px 0;
}

.features__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.features__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* 3-column grid of feature cells */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feat-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  transition: background 0.18s;
  position: relative;
  overflow: hidden;
}
.feat-cell:hover {
  background: var(--bg-2);
}
.feat-cell__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  background: radial-gradient(
    120px circle at var(--mx, 50%) var(--my, 50%),
    rgba(42, 171, 238, 0.055) 0%,
    transparent 70%
  );
}
.feat-cell:hover .feat-cell__glow {
  opacity: 1;
}

.feat-cell__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 20px;
  display: block;
}

.feat-cell__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feat-cell__desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.68;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer__copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.footer__links { display: flex; gap: 20px; }
.footer__links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--text-2); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 820px) {
  :root { --pad: 22px; }

  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__panel { position: static; }

  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .hero { padding: 64px 0 56px; }
  .features { padding: 64px 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(40px, 11vw, 58px); }
}
