:root {
  --bg: #070b12;
  --bg-soft: #0c121c;
  --panel: #101925;
  --panel-strong: #111d2b;
  --line: rgba(119, 151, 177, 0.14);
  --line-bright: rgba(0, 220, 185, 0.3);
  --text: #e9f0f5;
  --muted: #91a4b5;
  --teal: #00ddb5;
  --teal-soft: #35f3ca;
  --blue: #16a9e5;
  --orange: #ff7351;
  --purple: #a877ff;
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 15%, rgba(0, 221, 181, 0.09), transparent 34%),
    radial-gradient(circle at 5% 38%, rgba(22, 169, 229, 0.05), transparent 30%);
}

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

p {
  margin: 0;
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at top, black 15%, transparent 68%);
}

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

.section {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  color: var(--teal);
  background: rgba(0, 221, 181, 0.07);
  font: 700 1rem/1 "Cascadia Code", Consolas, monospace;
}

.accent {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .nav-cta {
  padding: 13px 23px;
  border-radius: 8px;
  color: #061112;
  background: var(--teal);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  cursor: pointer;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--teal);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  padding: 76px 0 65px;
  align-items: center;
  gap: 55px;
  grid-template-columns: 0.93fr 1.07fr;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.pulse::before {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid var(--teal);
  border-radius: inherit;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.85; transform: scale(0.65); }
  100% { opacity: 0; transform: scale(1.8); }
}

.hero h1 {
  max-width: 560px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.3vw, 4.3rem);
  line-height: 1.08;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--teal-soft), #46e9e0);
  background-clip: text;
}

