/* =========================================================
   AlkanIO Labs - Global Theme Tokens
   ========================================================= */
:root {
  --bg-0: #04060c;
  --bg-1: #080d1b;
  --bg-2: #0d1326;
  --surface-1: rgba(15, 22, 43, 0.72);
  --surface-2: rgba(18, 26, 52, 0.88);
  --surface-3: rgba(12, 18, 37, 0.96);
  --line-soft: rgba(120, 150, 255, 0.2);
  --line-strong: rgba(124, 181, 255, 0.46);
  --text-strong: #edf3ff;
  --text-body: #c7d2ea;
  --text-muted: #8f9fbe;
  --accent-cyan: #3ef2ff;
  --accent-violet: #8a7dff;
  --accent-indigo: #425dff;
  --accent-pink: #c98bff;
  --status-published: #48ffc0;
  --status-progress: #5fc3ff;
  --status-prototype: #baa7ff;
  --status-coming: #ffe18b;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 8px 30px rgba(3, 8, 25, 0.42);
  --shadow-glow: 0 0 55px rgba(62, 242, 255, 0.24);
  --container: min(1120px, 92vw);
}

/* =========================================================
   Base Reset and Defaults
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background:
    radial-gradient(80rem 50rem at 85% -10%, rgba(67, 88, 255, 0.22), transparent 55%),
    radial-gradient(60rem 40rem at 10% -5%, rgba(116, 62, 255, 0.2), transparent 52%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 45%, #02040a 100%);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
}

body.js-enabled {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.js-enabled.is-ready {
  opacity: 1;
  transform: translateY(0);
}

body.js-enabled.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

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

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

p {
  margin: 0 0 1.1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
}

ul,
ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.5rem;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.8rem, 8vw, 7rem);
}

.section-surface {
  background: linear-gradient(180deg, rgba(11, 17, 35, 0.58), rgba(7, 12, 24, 0.7));
  border-top: 1px solid rgba(112, 140, 255, 0.08);
  border-bottom: 1px solid rgba(112, 140, 255, 0.08);
}

.narrow-stack {
  max-width: 760px;
  margin-inline: auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.1rem;
}

.section-tag,
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-cyan);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.08) 0.35px, transparent 0.35px),
    radial-gradient(rgba(255, 255, 255, 0.06) 0.35px, transparent 0.35px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1.5px 1.5px;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.3;
  background:
    radial-gradient(circle at center, rgba(62, 242, 255, 0.24), rgba(133, 98, 255, 0.1) 35%, rgba(0, 0, 0, 0) 68%);
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  padding: 0.7rem 1rem;
  background: #fff;
  color: #000;
  border-radius: 8px;
  z-index: 110;
}

.skip-link:focus {
  top: 1rem;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(118, 171, 255, 0.38), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled .nav-shell {
  border-color: rgba(124, 181, 255, 0.24);
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(3, 8, 25, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  z-index: 2;
}

.brand-text {
  color: var(--text-strong);
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-orb {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d6faff 0%, var(--accent-cyan) 34%, var(--accent-violet) 90%);
  box-shadow: 0 0 16px rgba(62, 242, 255, 0.8), 0 0 32px rgba(134, 98, 255, 0.42);
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
}

.nav-link {
  position: relative;
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0.18rem;
  transition: color 0.28s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.34rem;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  transition: transform 0.24s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--text-strong);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  z-index: 2;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 12, 26, 0.68);
  cursor: pointer;
  z-index: 2;
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  background: var(--text-strong);
  border-radius: 999px;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   Buttons and Interactive Elements
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.btn-small {
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
}

.btn-primary {
  color: #03111f;
  background: linear-gradient(110deg, #83fbff 0%, #74d7ff 32%, #ab9bff 100%);
  box-shadow: 0 10px 26px rgba(75, 175, 255, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.btn-ghost {
  color: var(--text-strong);
  border-color: var(--line-soft);
  background: rgba(11, 18, 34, 0.62);
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 12px 30px rgba(84, 185, 255, 0.4), 0 0 35px rgba(138, 125, 255, 0.33);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--line-strong);
  background: rgba(16, 25, 48, 0.85);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-cyan);
  font-weight: 650;
  margin-top: 0.7rem;
}

.text-link::after {
  content: "->";
  transition: transform 0.2s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(3px);
}

/* =========================================================
   Hero Blocks
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(7rem, 12vw, 10rem) 0 4rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(45rem 32rem at 75% 32%, rgba(63, 87, 255, 0.22), transparent 58%),
    radial-gradient(30rem 24rem at 18% 22%, rgba(121, 79, 255, 0.18), transparent 55%);
}

.hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.07fr 0.93fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero-lead {
  max-width: 56ch;
  color: #cdd8f0;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.7rem 0 2rem;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.orb-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 54%, rgba(28, 44, 86, 0.4), rgba(8, 12, 24, 0.08) 68%),
    linear-gradient(130deg, rgba(69, 92, 255, 0.16), rgba(41, 165, 255, 0.1), rgba(181, 126, 255, 0.14));
  border: 1px solid rgba(119, 148, 255, 0.22);
  box-shadow: inset 0 0 70px rgba(97, 123, 255, 0.15), 0 20px 70px rgba(8, 14, 31, 0.7);
}

#orbParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.orb-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(12rem, 30vw, 18rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 36% 30%, #d7faff 0%, #9befff 22%, #72b4ff 52%, #8b7eff 100%);
  box-shadow: 0 0 28px rgba(111, 208, 255, 0.72), 0 0 110px rgba(126, 105, 255, 0.38);
  animation: orb-float 8.5s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  border: 1px solid rgba(165, 223, 255, 0.5);
}

.ring-a {
  animation: ring-rotate-a 14s linear infinite;
}

.ring-b {
  inset: -22%;
  border-color: rgba(142, 159, 255, 0.4);
  animation: ring-rotate-b 19s linear infinite;
}

.ring-c {
  inset: -35%;
  border-color: rgba(90, 189, 255, 0.26);
  animation: ring-rotate-a 24s linear infinite reverse;
}

.orb-aura {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 255, 255, 0.15), rgba(130, 96, 255, 0.12), transparent 68%);
  animation: orb-pulse 4.8s ease-in-out infinite;
}

.hero-scroll-note {
  position: absolute;
  left: 50%;
  bottom: 1.3rem;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-card {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-soft);
  background: rgba(12, 19, 38, 0.78);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.stat-number {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  color: var(--text-strong);
}

.stat-label {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =========================================================
   Inner Page Hero
   ========================================================= */
