/* Solstice Interactive — base system
   Warm paper, iris and amber. Product-studio layout with rounded geometry. */

:root {
  --bg: #f4f1e9;
  --bg-2: #edeae1;
  --panel: #fffdf8;
  --ink: #12131a;
  --muted: #6c6a62;
  --line: rgba(18, 19, 26, 0.12);
  --line-2: rgba(18, 19, 26, 0.24);
  --iris: #5346f5;
  --iris-soft: #e6e3ff;
  --amber: #f0a25f;
  --amber-soft: #fbe8d5;
  --mint: #c9efd9;
  --mint-ink: #1d5c3c;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -24px rgba(18, 19, 26, 0.28);
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --head-h: 74px;
  --pad: clamp(18px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(18, 19, 26, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--iris);
  color: #fff;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 100px;
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

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

/* ---------- type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--iris);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--head-h);
  display: flex;
  align-items: center;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-head.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.brand .burst {
  width: 26px;
  height: 26px;
  color: var(--iris);
  transition: transform 0.6s var(--ease);
}

.brand:hover .burst {
  transform: rotate(90deg);
}

.brand .burst svg {
  width: 100%;
  height: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  backdrop-filter: blur(10px);
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

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

.main-nav a[aria-current='page'] {
  background: var(--ink);
  color: #fff;
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.head-cta {
  height: 42px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.head-cta:hover {
  background: var(--iris);
  transform: translateY(-1px);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  place-items: center;
}

.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease);
}

.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}

.burger span::before {
  top: -5px;
}

.burger span::after {
  top: 5px;
}

body.drawer-open .burger span {
  background: transparent;
}

body.drawer-open .burger span::before {
  transform: translateY(5px) rotate(45deg);
}

body.drawer-open .burger span::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 860px) {
  :root {
    --head-h: 66px;
  }
  .main-nav {
    display: none;
  }
  .head-cta {
    display: none;
  }
  .burger {
    display: grid;
  }
}

/* ---------- mobile drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 880;
  visibility: hidden;
  pointer-events: none;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 19, 26, 0.4);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 88vw);
  background: var(--panel);
  transform: translateX(102%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  padding: calc(var(--head-h) + 20px) 26px 26px;
  box-shadow: var(--shadow);
}

body.drawer-open .drawer {
  visibility: visible;
  pointer-events: auto;
}

body.drawer-open .drawer-scrim {
  opacity: 1;
}

body.drawer-open .drawer-panel {
  transform: none;
}

.drawer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
}

.drawer-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.drawer-nav a:last-child {
  border-bottom: 1px solid var(--line);
}

.drawer-nav a .n {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.drawer-nav a[aria-current='page'] {
  color: var(--iris);
}

.drawer-foot {
  margin-top: auto;
  padding-top: 26px;
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.drawer-foot a:hover {
  color: var(--ink);
}

.drawer-cta {
  margin-top: 18px;
  height: 48px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--iris);
  color: #fff;
  font-size: 14px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
    color 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--iris);
  border-color: var(--iris);
}

.btn-iris {
  background: var(--iris);
  border-color: var(--iris);
  color: #fff;
}

.btn-iris:hover {
  background: #4437e0;
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 12px;
}

.btn .arr {
  transition: transform 0.3s var(--ease);
}

.btn:hover .arr {
  transform: translateX(3px);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(56px, 8vw, 116px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 62px);
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 18ch;
}

.section-head .side {
  max-width: 36ch;
  font-size: 14px;
  color: var(--muted);
}

.rule {
  height: 1px;
  background: var(--line);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.rise {
  display: block;
  overflow: hidden;
}

.rise > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}

.is-in .rise > span,
.rise.is-in > span {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .rise > span {
    transform: none;
  }
}

/* ---------- footer ---------- */

.site-foot {
  padding: clamp(48px, 7vw, 86px) 0 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.55fr));
  gap: 36px;
  padding-bottom: clamp(44px, 7vw, 90px);
}

.foot-claim {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 18ch;
}

.foot-claim a {
  color: var(--iris);
}

.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.foot-col li {
  margin-bottom: 8px;
  font-size: 13px;
}

.foot-col a:hover {
  color: var(--iris);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-bottom .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #36b37e;
  box-shadow: 0 0 0 0 rgba(54, 179, 126, 0.5);
  animation: livedot 2.4s infinite;
}

@keyframes livedot {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 179, 126, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-claim {
    grid-column: 1 / -1;
  }
}

/* ---------- shared page hero ---------- */

.page-hero {
  padding: calc(var(--head-h) + clamp(44px, 7vw, 90px)) 0 clamp(30px, 4vw, 56px);
}

.page-hero h1 {
  font-size: clamp(46px, 8.6vw, 126px);
  max-width: 15ch;
  margin-top: 16px;
}

.page-hero .intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-hero .intro p {
  max-width: 50ch;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
}

/* ---------- misc ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}

.chip:hover {
  border-color: var(--line-2);
  color: var(--ink);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--iris);
  z-index: 1000;
}
