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

:root {
  --bg: #0a0a0b;
  --surface: #111114;
  --border: rgb(255 255 255 / 7%);
  --text: #e8e6e1;
  --muted: #888;
  --faint: #555;
  --accent: #3b86f7;
  --accent-glow: rgb(59 134 247 / 18%);
  --teal: #20b2a8;
  --radius-pill: 9999px;
  --max-w: 1100px;
  --section-gap: clamp(80px, 10vw, 140px);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgb(75 130 255 / 4%) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgb(32 178 168 / 3%) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ─── Scroll Reveal ─────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ─── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background 0.3s,
    border-bottom 0.3s,
    backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgb(10 10 11 / 82%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-logo:hover {
  opacity: 0.8;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn-pill {
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition:
    opacity 0.2s,
    transform 0.15s;
  white-space: nowrap;
}

.btn-pill:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  transition:
    opacity 0.2s,
    transform 0.15s;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgb(255 255 255 / 18%);
  transition:
    background 0.2s,
    transform 0.15s;
}

.btn-outline:hover {
  background: rgb(255 255 255 / 6%);
  transform: translateY(-2px);
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.aurora-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 80px clamp(20px, 5vw, 60px) 60px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.55;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.4;
  animation: scrollHint 2s ease-in-out infinite;
}

.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateY(7px);
    opacity: 0.9;
  }
}

@keyframes scrollHint {
  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

/* ─── Wired Section ──────────────────────────────────────────────── */
.wired-section {
  padding: var(--section-gap) 0;
  text-align: center;
}

.shimmer-text {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(
    90deg,
    var(--teal) 0%,
    #7dd3fc 30%,
    var(--teal) 50%,
    var(--accent) 70%,
    var(--teal) 100%
  );
  background-size: 200% auto;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 200% center;
  }

  to {
    background-position: -200% center;
  }
}

.wired-body {
  margin-top: 28px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.wired-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.wired-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  text-align: center;
}

.wired-metric-value {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.wired-metric-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Section shared ─────────────────────────────────────────────── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 56px;
}

