:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --hero-bg: #020617;
  --terminal: #0f172a;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --secondary: #0f172a;
  --accent: #06b6d4;
  --accent-soft: #cffafe;
  --accent-violet: #7c3aed;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dde5f0;
  --border-dark: rgba(148, 163, 184, 0.24);
  --code-accent: #22d3ee;
  --success: #0f766e;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 14px 32px rgba(29, 78, 216, 0.12);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(6, 182, 212, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #eef5ff 42%, #f8fafc 100%);
  color: var(--text);
  font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section-pad {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 229, 240, 0.9);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.24);
}

.brand strong {
  display: block;
  color: var(--secondary);
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.site-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--primary);
  background: var(--surface-soft);
}

.hero {
  padding-top: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.78fr);
  gap: 28px;
  align-items: stretch;
}

.hero-grid > * {
  min-width: 0;
}

.console-panel,
.stack-panel,
.report-shell {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.console-panel {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 34px;
  color: #e5edf8;
  background:
    radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.26), transparent 26%),
    radial-gradient(circle at 15% 84%, rgba(124, 58, 237, 0.20), transparent 30%),
    linear-gradient(135deg, var(--hero-bg) 0%, #0b1224 52%, #111827 100%);
}

.console-panel::before,
.stack-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.14) 1px, transparent 1px);
  background-size: 36px 36px;
}

.console-panel > *,
.stack-panel > * {
  position: relative;
  z-index: 1;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
}

.terminal-bar span:nth-child(2) {
  background: #f59e0b;
}

.terminal-bar span:nth-child(3) {
  background: #22c55e;
}

.terminal-lines {
  display: grid;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 38px;
  padding: 16px 18px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.terminal-lines code {
  color: var(--code-accent);
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(0.76rem, 1.8vw, 0.92rem);
  white-space: normal;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 6.2vw, 5.55rem);
  line-height: 0.88;
  font-weight: 800;
}

.hero h2 {
  max-width: 720px;
  margin: 22px 0 12px;
  color: #eaf6ff;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.16;
}

.hero-tagline {
  max-width: 720px;
  margin: 0 0 18px;
  color: #bdeefd;
  font-weight: 700;
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
}

.hero-copy strong {
  color: #fff;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.identity-grid span {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.56);
  color: #dbeafe;
  overflow-wrap: anywhere;
}

.identity-grid b {
  display: block;
  margin-bottom: 4px;
  color: #67e8f9;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.stack-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 84% 18%, rgba(6, 182, 212, 0.20), transparent 24%),
    linear-gradient(180deg, #101827 0%, #0f172a 100%);
  color: #e2e8f0;
}

.chip-visual {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.22) 0 2px, transparent 3px),
    linear-gradient(145deg, rgba(30, 64, 175, 0.22), rgba(15, 23, 42, 0.85));
  background-size: 22px 22px, auto;
  box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.08);
}

.chip-core {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  border: 5px solid #60a5fa;
  border-radius: 24px;
  background: var(--terminal);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 0 0 9px rgba(6, 182, 212, 0.12), 0 20px 44px rgba(0, 0, 0, 0.28);
}

.pin {
  position: absolute;
  background: linear-gradient(90deg, var(--accent), #93c5fd);
  border-radius: 999px;
}

.pin-a,
.pin-b {
  width: 35%;
  height: 6px;
  left: 6%;
}

.pin-c,
.pin-d {
  width: 6px;
  height: 35%;
  top: 6%;
}

.pin-a {
  top: 36%;
}

.pin-b {
  bottom: 36%;
}

.pin-c {
  left: 36%;
}

.pin-d {
  right: 36%;
}

.stack-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.stack-head h3 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
}

.stack-head span {
  color: #93c5fd;
  font-size: 0.9rem;
  font-weight: 700;
}

.module-stack {
  display: grid;
  gap: 10px;
}

.stack-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
}

.stack-item b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
}

.stack-item span {
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 24px;
  align-items: end;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.profile-card {
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.profile-card .card-icon,
.module-card .card-icon,
.report-card .card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--primary);
}

.profile-card h3,
.module-card h3,
.report-card h3 {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 1.08rem;
  line-height: 1.35;
}

.profile-card p,
.module-card p,
.report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.skill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.skill-chip,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.modules-section {
  background:
    linear-gradient(180deg, rgba(221, 229, 240, 0.25), transparent 22%),
    transparent;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 365px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.module-card.is-highlight {
  border-color: rgba(6, 182, 212, 0.55);
  background:
    linear-gradient(180deg, rgba(207, 250, 254, 0.42), rgba(255, 255, 255, 0.94) 42%),
    var(--surface);
}

.module-code {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--terminal);
  color: #67e8f9;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.module-card h3 {
  font-size: 1.12rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.module-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  color: var(--secondary);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
}

.button:hover {
  border-color: rgba(29, 78, 216, 0.4);
  color: var(--primary);
  transform: translateY(-1px);
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.20);
}

.button-primary:hover {
  color: #fff;
}

.report-shell {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.92)),
    var(--surface);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.report-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-grid p {
  margin: 0;
}

.footer-grid strong {
  color: var(--secondary);
}

.detail-dialog {
  width: min(940px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text);
}

.detail-dialog::backdrop {
  background: rgba(2, 6, 23, 0.66);
  backdrop-filter: blur(6px);
}

.dialog-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--secondary);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.dialog-card h2 {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--secondary);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.detail-note {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
}

.detail-note h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.detail-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .console-panel {
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section-pad {
    padding: 58px 0;
  }

  .nav-shell {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    overflow: hidden;
  }

  .site-nav a {
    flex: 1 1 0;
    padding: 9px 8px;
    text-align: center;
    white-space: nowrap;
  }

  .console-panel,
  .stack-panel,
  .report-shell,
  .dialog-card {
    padding: 22px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9.2vw, 2.65rem);
  }

  .identity-grid,
  .profile-grid,
  .modules-grid,
  .report-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .module-card {
    min-height: auto;
  }

  .module-actions,
  .button {
    width: 100%;
  }

  .chip-visual {
    width: min(100%, 250px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover {
    transform: none;
  }
}
