:root {
  --ink: #0f1515;
  --paper: #eef5f6;
  --accent: #74c6cb;
  --lime: #d4e65a;
  --line: #cdd1c8;
  --muted: #596460;
  font-family: "Inter","Segoe UI","Noto Sans SC","Microsoft YaHei",sans-serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  position: relative;
}
.bg-orb {
  position: fixed; border-radius: 50%;
  z-index: 0; pointer-events: none;
  will-change: transform;
}
.orb1 {
  width: 600px; height: 600px;
  top: -120px; left: -150px;
  background: radial-gradient(circle, #74c6cb60 0%, #74c6cb20 40%, transparent 70%);
  animation: orb1 10s ease-in-out infinite alternate;
}
.orb2 {
  width: 500px; height: 500px;
  top: 80px; right: -100px;
  background: radial-gradient(circle, #74c6cb50 0%, #74c6cb15 40%, transparent 70%);
  animation: orb2 12s ease-in-out infinite alternate;
}
.orb3 {
  width: 700px; height: 700px;
  bottom: -150px; left: 30%;
  background: radial-gradient(circle, #74c6cb40 0%, #74c6cb12 40%, transparent 70%);
  animation: orb3 8s ease-in-out infinite alternate;
}
@keyframes orb1 {
  0% { transform: translate(0, 0) scale(1) }
  50% { transform: translate(100px, 60px) scale(1.12) }
  100% { transform: translate(50px, 140px) scale(.92) }
}
@keyframes orb2 {
  0% { transform: translate(0, 0) scale(1) }
  50% { transform: translate(-60px, 100px) scale(1.18) }
  100% { transform: translate(-100px, 30px) scale(.88) }
}
@keyframes orb3 {
  0% { transform: translate(0, 0) scale(1) }
  50% { transform: translate(50px, -60px) scale(1.15) }
  100% { transform: translate(-30px, -100px) scale(.92) }
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; outline: none }
a:focus { outline: none }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb {
  background: #cdd1c8; border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: #b0b5ac }
* { scrollbar-width: thin; scrollbar-color: #cdd1c8 transparent }

.nav {
  height: 76px; max-width: 1440px; margin: auto;
  padding: 0 36px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line);
  position: relative; z-index: 1;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -.03em;
  color: var(--accent)
}
.logo-img { width: 32px; height: 32px; border-radius: 6px; display: block; object-fit: contain }
.nav nav { display: flex; align-items: center; gap: 4px }
.nav nav a {
  padding: 6px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 500;
  transition: background .15s;
}
.nav nav a:hover { background: #74c6cb18 }
.nav nav a:active { opacity: .5 }

main { max-width: 1440px; margin: auto; position: relative; z-index: 1 }

.hero {
  min-height: 640px; padding: 80px 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; align-items: center;
}
.eyebrow {
  color: #3a4040; font-size: 11px; font-weight: 800;
  letter-spacing: .17em;
}
.hero h1 {
  font-size: clamp(40px,5vw,72px); line-height: 1.0;
  letter-spacing: -.05em; margin: 12px 0 0;
}
.hero h1 .l1 {
  display: block; font-size: .65em; font-weight: 500;
  letter-spacing: .04em; margin-bottom: 2px;
  color: #9aa3a0
}
.hero h1 em { display: block; font-style: normal; color: inherit }
.section h2, .stack-section h2 {
  font-size: clamp(36px,4.5vw,64px); line-height: .98;
  letter-spacing: -.06em; margin: 16px 0 22px;
}
.lead {
  font-size: 16px; line-height: 1.7; max-width: 500px; color: var(--muted);
}
.actions { display: flex; gap: 12px; margin-top: 30px }
.actions a {
  padding: 13px 20px; border-radius: 99px;
  font-weight: 700; font-size: 14px;
}
.primary { background: var(--ink); color: white }
.primary:hover { opacity: .85 }
.ghost { border: 1px solid var(--line) }
.ghost:hover { border-color: var(--ink) }

/* Terminal visual */
.visual { height: 480px; position: relative; overflow: hidden }
.shell-window {
  width: 100%; height: 100%; border-radius: 18px;
  background: #1a1e1e; box-shadow: 0 40px 80px #00000025;
  display: flex; flex-direction: column; overflow: hidden;
  position: relative;
}
.shell-window::before {
  content: ''; position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, #ffffff04 2px, #ffffff04 4px),
    radial-gradient(ellipse at 30% 20%, #74c6cb08 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, #74c6cb06 0%, transparent 50%);
  animation: scan 8s linear infinite;
}
@keyframes scan {
  0% { background-position: 0 0, 0 0, 0 0 }
  100% { background-position: 0 100%, 0 0, 0 0 }
}
.shell-head {
  height: 40px; background: #262b2b; display: flex;
  align-items: center; gap: 8px; padding: 0 16px;
  position: relative; z-index: 1;
}
.shell-head span { width: 11px; height: 11px; border-radius: 50% }
.shell-head span:nth-child(1) { background: #ff5f56 }
.shell-head span:nth-child(2) { background: #ffbd2e }
.shell-head span:nth-child(3) { background: #27c93f }
.shell-body {
  padding: 22px; font-family: "JetBrains Mono","Fira Code",monospace;
  font-size: 13px; line-height: 1.8; color: #c6d0ce;
  position: relative; z-index: 1;
}
.prompt { color: var(--lime) }
.output { color: #859994 }
.cursor {
  display: inline-block; width: 9px; height: 1.2em;
  background: var(--lime); vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: 0 } }

/* Sections */
.section, .stack-section { padding: 100px 36px }
.section h2 { font-size: 48px }

.cards {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 50px;
}
.cards article {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: 32px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: none;
  display: flex; flex-direction: column;
}
.cards article > span {
  display: block; margin-bottom: 12px;
  color: var(--accent); font-weight: 800; font-size: 28px;
  line-height: 1;
}
.cards article .card-btn {
  margin-top: auto; align-self: flex-end;
}
.cards article > span { color: var(--accent); font-weight: 800 }
.cards h3 { font-size: 22px; margin-top: 50px; margin-bottom: 10px }
.cards p, .stack-section p { color: var(--muted); line-height: 1.6; font-size: 15px }
.cards a {
  display: inline-block; margin-top: 14px; padding: 5px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--accent); border: 1px solid var(--accent);
  border-radius: 99px; transition: background .2s, color .2s;
}
.cards a:hover { background: var(--accent); color: white; text-decoration: none }

.stack-section {
  margin: 0 36px; padding: 70px 60px;
  background: #121a1a; color: white; border-radius: 28px;
  display: grid; grid-template-columns: .6fr 1.4fr; gap: 6vw;
}
.stack-section h2 { font-size: 42px; margin: 10px 0 }
.stack-section p { color: #94a29d }
.stack { display: grid; gap: 10px }
.stack div {
  padding: 18px 24px; border: 1px solid #ffffff20; border-radius: 14px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s, border-color .2s;
}
.stack div:hover { border-color: #ffffff40 }
.stack b { font-weight: 700; font-size: 13px }
.stack span { color: #8f9d98; font-size: 13px }
.stack div:last-child {
  background: #1f4045; border-color: #2b5f66;
}
.stack div:last-child span { color: #96d5d9 }

.about {
  padding: 60px 36px 100px;
  position: relative; z-index: 1;
}
.about .inner {
  max-width: 800px; margin: 0 auto;
}
.about h2 {
  font-size: clamp(32px,4vw,48px);
  letter-spacing: -.04em;
  margin: 10px 0 20px;
}
.about p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
  max-width: 640px;
}

footer {
  max-width: 1368px; margin: 0 auto; padding: 28px 0 40px;
  text-align: center; font-size: 13px; color: var(--muted);
  position: relative; z-index: 1;
  line-height: 2;
}
footer a:hover { color: var(--accent) }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr; padding: 0 36px;
    min-height: 50vh; display: flex; align-items: center;
  }
  .hero .hero-copy { width: 100% }
  .hero h1 { font-size: 48px }
  .hero h1 .l1 { font-size: 28px }
  .hero .lead { font-size: 15px }
  .visual { display: none }
  .cards { grid-template-columns: 1fr }
  .stack-section { grid-template-columns: 1fr; padding: 40px 28px }
  .stack div { flex-direction: column; align-items: start; gap: 4px }
  .nav nav { gap: 16px }
  .nav nav a { font-size: 13px; display: none }
  footer { text-align: center }
}

@media (max-width: 560px) {
  .nav, .hero, .section, .stack-section { padding-left: 20px; padding-right: 20px }
  .visual { height: 280px }
  .shell-body { font-size: 11px; padding: 14px }
  .stack-section { margin-left: 20px; margin-right: 20px }
}