.page-hero {
  position: relative;
  padding: clamp(8rem, 13vw, 10rem) 0 clamp(2.8rem, 6vw, 4.3rem);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55rem 28rem at 80% -18%, rgba(62, 242, 255, 0.18), transparent 55%),
    radial-gradient(50rem 26rem at 10% -18%, rgba(138, 125, 255, 0.16), transparent 57%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero p {
  max-width: 68ch;
}

.legal-hero {
  padding-bottom: 2rem;
}

/* =========================================================
   Content Layout Components
   ========================================================= */
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3.8vw, 3rem);
}

.editorial-grid p:last-child {
  margin-bottom: 0;
}

.feature-grid,
.principles-grid,
.app-preview-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass-card,
.app-preview-card,
.contact-card,
.app-card {
  position: relative;
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: linear-gradient(155deg, rgba(19, 30, 58, 0.82), rgba(8, 15, 30, 0.82));
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-card:hover,
.app-preview-card:hover,
.contact-card:hover,
.app-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-5px);
  box-shadow: 0 14px 38px rgba(5, 11, 28, 0.58), 0 0 26px rgba(95, 147, 255, 0.12);
}

.app-preview-card h3,
.glass-card h3 {
  margin-bottom: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-published {
  color: #052821;
  background: rgba(72, 255, 192, 0.9);
}

.status-progress {
  color: #061828;
  background: rgba(95, 195, 255, 0.9);
}

.status-prototype {
  color: #151225;
  background: rgba(186, 167, 255, 0.88);
}

.status-coming {
  color: #2b250f;
  background: rgba(255, 225, 139, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* =========================================================
   Labs Page Elements
   ========================================================= */
.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.process-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.95rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: rgba(10, 16, 31, 0.78);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  border: 1px solid rgba(116, 201, 255, 0.4);
  background: rgba(24, 49, 71, 0.6);
}

/* =========================================================
   Apps Page Elements
   ========================================================= */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 0.8rem;
}

.app-card h3 {
  margin: 0.2rem 0 0;
}

.app-category {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
  margin-top: 1rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.52rem 0.76rem;
  border: 1px solid rgba(129, 164, 255, 0.35);
  background: rgba(11, 20, 39, 0.86);
  color: var(--text-body);
  font-size: 0.79rem;
  font-weight: 650;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.store-btn:hover,
.store-btn:focus-visible {
  color: var(--text-strong);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.apps-note {
  margin: 1.25rem 0 0;
  max-width: 70ch;
  color: var(--text-muted);
}

/* =========================================================
   Contact Page Elements
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card h2 {
  margin: 0.35rem 0 0.7rem;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.contact-card h2 a {
  color: var(--text-strong);
}

.contact-card h2 a:hover,
.contact-card h2 a:focus-visible {
  color: var(--accent-cyan);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--text-body);
  background: rgba(11, 20, 39, 0.78);
  font-size: 0.84rem;
  font-weight: 620;
}

.social-pill:hover,
.social-pill:focus-visible {
  color: var(--text-strong);
  border-color: var(--line-strong);
}

/* =========================================================
   Legal Page Elements
   ========================================================= */
.legal-main {
  padding-bottom: 2rem;
}

.legal-content {
  max-width: 860px;
  line-height: 1.8;
}

.legal-content p,
.legal-content ul {
  color: #ccd7ef;
}

.legal-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-top: 2.15rem;
  margin-bottom: 0.65rem;
}

.legal-content a {
  color: var(--accent-cyan);
}

.legal-content a:hover,
.legal-content a:focus-visible {
  text-decoration: underline;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  border-top: 1px solid rgba(117, 151, 255, 0.12);
  padding: 2.3rem 0;
  background: rgba(4, 8, 19, 0.92);
}

.footer-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(30rem 12rem at 50% 0%, rgba(86, 136, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: end;
}

.footer-brand {
  margin: 0;
  color: var(--text-strong);
  font-family: "Sora", sans-serif;
  font-size: 1rem;
}

.footer-copy {
  margin: 0.38rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--text-body);
  font-size: 0.87rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text-strong);
}

.footer-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: right;
}

