:root {
  --canvas: #131313;
  --surface: #2d2d2d;
  --ink: #ffffff;
  --muted: #949494;
  --muted-ui: #e9e9e9;
  --accent: #3cffd0;
  --accent-alt: #5200ff;
  --accent-border: #309875;
  --link-hover: #3860be;
  --line: #313131;
  --focus: #1eaedb;
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-sans: "Space Grotesk", Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
  --radius-btn: 24px;
  --radius-card: 20px;
  --max: 1120px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(19, 19, 19, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #000;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

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

.nav a {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.nav a.is-active {
  box-shadow: 0 -1px 0 0 inset var(--accent);
  padding-bottom: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
}

.btn-secondary {
  background: var(--surface);
  color: var(--muted-ui);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #000;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

/* Hero */
.hero {
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero--text {
  padding: 56px 0 64px;
}

.hero--text .hero-copy {
  max-width: 42rem;
}

.hero--text .hero-lead {
  max-width: none;
  margin-bottom: 24px;
}

.hero-media {
  margin: 0 0 28px;
  width: 100%;
  line-height: 0;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #0a120e;
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(60, 255, 208, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.5px;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.phone-frame {
  margin: 0 auto;
  width: min(100%, 280px);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  border: 1px solid #ffffff;
  background:
    linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 12px;
  position: relative;
  animation: rise 0.8s ease both;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 20%, rgba(60, 255, 208, 0.18), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(82, 0, 255, 0.22), transparent 40%),
    #0f0f0f;
  border: 1px solid var(--line);
  padding: 48px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.phone-clock {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  text-align: center;
}

.phone-date {
  margin-top: -10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  margin-top: auto;
}

.app-icon {
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.app-icon:nth-child(1) { background: #3cffd0; }
.app-icon:nth-child(2) { background: #5200ff; }
.app-icon:nth-child(3) { background: #ffffff; }
.app-icon:nth-child(4) { background: #3860be; }
.app-icon:nth-child(5) { background: #2d2d2d; }
.app-icon:nth-child(6) { background: #309875; }
.app-icon:nth-child(7) { background: #8c8c8c; }
.app-icon:nth-child(8) { background: #1eaedb; }

/* Features */
.features {
  padding: 24px 0 96px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.feature:nth-child(even) .feature-copy {
  order: 2;
}

.feature:nth-child(even) .feature-visual {
  order: 1;
}

.feature-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
}

.feature h2 {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.05;
}

.feature p {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.feature-visual {
  min-height: 280px;
  border-radius: var(--radius-card);
  border: 1px solid #ffffff;
  background: #0f0f0f;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.feature-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.cta-band {
  margin: 0 0 96px;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--accent);
  background: #0f0f0f;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1;
}

.cta-band p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Legal / Contact pages */
.page-main {
  flex: 1;
  padding: 56px 0 96px;
}

.legal-article,
.contact-panel {
  max-width: 720px;
  margin: 0 auto;
}

.legal-article h1,
.contact-panel h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 52px);
  line-height: 0.95;
}

.meta {
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-article h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.legal-article p,
.legal-article li {
  color: var(--muted-ui);
}

.legal-article ul {
  padding-left: 1.2em;
  margin: 0 0 16px;
}

.legal-article li {
  margin-bottom: 8px;
}

.legal-article strong {
  color: var(--ink);
  font-weight: 700;
}

.contact-panel p {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 18px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  color: var(--accent);
  line-height: 1.2;
  word-break: break-all;
}

.contact-email:hover {
  color: var(--link-hover);
}

.contact-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: #0f0f0f;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand .brand {
  margin-bottom: 12px;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  max-width: 28ch;
  font-size: 14px;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--link-hover);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  animation: rise 0.7s ease both;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: #0f0f0f;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .nav .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 0;
  }

  .nav .btn {
    margin-top: 8px;
    justify-content: center;
  }

  .header-inner {
    position: relative;
  }

  .hero-grid,
  .feature,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .feature:nth-child(even) .feature-copy,
  .feature:nth-child(even) .feature-visual {
    order: initial;
  }

  .feature {
    gap: 28px;
    padding: 48px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero--text {
    padding: 40px 0 48px;
  }

  .cta-band {
    padding: 32px 24px;
    margin-bottom: 64px;
  }

  .container {
    width: min(100% - 32px, var(--max));
  }
}
