:root {
  --night: #070b17;
  --night-soft: #0c1224;
  --surface: #111a31;
  --line: rgba(151, 176, 230, 0.18);
  --text: #f5f7ff;
  --muted: #aeb9d4;
  --cyan: #47daf4;
  --blue: #2868e8;
  --violet: #a66cff;
  --magenta: #ee5ab6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-shell { min-height: 100vh; overflow: hidden; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 4;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  letter-spacing: .18em;
  font-size: 14px;
  font-weight: 850;
}

.wordmark::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 45%, var(--magenta));
  box-shadow: 0 0 18px rgba(40, 104, 232, .55);
}

.site-header nav,
.site-footer nav { display: flex; align-items: center; gap: 28px; }

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.document-content a:hover { color: var(--cyan); }

.site-header nav .app-nav-link {
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}

.site-header nav .app-nav-link-primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--blue), #754cf5);
  box-shadow: 0 10px 30px rgba(40, 104, 232, .24);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: 72px;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  top: -180px;
  right: -260px;
  background: radial-gradient(circle, rgba(105, 67, 255, .25), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan);
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 850;
}

.hero h1,
.document-hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(3.35rem, 7.8vw, 7.2rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 850;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--cyan), #74a3ff 45%, var(--violet), var(--magenta));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

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

.primary-action,
.secondary-action {
  min-height: 52px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 750;
}

.primary-action {
  background: linear-gradient(120deg, var(--blue), #754cf5);
  box-shadow: 0 16px 46px rgba(40, 104, 232, .28);
}

.secondary-action { border: 1px solid var(--line); background: rgba(17, 26, 49, .55); }

.app-action-note {
  max-width: 580px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.time-orbit {
  aspect-ratio: 1;
  width: min(100%, 440px);
  justify-self: end;
  position: relative;
  display: grid;
  place-items: center;
}

.orbit { position: absolute; inset: 7%; border: 1px solid rgba(71, 218, 244, .23); border-radius: 50%; }
.orbit-one::before,
.orbit-two::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
}
.orbit-one::before { top: 17%; right: 11%; }
.orbit-two { inset: 19%; border-color: rgba(166, 108, 255, .3); }
.orbit-two::before { left: 1%; bottom: 26%; background: var(--magenta); box-shadow: 0 0 22px var(--magenta); }

.time-core {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #1b2c57, #0d1428 68%);
  border: 1px solid rgba(126, 158, 255, .28);
  box-shadow: 0 0 80px rgba(40, 104, 232, .2), inset 0 0 44px rgba(166, 108, 255, .09);
}
.time-core span { color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .2em; }
.time-core strong { margin-top: 8px; font-size: 42px; line-height: 1; letter-spacing: -.04em; }
.time-core em { color: var(--muted); font-size: 16px; font-style: normal; }

.manifesto-strip {
  min-height: 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  color: #cbd4e9;
  background: rgba(12, 18, 36, .76);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 130px 0; }
.section-heading { max-width: 780px; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.section h2,
.quiet-section h2,
.closing-section h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.feature-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.app-entry-section { padding-bottom: 0; }
.app-entry-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.app-entry-card {
  min-height: 190px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 7px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(32, 55, 108, .72), rgba(12, 18, 36, .94));
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.app-entry-card:hover { border-color: rgba(71, 218, 244, .55); transform: translateY(-3px); }
.app-entry-card span { grid-column: 1 / -1; color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: .18em; }
.app-entry-card strong { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.05; letter-spacing: -.035em; }
.app-entry-card small { grid-column: 1; color: var(--muted); font-size: 15px; }
.app-entry-card b { grid-column: 2; grid-row: 2 / span 2; align-self: center; color: var(--cyan); font-size: 34px; font-weight: 500; }
.feature-card {
  min-height: 300px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(20, 31, 60, .85), rgba(11, 17, 34, .9));
}
.feature-card > span { color: var(--violet); font-size: 12px; font-weight: 850; letter-spacing: .18em; }
.feature-card h3 { margin: 54px 0 14px; font-size: 26px; line-height: 1.15; }
.feature-card p { margin: 0; color: var(--muted); }

.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; border-top: 1px solid var(--line); }
.control-list { display: grid; gap: 16px; }
.control-list > div { padding: 24px; border-radius: 20px; background: var(--night-soft); border: 1px solid var(--line); display: flex; gap: 18px; }
.control-list p { margin: 0; color: var(--muted); }
.control-list strong { display: block; color: var(--text); margin-bottom: 4px; }
.status-dot { flex: 0 0 auto; width: 11px; height: 11px; margin-top: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 18px var(--blue); }
.status-dot.violet { background: var(--violet); box-shadow: 0 0 18px var(--violet); }
.status-dot.cyan { background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }

.quiet-section {
  padding: 130px max(20px, calc((100vw - 980px) / 2));
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(71, 218, 244, .1), transparent 48%), var(--night-soft);
  border-block: 1px solid var(--line);
}
.quiet-section blockquote { margin: 24px auto; max-width: 950px; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 760; }
.quiet-section > p:last-child { color: var(--muted); max-width: 650px; margin: 0 auto; font-size: 18px; }

.closing-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.closing-section > p { margin: 0; color: var(--muted); font-size: 18px; }

.site-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.site-footer p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.footer-wordmark { letter-spacing: .18em; }
.site-footer .copyright { grid-column: 1 / -1; }

.document-main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 130px; }
.document-hero { max-width: 850px; }
.document-hero h1 { font-size: clamp(3rem, 7vw, 6rem); }
.document-hero > p:last-child { max-width: 690px; margin: 28px 0 0; color: var(--muted); font-size: 19px; }
.draft-notice { margin: 56px 0 38px; padding: 20px 22px; border: 1px solid rgba(238, 179, 86, .35); border-radius: 16px; background: rgba(238, 179, 86, .07); display: grid; gap: 4px; }
.draft-notice strong { color: #ffd48f; }
.draft-notice span { color: var(--muted); }
.document-content { padding: 10px 0; }
.document-content section { padding: 34px 0; border-bottom: 1px solid var(--line); }
.document-content h2 { margin: 0 0 13px; font-size: 27px; letter-spacing: -.025em; }
.document-content p,
.document-content li { color: var(--muted); font-size: 17px; }
.document-content a { color: var(--cyan); text-underline-offset: 4px; }
.document-content ol { padding-left: 24px; }
.document-content li + li { margin-top: 9px; }
.inactive-action { margin-top: 22px; display: inline-flex; padding: 12px 17px; border-radius: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); font-weight: 700; }

@media (max-width: 860px) {
  .site-header { min-height: auto; padding: 22px 0; align-items: flex-start; }
  .site-header nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .site-header nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding: 90px 0; min-height: auto; gap: 64px; }
  .time-orbit { width: min(80vw, 400px); justify-self: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .app-entry-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 240px; }
  .feature-card h3 { margin-top: 44px; }
  .split-section,
  .closing-section { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 560px) {
  .site-header { display: grid; gap: 20px; }
  .site-header nav { justify-content: flex-start; }
  .site-header nav .app-nav-link { min-height: 36px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-text { font-size: 17px; }
  .time-orbit { width: 90vw; max-width: 330px; }
  .time-core strong { font-size: 32px; }
  .manifesto-strip { padding: 22px 20px; gap: 12px; text-align: center; }
  .section { padding: 90px 0; }
  .quiet-section { padding-block: 90px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-footer .copyright { grid-column: auto; }
  .document-main { padding-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