/* =========================================================
   Reveal and Motion Utility Classes
   ========================================================= */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-parallax] {
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}

[data-split] .split-word-wrap {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.18em;
}

[data-split] .split-word {
  display: inline-block;
}

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes orb-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-7px);
  }
}

@keyframes ring-rotate-a {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ring-rotate-b {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes orb-pulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.42;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.7;
  }
}

/* =========================================================
   Responsive Layout
   ========================================================= */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-copy {
    max-width: 760px;
  }

  .orb-stage {
    width: min(100%, 420px);
  }

  .feature-grid,
  .app-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.62rem);
    right: 4vw;
    left: 4vw;
    display: grid;
    gap: 0.35rem;
    padding: 0.65rem;
    border-radius: 15px;
    border: 1px solid rgba(124, 181, 255, 0.24);
    background: rgba(8, 14, 28, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.52rem 0.52rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }

  .editorial-grid,
  .feature-grid,
  .principles-grid,
  .app-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav,
  .footer-meta {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 7.4rem;
    min-height: auto;
  }

  .hero-scroll-note {
    display: none;
  }

  .feature-grid,
  .app-preview-grid {
    grid-template-columns: 1fr;
  }

  .store-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================================
   Reduced Motion Respect
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cursor-glow,
  .page-noise,
  .hero-scroll-note {
    display: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
