:root {
  --ink: #0b1020;
  --ink-soft: #262d40;
  --paper: #f2f0e9;
  --white: #fffefa;
  --blue: #2857f5;
  --lime: #c8ff35;
  --line: rgba(11, 16, 32, 0.15);
  --muted: #777c87;
  --shadow: 0 28px 70px rgba(11, 16, 32, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ink); background: var(--lime); }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 3px;
  background: var(--lime);
}

.site-header {
  position: fixed;
  z-index: 90;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  min-height: 66px;
  padding: 10px 12px 10px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 18px;
  background: rgba(246, 244, 237, 0.82);
  box-shadow: 0 8px 32px rgba(11, 16, 32, 0.07);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-family: Georgia, serif;
  font-style: italic;
}
.nav { display: flex; gap: 34px; font-size: 13px; font-weight: 650; }
.nav a { position: relative; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; inset: auto 0 3px; height: 1px; transform: scaleX(0); background: var(--blue); transition: transform .25s ease; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav-cta { justify-self: end; padding: 11px 17px; border-radius: 10px; color: var(--white); background: var(--ink); font-size: 13px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.nav-cta:hover { transform: translateY(-2px); background: var(--blue); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  min-height: 100vh;
  padding: 150px max(7vw, calc((100vw - 1240px) / 2)) 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42vw;
  height: 100%;
  background-image: linear-gradient(rgba(11,16,32,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(11,16,32,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to left, #000 35%, transparent 100%);
}
.eyebrow, .kicker { margin: 0 0 22px; color: var(--blue); font-family: "Courier New", monospace; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 26px; height: 2px; background: var(--blue); }
.hero h1 { margin: 0; font-size: clamp(68px, 7.2vw, 116px); line-height: .91; letter-spacing: -.075em; }
.hero h1 span, .section-heading h2 span, .now-card h2 span { color: var(--blue); font-family: Georgia, "STSong", serif; font-style: italic; font-weight: 400; }
.hero-lead { max-width: 570px; margin: 36px 0 0; color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; gap: 30px; padding: 15px 18px 15px 22px; border-radius: 10px; font-size: 14px; font-weight: 750; }
.button-primary { color: var(--white); background: var(--blue); box-shadow: 0 10px 28px rgba(40, 87, 245, .26); transition: transform .25s ease, box-shadow .25s ease; }
.button-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(40, 87, 245, .32); }
.text-link { font-size: 14px; font-weight: 750; border-bottom: 1px solid var(--ink); }
.hero-visual { position: relative; min-height: 530px; }
.code-card {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(500px, 92%);
  overflow: hidden;
  transform: translate(-48%, -50%) rotate(2.5deg);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  color: #e7eaf3;
  background: #11182a;
  box-shadow: var(--shadow);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.code-card:hover { transform: translate(-48%, -52%) rotate(0deg); }
.code-topbar { display: flex; align-items: center; height: 52px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); background: #0c1221; }
.dot { width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; }
.dot-red { background: #ff6b65; }.dot-yellow { background: #f5c451; }.dot-green { background: #4fce78; }
.file-name { margin-left: auto; color: #7f8799; font: 11px "Courier New", monospace; }
.code-card pre { margin: 0; padding: 34px 28px 22px; overflow: auto; font: 15px/1.9 "Courier New", monospace; }
.code-muted { color: #465067; user-select: none; }.code-blue { color: #7898ff; }.code-green { color: var(--lime); }
.caret { display: inline-block; width: 2px; height: 16px; margin-left: 4px; vertical-align: middle; background: var(--lime); animation: blink .85s step-end infinite; }
.code-status { display: flex; align-items: center; gap: 8px; padding: 13px 28px; color: #929bac; background: #0c1221; font: 11px "Courier New", monospace; }
.code-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.orbit { position: absolute; z-index: 1; top: 50%; left: 50%; border: 1px solid rgba(40,87,245,.18); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 540px; height: 540px; }.orbit-two { width: 420px; height: 420px; border-style: dashed; animation: spin 35s linear infinite; }
.float-tag { position: absolute; z-index: 4; display: grid; place-items: center; border-radius: 13px; font: 800 17px "Courier New", monospace; box-shadow: 0 12px 30px rgba(11,16,32,.15); }
.tag-one { top: 5%; right: 6%; width: 64px; height: 64px; color: var(--ink); background: var(--lime); transform: rotate(8deg); }
.tag-two { bottom: 8%; left: 4%; width: 57px; height: 57px; color: var(--white); background: var(--blue); transform: rotate(-9deg); }
.tag-three { right: 0; bottom: 18%; width: 58px; height: 58px; border: 1px solid var(--line); background: var(--white); transform: rotate(6deg); }
.hero-index { position: absolute; right: 28px; bottom: 34px; display: flex; align-items: center; gap: 8px; color: var(--muted); font: 11px "Courier New", monospace; writing-mode: vertical-rl; }
.hero-index span { width: 1px; height: 38px; background: var(--line); }

.ticker { overflow: hidden; color: var(--white); background: var(--blue); transform: rotate(-1deg) scale(1.01); }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 30px; padding: 18px 0; animation: ticker 24s linear infinite; }
.ticker span { font-size: 15px; font-weight: 900; letter-spacing: .16em; }
.ticker i { color: var(--lime); font-style: normal; }

.section { padding: 130px max(7vw, calc((100vw - 1240px) / 2)); }
.section-number { padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font: 11px "Courier New", monospace; letter-spacing: .08em; }
.section-number.light { border-color: rgba(255,255,255,.16); color: #7e879b; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; margin-top: 70px; }
.section-heading h2 { margin: 0; font-size: clamp(44px, 5vw, 74px); line-height: 1.1; letter-spacing: -.06em; }
.about-content { padding-top: 8px; }
.about-content > p { max-width: 640px; color: #5f6571; }
.lead-quote { margin: 0 0 32px; color: var(--ink) !important; font-size: clamp(21px, 2vw, 27px); font-weight: 650; line-height: 1.65; letter-spacing: -.025em; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 52px; background: var(--line); border: 1px solid var(--line); }
.principles div { display: flex; min-height: 128px; padding: 22px; flex-direction: column; justify-content: space-between; background: var(--paper); }
.principles strong { color: var(--blue); font: 12px "Courier New", monospace; }
.principles span { font-size: 14px; font-weight: 700; line-height: 1.45; }

.roadmap { padding-top: 70px; }
.roadmap-head, .projects-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin: 62px 0 55px; }
.roadmap-head > p, .projects-head > p { max-width: 410px; margin: 0 0 8px; color: var(--muted); }
.roadmap-list { border-top: 1px solid var(--line); }
.roadmap-item { display: grid; grid-template-columns: 110px 70px 1fr auto; gap: 25px; align-items: center; min-height: 145px; border-bottom: 1px solid var(--line); transition: padding .28s ease, background .28s ease; }
.roadmap-item:hover { padding: 0 20px; background: rgba(255,255,255,.58); }
.roadmap-stage { color: var(--muted); font: 11px "Courier New", monospace; }
.roadmap-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--line); border-radius: 14px; color: var(--blue); background: var(--white); font: 700 17px "Courier New", monospace; }
.roadmap-item h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; }
.roadmap-item p { margin: 0; color: var(--muted); font-size: 14px; }
.roadmap-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.roadmap-state span { width: 7px; height: 7px; border-radius: 50%; background: #a7aab1; }
.roadmap-state.active { color: var(--blue); }.roadmap-state.active span { background: var(--blue); box-shadow: 0 0 0 5px rgba(40,87,245,.12); }
.roadmap-state.done span { background: #37a466; }

.projects { position: relative; color: var(--white); background: var(--ink); }
.projects::after { content: ""; position: absolute; right: 0; bottom: 0; width: 420px; height: 420px; background: radial-gradient(circle at bottom right, rgba(40,87,245,.25), transparent 65%); pointer-events: none; }
.section-heading-light .kicker { color: var(--lime); }
.section-heading-light h2 { color: var(--white); }
.projects-head > p { color: #9298a8; }
.project-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 18px; }
.project-card { display: flex; min-height: 470px; padding: 22px; flex-direction: column; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: #141b2d; transition: transform .3s ease, border-color .3s ease; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(200,255,53,.5); }
.project-featured { background: var(--blue); }
.project-meta { display: flex; justify-content: space-between; color: #8790a4; font: 10px "Courier New", monospace; letter-spacing: .1em; text-transform: uppercase; }
.project-featured .project-meta { color: rgba(255,255,255,.65); }
.project-art { position: relative; display: grid; min-height: 245px; margin: 30px 0; place-items: center; overflow: hidden; border-radius: 12px; background: #0b1020; }
.terminal-art { background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 100% 32px; }
.terminal-art .prompt { position: relative; z-index: 2; padding: 18px 20px; border: 1px solid rgba(200,255,53,.28); color: var(--lime); background: rgba(11,16,32,.78); font: 13px "Courier New", monospace; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.terminal-art .prompt span { animation: blink .8s step-end infinite; }
.terminal-art .line { position: absolute; height: 1px; background: rgba(200,255,53,.2); transform-origin: left; }
.terminal-art .l1 { top: 25%; left: 8%; width: 70%; transform: rotate(22deg); }.terminal-art .l2 { right: -10%; bottom: 30%; width: 75%; transform: rotate(-28deg); }.terminal-art .l3 { bottom: 12%; left: 16%; width: 60%; transform: rotate(8deg); }
.blocks-art { grid-template-columns: repeat(3, 40px); align-content: center; gap: 8px; background: #eceae2; }
.blocks-art i { width: 40px; height: 40px; border-radius: 7px; background: var(--blue); transform: scale(.78); transition: transform .25s ease; }
.blocks-art i:nth-child(2), .blocks-art i:nth-child(4), .blocks-art i:nth-child(9) { background: var(--lime); }
.project-card:hover .blocks-art i { transform: scale(1); }
.notes-art { grid-template-columns: repeat(3, 68px); background: #f4f1e8; }
.notes-art div { display: grid; width: 72px; height: 88px; place-items: center; color: var(--ink); background: var(--lime); box-shadow: 4px 8px 20px rgba(0,0,0,.2); font: 700 10px "Courier New", monospace; transform: rotate(-7deg); }
.notes-art div:nth-child(2) { color: var(--white); background: var(--blue); transform: translateY(12px) rotate(5deg); }.notes-art div:nth-child(3) { background: #ffb4cf; transform: rotate(9deg); }
.project-info { margin-top: auto; }
.project-info p { margin: 0 0 7px; color: var(--lime); font: 10px "Courier New", monospace; letter-spacing: .13em; }
.project-info h3 { margin: 0 0 9px; font-size: 23px; letter-spacing: -.03em; }
.project-info span { color: #9298a8; font-size: 13px; }
.project-featured .project-info span { color: rgba(255,255,255,.72); }

.now { padding-top: 120px; padding-bottom: 120px; }
.now-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; align-items: center; margin-top: 50px; padding: 70px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 24px 70px rgba(11,16,32,.07); }
.now-card h2 { margin: 0; font-size: clamp(45px, 5vw, 70px); line-height: 1.12; letter-spacing: -.055em; }
.now-status { display: flex; align-items: center; gap: 28px; }
.pulse { position: relative; flex: 0 0 auto; width: 70px; height: 70px; }
.pulse i { position: absolute; inset: 0; border: 1px solid var(--blue); border-radius: 50%; animation: pulse 2s ease-out infinite; }
.pulse i:nth-child(2) { inset: 18px; background: var(--blue); animation: none; box-shadow: 0 0 0 8px rgba(40,87,245,.08); }
.now-status small { display: block; margin-bottom: 8px; color: var(--muted); font: 10px "Courier New", monospace; letter-spacing: .12em; }
.now-status strong { display: block; font-size: 19px; }
.now-status p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.footer { padding: 0 max(7vw, calc((100vw - 1240px) / 2)); color: var(--white); background: var(--ink); }
.footer-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 180px; border-bottom: 1px solid rgba(255,255,255,.13); }
.footer-brand .brand-mark { color: var(--ink); background: var(--lime); }
.footer-main p { color: #9da3b1; font-size: 14px; }
.back-top { display: grid; justify-self: end; width: 47px; height: 47px; place-items: center; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; transition: color .2s ease, background .2s ease; }
.back-top:hover { color: var(--ink); background: var(--lime); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 96px; color: #aeb4c0; font: 10px "Courier New", monospace; letter-spacing: .06em; }
.footer-bottom > span:last-child { justify-self: end; }
.icp-record { display: flex; align-items: center; justify-self: center; flex-direction: column; gap: 5px; padding: 11px 24px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; text-align: center; background: rgba(255, 255, 255, .06); }
.icp-record a { color: var(--white); transition: color .2s ease, border-color .2s ease; }
.icp-record a:hover, .icp-record a:focus-visible { color: var(--lime); }
.icp-number { font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; font-weight: 750; letter-spacing: .02em; }
.icp-query { border-bottom: 1px solid rgba(200, 255, 53, .55); color: var(--lime) !important; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 11px; letter-spacing: .02em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { opacity: .6; transform: scale(.55); } 100% { opacity: 0; transform: scale(1.3); } }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 150px; }
  .hero-copy { position: relative; z-index: 5; }
  .hero-visual { min-height: 550px; margin-top: 30px; }
  .hero::before { width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 55px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-featured { grid-column: 1 / -1; }
  .now-card { grid-template-columns: 1fr; gap: 55px; padding: 55px; }
}

@media (max-width: 680px) {
  .site-header { top: 10px; width: calc(100% - 20px); min-height: 58px; padding: 8px 9px 8px 13px; border-radius: 14px; }
  .brand { font-size: 14px; }.brand-mark { width: 30px; height: 30px; }.nav-cta { padding: 9px 12px; }
  .hero { padding: 125px 20px 75px; }
  .hero h1 { font-size: clamp(58px, 18vw, 80px); }
  .hero-lead { margin-top: 28px; font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-visual { min-height: 420px; margin-left: -10px; margin-right: -10px; }
  .code-card { width: 96%; }
  .code-card pre { padding: 27px 17px 18px; font-size: 11px; }
  .orbit-one { width: 400px; height: 400px; }.orbit-two { width: 330px; height: 330px; }
  .tag-one { top: 0; right: -4px; }.tag-two { bottom: 0; left: 0; }.tag-three { display: none; }
  .hero-index { display: none; }
  .section { padding: 90px 20px; }
  .section-heading h2 { font-size: 44px; }
  .about-grid { margin-top: 48px; }
  .lead-quote { font-size: 20px; }
  .principles { grid-template-columns: 1fr; }
  .principles div { min-height: 95px; }
  .roadmap-head, .projects-head { align-items: flex-start; flex-direction: column; margin-top: 48px; }
  .roadmap-item { grid-template-columns: 54px 1fr; gap: 15px; padding: 25px 0; }
  .roadmap-item:hover { padding: 25px 10px; }
  .roadmap-stage { grid-column: 1 / -1; }
  .roadmap-state { grid-column: 2; }
  .project-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .project-card { min-height: 430px; }
  .now-card { padding: 35px 24px; }
  .now-card h2 { font-size: 44px; }
  .now-status { align-items: flex-start; flex-direction: column; }
  .footer { padding: 0 20px; }
  .footer-main { grid-template-columns: 1fr auto; padding: 38px 0; }
  .footer-main p { grid-column: 1 / -1; grid-row: 2; margin-bottom: 0; }
  .footer-bottom { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; text-align: center; }
  .footer-bottom > span, .footer-bottom > span:last-child, .icp-record { justify-self: center; }
}

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