:root {
  --bg: #080a0b;
  --panel: #0e1113;
  --panel-2: #111518;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f5f5;
  --muted: #81898d;
  --cold: #c9f7ec;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button { color: inherit; }

.landing {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 28%, rgba(86, 255, 204, 0.055), transparent 28%),
    linear-gradient(180deg, #090b0c 0%, #07090a 100%);
  padding: 0 5vw;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.landing-nav, .landing-footer, .section-heading, .browser-topbar, .browser-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav {
  height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}

.sigil {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: Georgia, serif;
  font-size: 19px;
  transform: rotate(45deg);
}
.sigil::first-letter { transform: rotate(-45deg); }
.brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 13px; letter-spacing: .2em; }
.brand small { font-size: 9px; color: var(--muted); letter-spacing: .18em; }

.nav-status {
  font-size: 10px;
  color: #aab0b2;
  letter-spacing: .18em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-status span, .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fffc5;
  box-shadow: 0 0 16px rgba(127, 255, 197, .75);
}

.hero {
  padding: 10vh 0 8vh;
  max-width: 900px;
}
.kicker, .section-heading, .landing-footer, .browser-footer {
  font-size: 10px;
  letter-spacing: .22em;
  color: #7e878b;
}
.hero h1 {
  margin: 18px 0 28px;
  font-size: clamp(62px, 8.5vw, 142px);
  line-height: .82;
  letter-spacing: -.075em;
  font-weight: 800;
}
.hero h1 em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: #c9d0d2;
}
.hero-copy {
  margin: 0;
  max-width: 580px;
  color: #8f979a;
  line-height: 1.65;
  font-size: 14px;
}

