:root {
  --bg: #070b15;
  --panel: rgba(17, 25, 44, 0.72);
  --panel-strong: rgba(20, 31, 54, 0.92);
  --text: #eef5ff;
  --muted: #98a6ba;
  --line: rgba(255, 255, 255, 0.12);
  --green: #28f69a;
  --green-soft: rgba(40, 246, 154, 0.18);
  --blue: #5aa7ff;
  --red: #ff526e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.bg-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 70%);
  pointer-events: none;
}

.orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}
.orb-one { background: var(--green); top: -160px; right: -120px; }
.orb-two { background: var(--blue); bottom: -180px; left: -120px; }

.smoke-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 70%, rgba(255,255,255,0.06), transparent 22%),
    radial-gradient(circle at 76% 38%, rgba(40,246,154,0.08), transparent 18%);
  animation: drift 12s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-10px, 6px, 0) scale(1); }
  to { transform: translate3d(12px, -10px, 0) scale(1.04); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 8px 24px rgba(40, 246, 154, 0.25)); }
.nav-links { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }

.section-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding: 56px 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}
h3 { margin-bottom: 10px; font-size: 20px; letter-spacing: -0.03em; }
.hero-text, .glass-panel p, .feature-card p, .download-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.hero-text { max-width: 620px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--green), #32b8ff); color: #061018; border-color: transparent; }
.button-secondary { background: rgba(255,255,255,0.06); color: var(--text); }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}

.app-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(23, 34, 59, 0.92), rgba(10, 16, 31, 0.88));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: -60px -40px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--green-soft), transparent 62%);
}
.app-topbar { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.window-dots { display: flex; gap: 7px; }
.window-dots span, .terminal-header span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.28); }
.window-dots span:nth-child(2) { background: rgba(40,246,154,0.7); }
.window-dots span:nth-child(3) { background: rgba(255,82,110,0.72); }
.app-title { font-weight: 900; }
.tray-pill { color: var(--green); font-size: 12px; padding: 7px 10px; background: var(--green-soft); border-radius: 999px; }

.timer-wrap {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.timer-wrap::before {
  content: "";
  position: absolute;
  inset: -64px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(40, 246, 154, 0.22) 0%, rgba(40, 246, 154, 0.13) 34%, rgba(40, 246, 154, 0.04) 56%, transparent 72%);
  filter: blur(26px);
  opacity: 0.9;
  pointer-events: none;
}
.timer-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track, .ring-progress { fill: none; stroke-width: 13; }
.ring-track { stroke: rgba(255,255,255,0.09); }
.ring-progress {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 578;
  stroke-dashoffset: 0;
  filter: none;
  transition: stroke-dashoffset 0.35s linear, stroke 0.2s ease;
}
.timer-center { position: relative; text-align: center; }
.time { display: block; font-size: clamp(42px, 6vw, 64px); letter-spacing: -0.06em; font-weight: 300; }
.state { color: var(--muted); text-transform: uppercase; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; }

.preset-row, .control-row { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.chip, .control, .finished-actions button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 15px;
  cursor: pointer;
}
.chip.active { background: var(--green-soft); color: var(--green); border-color: rgba(40,246,154,0.42); }
.control.primary { background: var(--green); color: #05110c; border: 0; min-width: 104px; font-weight: 900; }
.control:hover, .chip:hover, .finished-actions button:hover { border-color: rgba(255,255,255,0.28); }
.finished-panel {
  margin-top: 18px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(40, 246, 154, 0.24);
  background: var(--green-soft);
}
.finished-panel p { margin-bottom: 10px; font-weight: 800; }
.finished-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.stats-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
}
.stats-grid strong { display: block; font-size: 24px; }
.stats-grid span { color: var(--muted); font-size: 13px; }

.feature-section, .split-section, .download-section { padding: 80px 0; }
.section-heading { max-width: 680px; margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card, .glass-panel, .terminal-card, .download-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.feature-card { padding: 24px; }
.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 24px;
}

.split-section { display: grid; grid-template-columns: 1fr 0.85fr; align-items: stretch; gap: 18px; }
.glass-panel, .terminal-card { padding: 30px; }
.terminal-card { background: #070b12; overflow: hidden; }
.terminal-header { display: flex; gap: 8px; margin-bottom: 22px; }
pre { margin: 0; color: #b5ffd9; font-size: 15px; line-height: 1.8; white-space: pre-wrap; }

.download-card {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(40,246,154,0.14), rgba(90,167,255,0.09)), var(--panel-strong);
}
.download-card img { width: 82px; height: 82px; }
.download-card h2 { margin-bottom: 8px; }
.download-card p { margin-bottom: 0; }

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .hero, .split-section { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: 72px 1fr; }
  .download-card .button { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 34px; gap: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .app-card { border-radius: 26px; padding: 16px; }
  .site-footer { flex-direction: column; gap: 8px; }
}