/* ─── Features ───────────────────────────────────────────────────── */
.features-section {
  padding: var(--section-gap) 0;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgb(0 0 0 / 40%),
    0 0 0 1px rgb(75 130 255 / 15%);
  border-color: rgb(75 130 255 / 20%);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgb(75 130 255 / 10%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── How It Works ───────────────────────────────────────────────── */
.how-section {
  padding: var(--section-gap) 0;
  text-align: center;
}

.how-section .section-title {
  margin-bottom: 64px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  transition: transform 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
}

.step-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgb(75 130 255 / 10%);
  border: 1px solid rgb(75 130 255 / 20%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.step-connector {
  flex: 0 0 40px;
  height: 1px;
  border-top: 1px dashed rgb(255 255 255 / 12%);
  align-self: flex-start;
  margin-top: 80px;
}

/* ─── Tech Callout ───────────────────────────────────────────────── */
.tech-section {
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tech-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 48px;
  text-align: center;
}

.tech-value {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.tech-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tech-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Automation ─────────────────────────────────────────────────── */
.automation-section {
  padding: var(--section-gap) 0;
  text-align: center;
}

.automation-body {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  max-width: 54ch;
  margin: 0 auto 16px;
  line-height: 1.7;
}

.automation-sub {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--faint);
  max-width: 54ch;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.automation-image {
  max-width: 700px;
  width: 100%;
  border-radius: 12px;
  margin-top: 8px;
}

/* ─── Download ───────────────────────────────────────────────────── */
.download-section {
  position: relative;
  padding: var(--section-gap) 0;
  text-align: center;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgb(75 130 255 / 12%) 0%, transparent 70%);
  pointer-events: none;
}

.download-section h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}

.download-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  margin-bottom: 40px;
  position: relative;
}

.download-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.btn-download {
  min-width: 190px;
  justify-content: center;
}

.download-note {
  margin-top: 28px;
  font-size: 12px;
  color: var(--faint);
  position: relative;
}

/* ─── Post-Install ───────────────────────────────────────────────── */
.post-install-section {
  padding: var(--section-gap) 0;
  text-align: center;
  counter-reset: step;
}

.post-install-steps {
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}

.post-install-intro {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.post-install-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-install-list li {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--text);
  line-height: 1.6;
  padding-left: 28px;
  position: relative;
}

.post-install-list li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgb(75 130 255 / 10%);
  border: 1px solid rgb(75 130 255 / 20%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-install-link {
  font-size: 13px;
  color: var(--faint);
}

.post-install-link a {
  color: var(--faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-install-link a:hover {
  color: var(--text);
}

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-section {
  padding: var(--section-gap) 0;
  text-align: center;
}

.faq-list {
  max-width: 680px;
  margin: 48px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgb(75 130 255 / 30%);
}

.faq-question {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 600;
  color: var(--text);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23a0a0b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-question:hover {
  background: rgb(255 255 255 / 3%);
}

.faq-answer {
  padding: 0 24px 24px;
}

.faq-answer p {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--muted);
  line-height: 1.75;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px clamp(20px, 5vw, 60px);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-tagline {
  font-size: 13px;
  color: var(--faint);
}

.footer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ─── Mockup Component ──────────────────────────────────────────── */
.mockup-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 48px;
  margin-top: 48px;
}

.mac-screen {
  background: var(--surface);
  border-radius: 10px;
  border: 2px solid rgb(255 255 255 / 10%);
  width: 340px;
  height: 210px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.mac-menubar {
  height: 20px;
  background: rgb(255 255 255 / 5%);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 10px;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  flex-shrink: 0;
}

.apple-logo {
  font-size: 11px;
  color: rgb(255 255 255 / 70%);
  line-height: 1;
  margin-right: 2px;
}

.menubar-items {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menubar-item {
  height: 4px;
  background: rgb(255 255 255 / 18%);
  border-radius: 10px;
}

.menubar-right {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.menubar-right-item {
  height: 4px;
  background: rgb(255 255 255 / 12%);
  border-radius: 10px;
}

.mac-content {
  flex: 1;
  background: var(--surface);
}

.cable {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cable-label {
  font-size: 0.65rem;
  color: #7cffb2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.cable-line {
  width: 3px;
  height: 100px;
  background: linear-gradient(to bottom, #4fd1ff, #7cffb2);
  border-radius: 10px;
  animation: flow 1.5s ease-in-out infinite;
}

@keyframes flow {
  0%,
  100% {
    box-shadow: 0 0 6px #4fd1ff;
  }

  50% {
    box-shadow:
      0 0 18px #7cffb2,
      0 0 30px rgb(124 255 178 / 30%);
  }
}

.tablet-screen {
  background: var(--surface);
  border-radius: 14px;
  border: 2px solid rgb(255 255 255 / 10%);
  width: 180px;
  height: 240px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

.tablet-content {
  flex: 1;
  background: var(--surface);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}

.t-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.t-msg-line {
  height: 5px;
  border-radius: 10px;
  background: #2a2a40;
}

.t-msg.user .t-msg-line {
  background: #32324a;
  align-self: flex-end;
}

.t-msg.assistant .t-msg-line {
  background: #1e1e30;
}

.t-input {
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 20px;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  margin-top: 4px;
}

.t-input-line {
  flex: 1;
  height: 4px;
  background: #2a2a3e;
  border-radius: 10px;
}

.t-send {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #32324a;
  flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (width <= 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 767px) {
  .steps {
    flex-direction: column;
    gap: 16px;
  }

  .step-connector {
    width: 1px;
    height: 32px;
    border-top: none;
    border-left: 1px dashed rgb(255 255 255 / 12%);
    margin-top: 0;
    align-self: center;
  }

  .tech-grid {
    gap: 0;
  }

  .tech-item {
    padding: 20px 28px;
  }

  .tech-divider {
    width: 40px;
    height: 1px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
    gap: 8px;
  }

  .footer-name {
    order: -1;
    width: 100%;
  }

  .mockup-inner {
    gap: 24px;
    padding: 32px 20px;
  }

  .mac-screen {
    width: 260px;
    height: 160px;
  }

  .tablet-screen {
    width: 140px;
    height: 190px;
  }

  .cable-line {
    height: 70px;
  }
}

@media (width <= 639px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-download {
    width: 100%;
  }
}
