:root {
  --bg: #020d0b;
  --bg-2: #071d19;
  --panel: rgba(6, 20, 17, 0.82);
  --panel-strong: rgba(8, 24, 21, 0.96);
  --panel-soft: rgba(10, 30, 26, 0.74);
  --line: rgba(94, 234, 212, 0.26);
  --text: #ecfffd;
  --muted: #c1d8d4;
  --accent: #6ef2d6;
  --accent-strong: #39d99f;
  --accent-alt: #a7f3d0;
  --shadow: rgba(2, 8, 7, 0.68);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(57, 217, 159, 0.18), transparent 25%),
    radial-gradient(circle at 90% 20%, rgba(110, 242, 214, 0.12), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(18, 73, 62, 0.55), transparent 35%),
    linear-gradient(135deg, #010b09 0%, #071d19 30%, #061611 100%);
  color: var(--text);
  overflow-x: hidden;
}

#network-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 92%);
  margin: 32px auto 48px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: rgba(7, 18, 15, 0.76);
  border: 1px solid rgba(110, 242, 214, 0.25);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(2, 8, 7, 0.28), 0 0 0 1px rgba(110, 242, 214, 0.06);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110, 242, 214, 0.16), rgba(57, 217, 159, 0.2));
  border: 1px solid rgba(110, 242, 214, 0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 18px rgba(57, 217, 159, 0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.content {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 23, 20, 0.92), rgba(8, 20, 17, 0.9));
  border: 1px solid rgba(110, 242, 214, 0.2);
  border-radius: 22px;
  box-shadow: 0 28px 72px rgba(2, 10, 8, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 28px 30px;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 242, 214, 0.4), transparent);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  gap: 24px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 34px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker,
.eyebrow {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.28);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.85rem, 4vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -0.065em;
  color: #f3fffb;
  text-shadow: 0 0 24px rgba(110, 242, 214, 0.08);
}

.lead {
  max-width: 750px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: #d9fff2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.badge-live {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.42);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 18px;
  width: 100%;
  color: var(--muted);
}

.contact-links a,
.contact-links span {
  color: var(--accent-alt);
  text-decoration: none;
  font-weight: 600;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-aside {
  display: grid;
  gap: 16px;
}

.metric-card {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(16, 49, 39, 0.42));
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 12px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 242, 214, 0.45);
  box-shadow: 0 16px 26px rgba(57, 217, 159, 0.08);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.metric-card strong {
  font-size: 1.6rem;
  color: #eafffb;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  color: #f5fffd;
  letter-spacing: -0.04em;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
}

.story-copy p {
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.8;
}

.story-points {
  display: grid;
  gap: 12px;
}

.point-item {
  background: linear-gradient(180deg, rgba(10, 26, 22, 0.7), rgba(7, 19, 17, 0.9));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.point-item:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.42);
}

.point-item strong {
  display: block;
  margin-bottom: 6px;
  color: #eafffb;
}

.point-item span {
  color: var(--muted);
  line-height: 1.6;
}

.timeline {
  display: grid;
  gap: 18px;
}

.job-card {
  background: rgba(8, 25, 22, 0.8);
  border: 1px solid rgba(94, 234, 212, 0.17);
  border-radius: 18px;
  padding: 20px 20px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 242, 214, 0.35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(110, 242, 214, 0.04);
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.job-head h3 {
  margin: 0 0 6px;
  color: #f2fff9;
  font-size: 1.2rem;
  letter-spacing: 0;
  text-transform: none;
}

.company-line {
  color: var(--accent);
  font-weight: 600;
}

.date-badge {
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.2);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  white-space: nowrap;
}

.job-card ul {
  margin: 0;
  padding-left: 18px;
}

.job-card li {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cred-box {
  background: rgba(8, 25, 22, 0.8);
  border: 1px solid rgba(94, 234, 212, 0.17);
  border-radius: 18px;
  padding: 20px;
}

.cred-box h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cred-box ul {
  margin: 0;
  padding-left: 18px;
}

.cred-box li {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.cred-box strong {
  color: #f4fffb;
}

.terminal-window {
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 18px;
  overflow: hidden;
  background: #071711;
  box-shadow: 0 16px 34px rgba(3, 12, 10, 0.6), 0 0 0 1px rgba(110, 242, 214, 0.08), 0 0 18px rgba(57, 217, 159, 0.08);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: rgba(94, 234, 212, 0.06);
  border-bottom: 1px solid rgba(94, 234, 212, 0.15);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.terminal-body {
  padding: 18px 18px 20px;
  font-family: 'Consolas', 'Courier New', monospace;
  background: linear-gradient(180deg, rgba(7, 17, 15, 0.96), rgba(4, 15, 12, 1));
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  white-space: nowrap;
  overflow: hidden;
}

.prompt {
  color: var(--accent);
  font-weight: 700;
}

.typed-text {
  color: #adf7d9;
  font-weight: 600;
}

.cursor {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-output {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.terminal-output div {
  padding-left: 10px;
  border-left: 2px solid rgba(94, 234, 212, 0.22);
  color: #dffef4;
}

.terminal-output .success {
  color: #9ef1c8;
}

.terminal-output .info {
  color: #c0f4e9;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  background: linear-gradient(180deg, rgba(8, 25, 22, 0.82), rgba(7, 18, 16, 0.9));
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 18px;
  padding: 18px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 242, 214, 0.4);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
}

.contact-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-card a,
.contact-card p {
  margin: 0;
  color: #f4fffb;
  text-decoration: none;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .story-grid,
  .contact-grid,
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(94%, 100%);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 10px 14px;
  }

  .panel {
    padding: 22px 18px;
  }

  .job-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .contact-links a,
  .contact-links span {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-block {
    width: 100%;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px 10px;
  }

  .main-nav a {
    font-size: 0.68rem;
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .lead {
    font-size: 0.98rem;
  }

  .panel {
    padding: 18px 14px;
  }

  .badge {
    font-size: 0.64rem;
    padding: 6px 8px;
  }

  .metric-card strong {
    font-size: 1.25rem;
  }

  .terminal-line {
    display: block;
    white-space: normal;
    line-height: 1.6;
  }

  .typed-text {
    display: inline;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .terminal-output div {
    font-size: 0.82rem;
  }

  .contact-card {
    padding: 14px 16px;
  }
}