.hero-description {
  max-width: 530px;
  margin-bottom: 39px;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-description strong {
  color: var(--teal);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 54px;
}

.button {
  display: inline-flex;
  min-height: 51px;
  padding: 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: #071313;
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(0, 221, 181, 0.17);
}

.button.secondary {
  border: 1px solid var(--line-bright);
  color: var(--teal);
  background: rgba(0, 221, 181, 0.04);
}

.hero-stats {
  display: flex;
  margin: 0;
  gap: 42px;
}

.hero-stats div {
  position: relative;
  min-width: 91px;
}

.hero-stats div + div::before {
  position: absolute;
  top: 8px;
  left: -23px;
  width: 1px;
  height: 45px;
  content: "";
  background: var(--line);
}

.hero-stats dt {
  margin-bottom: 5px;
  color: var(--teal);
  font: 700 1.75rem/1.2 "Cascadia Code", Consolas, monospace;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-console {
  position: relative;
  padding: 44px 0 66px 35px;
}

.console-window {
  overflow: hidden;
  border: 1px solid rgba(119, 151, 177, 0.2);
  border-radius: 14px;
  background: #0b121c;
  box-shadow: var(--shadow);
}

.console-bar {
  display: flex;
  height: 51px;
  align-items: center;
  gap: 57px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(119, 151, 177, 0.15);
  color: #668092;
  font: 0.78rem "Cascadia Code", Consolas, monospace;
}

.dots {
  display: flex;
  gap: 8px;
}

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.dots i:nth-child(2) {
  background: #febc2e;
}

.dots i:nth-child(3) {
  background: #28c840;
}

.console-content {
  min-height: 385px;
  padding: 35px 38px 29px;
  color: #c8d8e2;
  font: 0.87rem/2.05 "Cascadia Code", "Fira Code", Consolas, monospace;
}

.comment { color: #576b7d; }
.keyword { color: #c792ea; }
.class-name { color: #facb66; }
.function { color: #57d2ff; }
.string { color: #9ee269; }
.indent { padding-left: 28px; }
.indent-2 { padding-left: 58px; }

.terminal-command {
  margin-top: 29px;
}

.prompt,
.success {
  color: var(--teal);
}

.success {
  font-size: 0.84rem;
}

.floating-card {
  position: absolute;
  display: flex;
  padding: 13px 17px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  color: #dde8ee;
  background: #101a26;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
  font-size: 0.84rem;
  font-weight: 650;
}

.card-python {
  right: 31px;
  bottom: 27px;
}

.card-php {
  bottom: -29px;
  left: 0;
}

.tech-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 7px;
  color: #43d7ff;
  background: rgba(22, 169, 229, 0.13);
  font: 700 0.92rem Consolas, monospace;
}

.tech-icon.php {
  color: #bc9cff;
  background: rgba(168, 119, 255, 0.14);
  font-size: 0.76rem;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 43px;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.14;
}

.heading-copy {
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 66px;
  align-items: start;
}

.about-panel {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--bg-soft);
}

.about-panel strong {
  color: var(--text);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-tags span {
  padding: 9px 14px;
  border: 1px solid rgba(0, 221, 181, 0.15);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(0, 221, 181, 0.04);
  font-size: 0.84rem;
}

.projects,
.knowledge {
  border-block: 1px solid rgba(119, 151, 177, 0.07);
  background: rgba(12, 18, 28, 0.44);
}

.project-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(2, 1fr);
}

.project-card {
  position: relative;
  min-height: 420px;
  padding: 31px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.project-card.featured {
  border-color: rgba(0, 221, 181, 0.24);
  box-shadow: inset 0 1px 0 rgba(0, 221, 181, 0.08);
}

.project-top {
  display: flex;
  margin-bottom: 34px;
  justify-content: space-between;
  align-items: center;
}

.project-index,
.stack,
.card-number {
  color: var(--teal);
  font: 700 0.75rem/1 "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.08em;
}

.status {
  padding: 8px 12px;
  border-radius: 99px;
  color: var(--teal);
  background: rgba(0, 221, 181, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
}

.status.future {
  color: var(--blue);
  background: rgba(22, 169, 229, 0.1);
}

.project-symbol {
  position: absolute;
  top: 85px;
  right: 34px;
  width: 67px;
  height: 67px;
  opacity: 0.85;
}

.network span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(0, 221, 181, 0.4);
}

.network span:nth-child(1) { left: 27px; }
.network span:nth-child(2) { top: 38px; left: 4px; }
.network span:nth-child(3) { top: 38px; right: 4px; }
.network span:nth-child(4) {
  top: 14px;
  left: 22px;
  width: 24px;
  height: 34px;
  border: solid rgba(0, 221, 181, 0.4);
  border-width: 1px 1px 0;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg);
  box-shadow: none;
}

.forum::before,
.forum::after {
  position: absolute;
  content: "";
  border: 2px solid var(--blue);
  border-radius: 8px;
}

.forum::before {
  inset: 4px 12px 26px 0;
}

.forum::after {
  inset: 27px 0 4px 21px;
}

.stack {
  margin-bottom: 14px;
}

.php-stack {
  color: var(--blue);
}

.project-card h3 {
  margin-bottom: 15px;
  font-size: 1.62rem;
}

.project-card > p:not(.stack) {
  max-width: 430px;
  color: var(--muted);
  font-size: 0.93rem;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 29px 0 0;
  list-style: none;
}

.project-features li {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #adbdc8;
  background: rgba(7, 11, 18, 0.28);
  font-size: 0.78rem;
}

.roadmap .section-heading {
  margin-inline: auto;
  text-align: center;
}

.roadmap .eyebrow {
  justify-content: center;
}

.timeline {
  position: relative;
  display: grid;
  gap: 21px;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 103px;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--line-bright) 16%, var(--line-bright) 84%, transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  padding: 25px 29px 25px 0;
  align-items: center;
  gap: 48px;
  grid-template-columns: 80px 1fr;
  border: 1px solid transparent;
  border-radius: 15px;
}

.timeline-item::before {
  position: absolute;
  left: 98px;
  width: 11px;
  height: 11px;
  content: "";
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
}

.timeline-item.active {
  border-color: rgba(0, 221, 181, 0.2);
  background: rgba(0, 221, 181, 0.04);
}

.timeline-item.active::before {
  background: var(--teal);
  box-shadow: 0 0 18px var(--teal);
}

.timeline-date {
  color: var(--teal);
  font: 700 0.8rem "Cascadia Code", Consolas, monospace;
  text-align: right;
}

.timeline-item h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.89rem;
}

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

.knowledge-card {
  padding: 29px 26px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.knowledge-card:hover {
  border-color: rgba(0, 221, 181, 0.24);
  transform: translateY(-3px);
}

.knowledge-card .card-number {
  display: block;
  margin-bottom: 22px;
}

.knowledge-card h3 {
  margin-bottom: 11px;
  font-size: 1.08rem;
}

.knowledge-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.cta {
  padding-top: 95px;
  padding-bottom: 95px;
}

.cta-panel {
  padding: 70px 30px;
  border: 1px solid rgba(0, 221, 181, 0.18);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 110%, rgba(0, 221, 181, 0.13), transparent 42%),
    var(--bg-soft);
}

.cta-panel .eyebrow {
  justify-content: center;
}

.cta-panel h2 {
  max-width: 620px;
  margin: 0 auto 17px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cta-panel p:not(.eyebrow) {
  max-width: 630px;
  margin: 0 auto 35px;
  color: var(--muted);
}

.footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.83rem;
}

.footer .brand {
  font-size: 1rem;
}

.footer .brand-mark {
  width: 39px;
  height: 36px;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 180ms; }
.delay-3 { transition-delay: 250ms; }

@media (max-width: 1000px) {
  .nav-links {
    gap: 20px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: 70px;
    align-items: stretch;
  }

  .hero-console {
    max-width: 670px;
    width: 100%;
    margin-inline: auto;
  }

  .about {
    display: block;
  }

  .about .section-heading {
    margin-bottom: 30px;
  }

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

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .section {
    padding: 65px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 6px;
  }

  .nav-links .nav-cta {
    padding: 14px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12.2vw, 3rem);
  }

  .hero-stats {
    gap: 30px;
  }

  .hero-stats div + div::before {
    left: -16px;
  }

  .hero-console {
    padding: 0 0 67px;
  }

  .console-content {
    min-height: auto;
    padding: 25px 18px 28px;
    overflow-x: auto;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .console-bar {
    gap: 22px;
    padding-inline: 13px;
    font-size: 0.69rem;
  }

  .card-python {
    right: 0;
    bottom: 25px;
  }

  .card-php {
    bottom: -22px;
  }

  .floating-card {
    padding: 10px 12px;
    font-size: 0.73rem;
  }

  .tech-icon {
    width: 34px;
    height: 34px;
  }

  .project-grid,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 0;
  }

  .timeline::before {
    left: 13px;
  }

  .timeline-item {
    display: block;
    padding: 22px 20px 22px 42px;
  }

  .timeline-item::before {
    left: 7px;
    top: 29px;
  }

  .timeline-date {
    display: block;
    margin-bottom: 8px;
    text-align: left;
  }

  .cta-panel {
    padding: 48px 21px;
  }

  .footer-content {
    flex-direction: column;
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
