:root {
  --bg: #0a0c11;
  --bg-soft: #11141b;
  --card: #161a24;
  --card-hover: #1b2029;
  --border: #262b38;
  --text: #eef0f5;
  --text-dim: #9aa1b2;
  --text-faint: #6b7285;
  --accent: #8b6bff;
  --accent-2: #35e0c9;
  --accent-grad: linear-gradient(120deg, #8b6bff 0%, #35e0c9 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(139,107,255,0.16), transparent 60%),
    radial-gradient(500px 350px at -5% 15%, rgba(53,224,201,0.10), transparent 60%);
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0d0f15;
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .node {
  width: 26px;
  height: 26px;
  flex: none;
}
nav.main {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav.main a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-dim);
  transition: color .15s ease, background .15s ease;
}
nav.main a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
nav.main a.active { color: var(--text); background: var(--card); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 96px;
  padding: 40px 0;
  color: var(--text-faint);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent-grad);
  color: #08090d;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--card);
}
.btn-ghost:hover { background: var(--card-hover); }

/* Hero */
.hero {
  padding: 88px 0 64px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(53,224,201,0.08);
  border: 1px solid rgba(53,224,201,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 780px;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 0 34px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-grid, .about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.about-grid { grid-template-columns: 0.85fr 1.15fr; }
.hero-photo-wrap {
  display: flex;
  justify-content: center;
}
.hero-photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  padding: 4px;
  background: var(--accent-grad);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 260px; margin: 0 auto; }
}

/* Sections */
section { padding: 64px 0; }
section.tight { padding: 32px 0; }
h2.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
p.section-lead {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 640px;
  margin: 0 0 40px;
}

/* Proof strip */
.proof {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.proof strong { font-weight: 700; }
.proof .num { color: var(--accent-2); font-weight: 800; }
.proof-link {
  font-weight: 600;
  color: var(--accent-2);
  white-space: nowrap;
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(139,107,255,0.12);
  border: 1px solid rgba(139,107,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 20px; height: 20px; color: var(--accent); }
.card h3 { font-size: 18px; margin: 0 0 8px; }
.card p { color: var(--text-dim); font-size: 15px; margin: 0; }
.card .gets {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-faint);
}
.card .gets b { color: var(--text-dim); font-weight: 600; }
.card a.link-arrow { color: var(--accent-2); font-weight: 600; font-size: 14px; }

/* Portfolio case */
.case {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border-radius: 20px;
  padding: 40px;
}
.case .tag {
  display: inline-block;
  font-size: 13px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.case h3 { font-size: 26px; margin: 0 0 12px; }
.case p.desc { color: var(--text-dim); font-size: 16px; max-width: 700px; }
.chan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.chan {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chan .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  flex: none;
}

/* Blog */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.post-card:hover { background: var(--card-hover); }
.post-card .cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.post-card .body { padding: 22px 26px 26px; }
.post-card .date { color: var(--text-faint); font-size: 13px; margin-bottom: 10px; }
.post-card h3 { font-size: 19px; margin: 0 0 10px; }
.post-card p { color: var(--text-dim); font-size: 15px; margin: 0; }

article.post {
  max-width: 720px;
  margin: 0 auto;
}
article.post .cover {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 32px;
  display: block;
}
article.post .date { color: var(--text-faint); font-size: 14px; margin-bottom: 14px; }
article.post h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 28px; }
article.post h2 { font-size: 22px; margin: 40px 0 14px; }
article.post p { color: var(--text-dim); font-size: 17px; margin: 0 0 18px; }
article.post ul { color: var(--text-dim); font-size: 17px; padding-left: 22px; }
article.post li { margin-bottom: 8px; }
article.post strong { color: var(--text); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(53,224,201,0.1);
  border: 1px solid rgba(53,224,201,0.3);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon svg { width: 22px; height: 22px; color: var(--accent-2); }
.contact-card h3 { margin: 0; font-size: 18px; }
.contact-card p { margin: 0; color: var(--text-dim); font-size: 14px; }

@media (max-width: 780px) {
  nav.main { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open nav.main {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px;
    gap: 2px;
  }
  body.nav-open nav.main a { padding: 12px 14px; }
}
