@import url('./typography.css');

:root {
  color-scheme: dark;
  --void: #03050a;
  --night: #070b12;
  --panel: rgba(8, 15, 26, 0.74);
  --white: #f5fbff;
  --ice: #b9d5e3;
  --muted: #7892a2;
  --cyan: #72efff;
  --blue: #4c7dff;
  --violet: #a277ff;
  --line: rgba(160, 222, 255, 0.18);
  --display: "RH Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "RH Body", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--void); }
body { margin: 0; overflow-x: hidden; background: var(--void); color: var(--white); font-family: var(--body); }
a { color: inherit; }

.site-shell { position: relative; isolation: isolate; min-height: 100vh; overflow: hidden; }
.hero-media { position: absolute; z-index: -2; inset: 0 0 auto; height: min(1080px, 100svh); min-height: 760px; overflow: hidden; background: #02050a; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% center; filter: saturate(1.08) contrast(1.06); transform: scale(1.015); }
#cosmos { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero-veil { position: absolute; z-index: 3; inset: 0; background: linear-gradient(90deg, rgba(2, 5, 10, .94) 0%, rgba(2, 5, 10, .64) 39%, rgba(2, 5, 10, .12) 69%), linear-gradient(180deg, rgba(1, 4, 9, .6) 0%, transparent 32%, rgba(3, 5, 10, .2) 64%, var(--void) 100%); }

.site-header { position: absolute; z-index: 10; top: 0; left: 50%; display: flex; align-items: center; justify-content: space-between; width: min(1680px, calc(100% - 7vw)); padding: 32px 0; transform: translateX(-50%); border-bottom: 1px solid rgba(200, 236, 255, .15); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-sigil { position: relative; display: grid; width: 45px; height: 45px; place-items: center; border: 1px solid rgba(114, 239, 255, .6); clip-path: polygon(50% 0, 100% 23%, 100% 77%, 50% 100%, 0 77%, 0 23%); background: rgba(8, 23, 35, .58); box-shadow: inset 0 0 25px rgba(78, 206, 255, .15); }
.brand-sigil::before, .brand-sigil i { position: absolute; content: ""; inset: 5px; border: 1px solid rgba(114, 239, 255, .24); clip-path: inherit; }
.brand-sigil i { inset: 10px; border-color: rgba(114, 239, 255, .15); }
.brand-sigil b { font-family: var(--display); font-size: 21px; font-weight: 750; }
.brand-type { font-family: var(--display); font-size: 18px; font-weight: 750; letter-spacing: .17em; line-height: .9; }
.brand-type small { display: block; margin-top: 8px; color: var(--cyan); font-size: 8px; letter-spacing: .62em; }
.system-state { display: flex; align-items: center; gap: 10px; color: #b9cad4; font-size: 10px; font-weight: 750; letter-spacing: .25em; text-transform: uppercase; }
.system-state span { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 7px var(--cyan), 0 0 18px var(--cyan); animation: pulse 2.2s ease-in-out infinite; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; width: min(1680px, calc(100% - 7vw)); height: min(1080px, 100svh); min-height: 760px; margin: 0 auto; padding: 145px 0 78px; }
.hero-copy { max-width: 1030px; }
.eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; color: var(--cyan); font-family: var(--display); font-size: 11px; font-weight: 750; letter-spacing: .33em; text-transform: uppercase; }
.eyebrow span { color: rgba(255, 255, 255, .38); }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(5.3rem, 10.3vw, 12rem); font-weight: 780; letter-spacing: -.065em; line-height: .73; text-transform: uppercase; text-shadow: 0 2px 35px rgba(0, 0, 0, .32); }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(174, 238, 255, .62); filter: drop-shadow(0 0 16px rgba(75, 209, 255, .24)); }
.launch-line { max-width: 780px; margin: 46px 0 0; color: var(--white); font-size: clamp(1.12rem, 1.5vw, 1.52rem); font-weight: 580; line-height: 1.45; }
.hero-note { max-width: 680px; margin: 20px 0 0; color: var(--ice); font-size: .92rem; line-height: 1.75; }
.hero-rule { display: flex; align-items: center; width: min(620px, 78%); margin-top: 30px; }
.hero-rule span { width: 100%; height: 1px; background: linear-gradient(90deg, var(--cyan), rgba(114, 239, 255, .08)); }
.hero-rule i { flex: 0 0 auto; width: 7px; height: 7px; border: 1px solid var(--cyan); transform: rotate(45deg); box-shadow: 0 0 15px rgba(114, 239, 255, .8); }
.orbital-readout { align-self: end; justify-self: end; width: 260px; margin-bottom: 80px; padding: 23px; border: 1px solid rgba(178, 231, 255, .2); background: linear-gradient(135deg, rgba(11, 21, 34, .74), rgba(7, 13, 24, .34)); backdrop-filter: blur(16px); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.orbital-readout::before { position: absolute; content: ""; width: 50px; height: 1px; margin: -24px 0 0 -24px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.readout-label, .readout-meta { display: block; color: var(--muted); font-family: var(--display); font-size: 8px; font-weight: 750; letter-spacing: .27em; text-transform: uppercase; }
.orbital-readout strong { display: block; margin: 14px 0 11px; font-family: var(--display); font-size: 40px; letter-spacing: -.04em; }
.orbital-readout strong i { color: var(--cyan); font-style: normal; font-weight: 300; }
.signal { display: flex; align-items: end; gap: 4px; height: 20px; margin-top: 19px; }
.signal i { width: 3px; background: var(--cyan); box-shadow: 0 0 8px rgba(114, 239, 255, .8); animation: signal 1.7s ease-in-out infinite alternate; }
.signal i:nth-child(1) { height: 5px; }.signal i:nth-child(2) { height: 9px; animation-delay: -.3s; }.signal i:nth-child(3) { height: 14px; animation-delay: -.8s; }.signal i:nth-child(4) { height: 20px; animation-delay: -.5s; }.signal i:nth-child(5) { height: 12px; animation-delay: -1.1s; }.signal i:nth-child(6) { height: 7px; animation-delay: -.2s; }
.scroll-cue { position: absolute; bottom: 32px; left: 0; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .25em; text-decoration: none; text-transform: uppercase; }
.scroll-cue i { display: block; width: 44px; height: 1px; background: var(--cyan); box-shadow: 0 0 10px rgba(114, 239, 255, .6); }

.capabilities { position: relative; width: min(1520px, calc(100% - 7vw)); margin: 0 auto; padding: clamp(100px, 13vw, 220px) 0; }
.capabilities::before { position: absolute; z-index: -1; content: ""; inset: 3% -20% auto; height: 55%; background: radial-gradient(circle at 50% 50%, rgba(45, 105, 177, .14), transparent 65%); filter: blur(40px); }
.section-heading { display: grid; grid-template-columns: .8fr 1.7fr; align-items: end; margin-bottom: clamp(55px, 8vw, 110px); }
.section-heading .eyebrow { align-self: start; }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(3rem, 6.6vw, 7.5rem); letter-spacing: -.055em; line-height: .91; text-transform: uppercase; }
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.info-panel { position: relative; min-height: 470px; padding: clamp(30px, 4vw, 64px); overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(15, 27, 43, .72), rgba(5, 9, 16, .35)); }
.info-panel::before { position: absolute; content: ""; inset: 0; background: linear-gradient(118deg, transparent 10%, rgba(114, 239, 255, .07) 48%, transparent 62%); transform: translateX(-130%); transition: transform .9s ease; }
.info-panel:hover::before { transform: translateX(130%); }
.info-panel.featured { background: linear-gradient(145deg, rgba(18, 41, 61, .9), rgba(5, 10, 18, .52)); }
.panel-index { color: var(--muted); font-family: var(--display); font-size: 9px; font-weight: 750; letter-spacing: .3em; }
.panel-icon { position: relative; display: block; width: 62px; height: 62px; margin: 90px 0 44px; border: 1px solid rgba(114, 239, 255, .36); transform: rotate(45deg); }
.panel-icon::before, .panel-icon::after, .panel-icon i { position: absolute; content: ""; inset: 9px; border: 1px solid rgba(114, 239, 255, .46); }
.panel-icon::after { inset: 19px; background: var(--cyan); border: 0; box-shadow: 0 0 18px var(--cyan); }
.panel-icon i { inset: -8px 28px; border-width: 0 1px; }
.panel-icon.infrastructure::before { border-radius: 50%; }.panel-icon.infrastructure::after { border-radius: 50%; background: var(--blue); box-shadow: 0 0 18px var(--blue); }
.panel-icon.root::before { transform: rotate(45deg); }.panel-icon.root::after { background: var(--violet); box-shadow: 0 0 18px var(--violet); }
.info-panel h3 { position: relative; margin: 0 0 19px; font-family: var(--display); font-size: clamp(1.65rem, 2.5vw, 2.55rem); letter-spacing: -.035em; line-height: 1; text-transform: uppercase; }
.info-panel p { position: relative; max-width: 370px; margin: 0; color: var(--ice); font-size: .98rem; line-height: 1.75; }
.panel-trace { position: absolute; right: 0; bottom: 0; width: 42%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); box-shadow: 0 0 12px rgba(114, 239, 255, .6); }

