:root {
  --navy-950: #061321;
  --navy-900: #0b1f33;
  --orange: #ff9f1c;
  --orange-soft: #ffc15a;
  --white: #f7fafc;
  --muted: #a9b7c5;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.landing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 76% 44%, rgba(255, 159, 28, .17), transparent 26%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 62%, #0d2942);
}
.grid-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 82%);
}

.site-header {
  height: 78px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 850; letter-spacing: -.03em; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand small { margin-left: 2px; padding-left: 13px; color: #8fa1b2; border-left: 1px solid rgba(255,255,255,.17); font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.header-link { color: var(--orange-soft); font: 750 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }

.hero {
  min-height: 0;
  padding: clamp(34px, 6vh, 74px) clamp(24px, 8vw, 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(42px, 8vw, 125px);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 22px; display: flex; align-items: center; gap: 10px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.eyebrow > span { width: 26px; height: 2px; background: var(--orange); }
.hero h1 { margin: 0; max-width: 790px; font-size: clamp(46px, 5.6vw, 82px); font-weight: 850; line-height: 1.06; letter-spacing: -.06em; }
.hero h1 em { display: block; color: var(--orange-soft); font-style: normal; }
.hero-lead { max-width: 600px; margin: 26px 0 0; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.85; }
.topic-list { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.topic-list span { padding: 7px 10px; color: #b9c6d2; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.035); font: 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; font-size: 14px; font-weight: 760; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy-950); background: var(--orange); box-shadow: 0 14px 40px rgba(255,159,28,.18); }
.button-primary:hover { background: var(--orange-soft); }
.button-secondary { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.button-secondary:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }

.hero-visual { position: relative; min-height: min(50vh, 470px); display: grid; place-items: center; }
.sun-glow { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,159,28,.11); filter: blur(42px); }
.avatar-frame { position: relative; z-index: 3; width: min(54%, 245px); padding: 8px; border: 1px solid rgba(255,193,90,.45); border-radius: 50%; background: rgba(255,255,255,.04); box-shadow: 0 40px 100px rgba(0,0,0,.35), 0 0 70px rgba(255,159,28,.1); }
.avatar-frame img { border-radius: 50%; }
.sun-orbit { position: absolute; border: 1px solid rgba(255,193,90,.2); border-radius: 50%; }
.orbit-one { width: min(70%, 330px); aspect-ratio: 1; }
.orbit-two { width: min(90%, 420px); aspect-ratio: 1; border-style: dashed; animation: spin 34s linear infinite; }
.terminal-card { position: absolute; z-index: 5; left: 0; bottom: 4%; width: 290px; padding: 15px 17px 17px; border: 1px solid rgba(255,255,255,.14); background: rgba(6,19,33,.88); box-shadow: 0 22px 60px rgba(0,0,0,.35); backdrop-filter: blur(12px); }
.terminal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 15px; }
.terminal-head > span { width: 7px; height: 7px; border-radius: 50%; background: #54677a; }
.terminal-head > span:first-child { background: var(--orange); }
.terminal-head b { margin-left: auto; color: #7890a5; font: 9px ui-monospace, monospace; letter-spacing: .08em; }
.terminal-card code { display: block; color: #e8eef3; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-card code span { color: var(--orange); }
.terminal-card .terminal-result { color: #77c69a; }
@keyframes spin { to { transform: rotate(360deg); } }

footer {
  min-height: 54px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #708397;
  border-top: 1px solid rgba(255,255,255,.08);
  font: 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

@media (max-width: 820px) {
  .site-header { height: 66px; padding-inline: 21px; }
  .brand { font-size: 18px; }
  .brand img { width: 34px; height: 34px; }
  .brand small { display: none; }
  .hero { padding: 25px 22px 20px; grid-template-columns: 1fr; grid-template-rows: auto minmax(165px, 1fr); gap: 18px; text-align: center; }
  .hero-copy { max-width: 620px; margin: 0 auto; }
  .eyebrow, .topic-list, .hero-actions { justify-content: center; }
  .eyebrow { margin-bottom: 16px; }
  .hero h1 { font-size: clamp(36px, 10vw, 54px); }
  .hero-lead { margin-top: 18px; font-size: 14px; line-height: 1.7; }
  .topic-list { margin-top: 17px; }
  .hero-actions { margin-top: 20px; }
  .button { min-height: 46px; }
  .hero-visual { min-height: 165px; height: min(28vh, 245px); }
  .avatar-frame { width: min(35vw, 155px); padding: 5px; }
  .orbit-one { width: min(48vw, 205px); }
  .orbit-two { width: min(61vw, 260px); }
  .terminal-card { display: none; }
  footer { min-height: 44px; padding-inline: 21px; font-size: 9px; }
}

@media (max-width: 470px) {
  .topic-list span { padding: 6px 8px; font-size: 9px; }
  .hero-actions { flex-wrap: nowrap; }
  .button { padding-inline: 16px; gap: 10px; font-size: 12px; }
}

@media (max-height: 700px) and (min-width: 821px) {
  .site-header { height: 66px; }
  .hero { padding-top: 24px; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(44px, 5vw, 66px); }
  .hero-lead { margin-top: 18px; }
  .topic-list { margin-top: 18px; }
  .hero-actions { margin-top: 22px; }
  .hero-visual { min-height: 360px; }
}

@media (max-width: 820px) and (max-height: 690px) {
  .hero { display: flex; align-items: center; }
  .hero-visual { display: none; }
  .hero-copy { margin-block: auto; }
}

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