:root {
  --bg: #060606;
  --bg-2: #0f0f10;
  --surface: #131416ee;
  --surface-strong: #17181b;
  --text: #f1f3f5;
  --muted: #b4bac2;
  --line: #2f3238;
  --primary: #c6ccd2;
  --secondary: #f0f3f7;
  --ink: #edf1f6;
  --shadow: 0 30px 54px -34px rgba(0, 0, 0, 0.88);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, var(--bg) 0%, #0a0a0a 56%, var(--bg-2) 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--ink);
}

.wrap {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
  opacity: 0.42;
}

.orb-sun {
  background: radial-gradient(circle at 34% 34%, #62666b, #62666b00 70%);
  top: -9rem;
  left: -7rem;
}

.orb-sea {
  background: radial-gradient(circle at 40% 30%, #9da4ac, #9da4ac00 72%);
  right: -10rem;
  top: 4rem;
}

.orb-sky {
  background: radial-gradient(circle at 50% 50%, #777d85, #777d8500 72%);
  right: 18%;
  bottom: -15rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: #090909cf;
  border-bottom: 1px solid #30343b77;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.4rem;
}

.logo {
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f7f9fc;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: #f4f7fb;
}

main {
  padding: 3rem 0 4rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-family: "Sora", sans-serif;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 4.3rem);
}

h2 {
  font-size: clamp(1.55rem, 1.2vw + 1.1rem, 2.3rem);
}

h3 {
  font-size: 1.15rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.card,
.metric-card,
.flow-card {
  border-radius: 1.05rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  background: linear-gradient(145deg, #15171aeb, #101113e0);
  padding: 1.9rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #d5dae1;
}

.lead {
  margin: 0.95rem 0 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 0.78rem;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.08rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(125deg, #5d636b, #aeb4bb);
  color: #050607;
  box-shadow: 0 18px 34px -22px rgba(160, 168, 176, 0.62);
}

.btn-secondary {
  background: linear-gradient(125deg, #8d949d, #edf1f5);
  color: #08090a;
  box-shadow: 0 18px 34px -22px rgba(165, 173, 182, 0.58);
}

.quick-facts {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-facts li {
  background: #1a1d21;
  border: 1px solid #3a3f46;
  padding: 0.36rem 0.66rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #d8dde4;
}

.hero-panel {
  background: linear-gradient(150deg, #191c20 0%, #111316 100%);
  padding: 1.55rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, #717880, #71788000 70%);
  top: -3.5rem;
  right: -2.8rem;
  opacity: 0.7;
}

.panel-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: #c4cad2;
}

.hero-panel h2 {
  margin-top: 0.55rem;
}

.hero-panel p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.tech-stack {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-stack span {
  border-radius: 999px;
  border: 1px solid #3d434b;
  background: #202328c9;
  color: #d3d9e0;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.34rem 0.62rem;
}

.panel-link {
  margin-top: 1.1rem;
  display: inline-flex;
  font-weight: 700;
  text-decoration: none;
  color: #dbe0e7;
}

.section {
  margin-top: 3.05rem;
}

.section-head p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 48rem;
}

.section-head p a {
  display: inline-flex;
  margin-left: 0.45rem;
  color: #e6ebf2;
  font-weight: 700;
  text-decoration: none;
}

.section-head code {
  border: 1px solid #3d434b;
  background: #202328c9;
  color: #e3e7ee;
  border-radius: 0.35rem;
  padding: 0.05rem 0.35rem;
}

.profile-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  padding: 1.2rem;
}

.card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.card a {
  display: inline-flex;
  margin-top: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  color: #dde3ea;
}

.feature-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
}

.card-strong {
  background: linear-gradient(135deg, #191b1f 0%, #121417 100%);
}

.check-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.check-list li + li {
  margin-top: 0.5rem;
}

.link-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.link-row a {
  text-decoration: none;
  color: #dce1e8;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card {
  background: var(--surface-strong);
  padding: 1rem 1.05rem;
}

.metric-value {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: #f0f3f7;
  font-size: 1.6rem;
  font-weight: 800;
}

.metric-label {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.flow-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-card {
  background: #1a1c20;
  padding: 1.05rem;
}

.flow-card span {
  display: inline-flex;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  color: #f1f4f8;
}

.flow-card h3 {
  margin-top: 0.35rem;
}

.flow-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.project-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.area-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.area-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.area-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.area-tags {
  margin-top: 0.65rem;
  color: #dfe4eb;
  font-size: 0.9rem;
  font-weight: 600;
}

.area-links {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.area-links a {
  text-decoration: none;
  border: 1px solid #3d434b;
  background: #202328c9;
  border-radius: 999px;
  color: #d7dde4;
  padding: 0.24rem 0.58rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.component-code-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.code-card {
  background: #121417;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.code-card h3 {
  margin-bottom: 0.65rem;
}

.code-card pre {
  margin: 0;
  border: 1px solid #31353b;
  border-radius: 0.78rem;
  background: #0b0c0e;
  overflow-x: auto;
  padding: 0.85rem;
}

.code-card code {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  color: #d8dee7;
  font-size: 0.83rem;
  line-height: 1.45;
}

.site-footer {
  border-top: 1px solid #2b2e35;
  background: #090a0b;
  padding: 1rem 0;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.footer-links a {
  text-decoration: none;
  color: #e2e7ee;
  font-weight: 700;
}

.archive-layout {
  padding: 2.25rem 0 3.5rem;
}

.archive-head {
  margin-bottom: 1.1rem;
}

.archive-head p {
  margin: 0.5rem 0 0;
  max-width: 48rem;
  color: var(--muted);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.archive-grid a {
  margin-top: 0.5rem;
}

.articles-layout {
  padding: 2.25rem 0 3.5rem;
}

.articles-head p {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  color: var(--muted);
}

.articles-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.article-card h3 {
  font-size: 1.05rem;
}

.article-meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.article-card a {
  display: inline-flex;
  margin-top: 0.72rem;
  text-decoration: none;
  font-weight: 700;
  color: #f1f4f8;
}

.metrics-row {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.metric-item {
  border: 1px solid #3d434b;
  background: #202328c9;
  border-radius: 999px;
  color: #d7dde4;
  padding: 0.26rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero,
  .feature-grid,
  .component-code-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .archive-grid,
  .articles-grid,
  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nav-shell {
    min-height: 4rem;
  }

  main {
    padding-top: 2.1rem;
  }

  .profile-grid,
  .metric-grid,
  .flow-grid,
  .project-grid,
  .archive-grid,
  .articles-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    padding: 1.2rem;
  }
}