.manifesto { position: relative; width: min(1520px, calc(100% - 7vw)); margin: 0 auto; padding: clamp(80px, 12vw, 190px) 0 clamp(120px, 15vw, 240px); border-top: 1px solid var(--line); }
.manifesto::after { position: absolute; content: "RH"; right: -4vw; bottom: -13vw; color: transparent; font-family: var(--display); font-size: clamp(15rem, 39vw, 46rem); font-weight: 800; letter-spacing: -.12em; line-height: 1; -webkit-text-stroke: 1px rgba(114, 239, 255, .06); pointer-events: none; }
.manifesto > p { color: var(--muted); font-family: var(--display); font-size: 11px; font-weight: 750; letter-spacing: .35em; text-transform: uppercase; }
.manifesto h2 { position: relative; z-index: 1; margin: 30px 0 70px; font-family: var(--display); font-size: clamp(3.8rem, 9vw, 10.5rem); letter-spacing: -.067em; line-height: .82; text-transform: uppercase; }
.manifesto h2 span { color: transparent; -webkit-text-stroke: 1px rgba(114, 239, 255, .58); }
.manifesto-meta { position: relative; z-index: 1; display: flex; gap: 36px; color: var(--cyan); font-family: var(--display); font-size: 9px; font-weight: 750; letter-spacing: .25em; }