.destinations { padding-bottom: 10vh; }
.section-heading { padding: 18px 0; border-top: 1px solid var(--line); }
.site-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.site-card {
  min-height: 250px;
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.site-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
}
.site-card.netflix::before { background: radial-gradient(circle at 70% 20%, rgba(229,9,20,.18), transparent 42%); }
.site-card.crunchy::before { background: radial-gradient(circle at 70% 20%, rgba(255,100,0,.18), transparent 42%); }
.site-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background-color: #101416; }
.site-card:hover::before { opacity: 1; }
.site-card:disabled { cursor: wait; opacity: .7; }
.card-index { position: absolute; top: 22px; left: 28px; color: #596166; font-size: 10px; letter-spacing: .18em; }
.site-mark {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-size: 22px;
  font-weight: 800;
}
.netflix .site-mark { color: #ff313a; }
.crunchy .site-mark { color: #ff7a1a; font-size: 16px; }
.site-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.site-copy small { font-size: 9px; color: #737b7f; letter-spacing: .2em; }
.site-copy strong { font-size: clamp(28px, 3.6vw, 50px); letter-spacing: -.04em; }
.site-copy span { color: #7c8589; font-size: 12px; max-width: 330px; }
.launch { position: relative; z-index: 1; font-size: 10px; letter-spacing: .15em; color: #d9dfe0; align-self: end; }
.error-box { margin-top: 14px; border: 1px solid rgba(255, 93, 93, .22); background: rgba(255, 93, 93, .06); padding: 14px 16px; color: #ffaaaa; font-size: 12px; }
.landing-footer { border-top: 1px solid var(--line); min-height: 72px; }

.browser-shell {
  height: 100vh;
  display: grid;
  grid-template-rows: 54px 62px 1fr 38px;
  background: #07090a;
  overflow: hidden;
}
.browser-topbar { padding: 0 18px; border-bottom: 1px solid var(--line); background: #090c0d; }
.brand.compact { cursor: pointer; }
.brand.compact .sigil { width: 28px; height: 28px; font-size: 13px; }
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #30373a; }
.toolbar { display: grid; grid-template-columns: auto minmax(200px, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #0c0f10; }
.nav-buttons { display: flex; gap: 5px; }
.nav-buttons button {
  width: 36px; height: 36px; border: 1px solid transparent; border-radius: 7px; background: transparent; cursor: pointer; color: #a7afb2;
}
.nav-buttons button:hover { background: #14191b; border-color: var(--line); color: white; }
.icon { font-size: 18px; }
.address-bar {
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-radius: 7px;
  background: #07090a;
  border: 1px solid var(--line);
  color: #aeb5b8;
}
.lock { color: #88dfbe; font-size: 12px; }
.address-text { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.allow-pill { font-size: 8px; letter-spacing: .14em; color: #78bca2; border: 1px solid rgba(120,188,162,.22); padding: 4px 6px; border-radius: 4px; }
.session-meta { display: flex; align-items: center; gap: 8px; color: #747d81; font-size: 10px; letter-spacing: .12em; min-width: 72px; justify-content: flex-end; }
.browser-stage { min-height: 0; background: #050606; }
.browser-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #050606; }
.browser-footer { min-height: 38px; padding: 0 15px; border-top: 1px solid var(--line); background: #090c0d; justify-content: flex-start; gap: 10px; }
.browser-footer button { margin-left: auto; border: 0; background: transparent; color: #8e9699; font-size: 9px; letter-spacing: .16em; cursor: pointer; }
.browser-footer button:hover { color: white; }
.separator { color: #333a3d; }

@media (max-width: 760px) {
  .landing { padding: 0 18px; }
  .landing-nav { height: 84px; }
  .hero { padding-top: 8vh; }
  .hero h1 { font-size: clamp(54px, 18vw, 88px); }
  .site-grid { grid-template-columns: 1fr; }
  .site-card { min-height: 210px; grid-template-columns: 54px 1fr; padding: 24px; gap: 18px; }
  .site-mark { width: 52px; height: 52px; }
  .launch { position: absolute; right: 24px; top: 24px; }
  .landing-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
  .browser-shell { grid-template-rows: 48px 58px 1fr 34px; }
  .browser-topbar { padding: 0 12px; }
  .toolbar { grid-template-columns: auto 1fr; padding: 9px 10px; gap: 8px; }
  .nav-buttons button { width: 31px; height: 34px; }
  .nav-buttons button:nth-child(2) { display: none; }
  .session-meta, .allow-pill { display: none; }
  .address-bar { height: 36px; }
  .browser-footer { font-size: 8px; }
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 6, 7, .88);
  backdrop-filter: blur(18px);
}
.access-panel {
  width: min(480px, 100%);
  border: 1px solid var(--line-strong);
  background: #0b0e10;
  padding: 30px;
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
}
.access-panel small { color: #6f787c; letter-spacing: .2em; font-size: 9px; }
.access-panel h2 { margin: 10px 0 8px; font-size: 30px; letter-spacing: -.04em; }
.access-panel p { color: #858e91; line-height: 1.55; font-size: 13px; }
.access-panel form { display: flex; gap: 8px; margin-top: 20px; }
.access-panel input {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: #060809; color: white;
  padding: 12px 13px; outline: none; border-radius: 6px;
}
.access-panel button { border: 1px solid var(--line-strong); background: #151a1c; padding: 0 16px; cursor: pointer; border-radius: 6px; }
.guard-toast {
  position: fixed; z-index: 30; bottom: 56px; left: 50%; transform: translateX(-50%);
  border: 1px solid rgba(255, 179, 71, .28); background: rgba(18, 14, 8, .94); color: #ffd59b;
  padding: 10px 14px; font-size: 11px; letter-spacing: .05em; border-radius: 6px;
}
.browser-stage { position: relative; }
.browser-stage iframe { outline: none; }
.loading-stage {
  position: absolute; inset: 0; display: grid; place-items: center; color: #697276; font-size: 10px; letter-spacing: .2em;
}
.tech-note { margin-top: 18px; color: #596166; font-size: 10px; line-height: 1.6; max-width: 620px; }
