:root {
  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

html[data-theme="light"] {
  --bg: #f7f6f2;
  --text: #101218;
  --muted: rgba(16, 18, 24, 0.68);
  --faint: rgba(16, 18, 24, 0.42);
  --line: rgba(16, 18, 24, 0.15);
  --surface: rgba(16, 18, 24, 0.035);
  --field: rgba(255, 255, 255, 0.58);
  --accent: #087f8f;
  --accent-2: #6042c7;
}

html[data-theme="dark"] {
  --bg: #08080d;
  --text: #f6f3ee;
  --muted: rgba(246, 243, 238, 0.69);
  --faint: rgba(246, 243, 238, 0.42);
  --line: rgba(246, 243, 238, 0.16);
  --surface: rgba(255, 255, 255, 0.04);
  --field: rgba(255, 255, 255, 0.035);
  --accent: #20c9dc;
  --accent-2: #9a7cff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 29rem),
    radial-gradient(circle at 58% 42%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 31rem),
    var(--bg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(100% - 44px, 1180px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--accent);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

.primary-nav a {
  transition: color 160ms ease;
}

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

.mode-toggle {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.mode-toggle:hover {
  color: var(--text);
  opacity: 0.82;
  transform: translateY(-1px);
}

.theme-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="light"] .theme-icon-sun,
html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 7.4vw, 106px);
  font-weight: 430;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0 24px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.button-primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.button:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.orbit-panel {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--field);
}

@media (min-width: 761px) {
  .orbit-panel {
    width: min(100%, 330px);
    justify-self: end;
  }
}

.orbit-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 31px, var(--line) 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 32px);
  opacity: 0.95;
}

.orbit-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(36px, 8vw, 96px);
  align-items: start;
}

.section-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 430;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.48;
}

.product-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 44px;
  border: 1px solid var(--line);
  background: var(--line);
}

.product-panel {
  min-height: 250px;
  padding: 34px;
  background: var(--bg);
}

.product-panel h3 {
  margin: 72px 0 14px;
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 430;
  line-height: 0.98;
  letter-spacing: 0;
}

.product-panel p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(34px, 7vw, 84px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: var(--surface);
  color: var(--text);
  padding: 16px;
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 64px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: flex-start;
  }

  .primary-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 12px;
  }

  .hero,
  .section-intro,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    position: relative;
    min-height: auto;
    padding: 38px 0 48px;
  }

  .hero-copy h1 {
    font-size: clamp(50px, 15vw, 66px);
  }

  .hero-copy p {
    margin-top: 22px;
    font-size: 20px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .orbit-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 360px);
    justify-self: center;
    opacity: 1;
  }

  .product-panels {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

}

@media (max-width: 520px) {
  .site-header {
    display: grid;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