footer { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 15px 30px; align-items: end; width: min(1680px, calc(100% - 7vw)); margin: 0 auto; padding: 38px 0 48px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { font-family: var(--display); font-size: 18px; font-weight: 750; letter-spacing: .16em; }
.footer-brand span { color: var(--cyan); }
footer p { margin: 0; font-size: 12px; }
footer small { grid-column: 1 / -1; font-family: var(--display); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.noscript { position: fixed; z-index: 50; right: 15px; bottom: 15px; max-width: 340px; padding: 12px 16px; border: 1px solid var(--line); background: #090f19; color: var(--ice); font-size: 12px; }

@keyframes pulse { 50% { opacity: .38; transform: scale(.7); } }
@keyframes signal { to { opacity: .25; transform: scaleY(.45); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .orbital-readout { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .panel-grid { grid-template-columns: 1fr; }
  .info-panel { min-height: 390px; }
  .panel-icon { margin-top: 70px; }
}

@media (max-width: 640px) {
  .site-header, .hero, .capabilities, .manifesto, footer { width: calc(100% - 36px); }
  .site-header { padding-top: 22px; }
  .brand-type { font-size: 13px; }
  .system-state { font-size: 8px; letter-spacing: .16em; }
  .hero { min-height: 720px; padding-top: 130px; }
  .hero-media { min-height: 720px; }
  .hero h1 { font-size: clamp(3.55rem, 17vw, 5.5rem); line-height: .8; }
  .launch-line { margin-top: 36px; }
  .hero-note { font-size: .84rem; }
  .scroll-cue span { display: none; }
  .manifesto-meta { flex-direction: column; gap: 16px; }
  footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
