:root {
  --bg: #06101d;
  --bg-soft: #0a1727;
  --panel: rgba(12, 28, 46, 0.72);
  --panel-strong: rgba(16, 35, 56, 0.92);
  --text: #f6fbff;
  --muted: #94a7bb;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #38e3c1;
  --accent-2: #4f8cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 227, 193, 0.08), transparent 28rem),
    radial-gradient(circle at 86% 6%, rgba(79, 140, 255, 0.10), transparent 30rem),
    var(--bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.orb {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
}

.orb-one {
  top: 7rem;
  left: -8rem;
  background: var(--accent);
}

.orb-two {
  right: -8rem;
  top: 16rem;
  background: var(--accent-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 24px;
  background: rgba(6, 16, 29, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1rem;
}

.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #041019;
  background: linear-gradient(135deg, var(--accent), #8df5de);
  box-shadow: 0 10px 28px rgba(56, 227, 193, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a:not(.nav-cta) {
  color: #b4c1cf;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links > a:not(.nav-cta):hover {
  color: white;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 12px;
  color: #03131a;
  background: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(56, 227, 193, 0.20);
}

.menu-toggle {
  display: none;
  border: 0;
  padding: 9px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px 0;
  border-radius: 10px;
  background: white;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
  padding: 88px 0 96px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #86a0b6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

h1 {
  margin: 22px 0;
  max-width: 760px;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.97;
  letter-spacing: -0.065em;
  font-weight: 800;
}

h1 span {
  color: transparent;
  background: linear-gradient(100deg, #ffffff 10%, var(--accent) 75%, #7ab6ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-text {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 19px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.93rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
  color: #041019;
  background: var(--accent);
  box-shadow: 0 18px 36px rgba(56, 227, 193, 0.14);
}

.button-primary:hover {
  box-shadow: 0 20px 45px rgba(56, 227, 193, 0.22);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  color: #dfe8f1;
}

.button-secondary:hover {
  border-color: rgba(255,255,255,0.18);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 42px;
}

.hero-meta div:not(.meta-divider) {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero-meta strong {
  font-size: 1.25rem;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-divider {
  width: 1px;
  height: 23px;
  background: var(--line);
}

.hero-visual {
  position: relative;
}

.visual-shell {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(24,44,68,0.9), rgba(7,18,31,0.92));
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.visual-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(56, 227, 193, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(79, 140, 255, 0.08), transparent 36%);
}

.visual-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 52px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(3,11,20,0.38);
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d8192;
}

.visual-label {
  margin-left: 8px;
  color: #6f8497;
  font-size: 0.72rem;
}

.visual-content {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  min-height: 418px;
}

.visual-sidebar {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px 17px;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}

.side-line {
  height: 9px;
  width: 40px;
  border-radius: 10px;
  background: #24384d;
}

.side-line.active {
  width: 43px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(56,227,193,0.25);
}

.visual-main {
  padding: 35px;
}

.mini-chip {
  width: 68px;
  height: 22px;
  border-radius: 999px;
  background: rgba(56,227,193,0.15);
  border: 1px solid rgba(56,227,193,0.18);
}

.mini-title {
  width: 70%;
  height: 26px;
  margin-top: 18px;
  border-radius: 9px;
  background: #e7f2fb;
  opacity: 0.92;
}

.mini-subtitle {
  width: 54%;
  height: 10px;
  margin-top: 12px;
  border-radius: 8px;
  background: #456077;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 33px;
}

.mini-cards span {
  height: 82px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 15px;
  background: rgba(255,255,255,0.04);
}

.mini-cards span:first-child {
  background: linear-gradient(145deg, rgba(56,227,193,0.17), rgba(255,255,255,0.03));
}

.mini-panel {
  height: 150px;
  margin-top: 15px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}

.visual-glow {
  position: absolute;
  width: 230px;
  height: 230px;
  right: -80px;
  bottom: -90px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(85px);
  opacity: 0.12;
}

.projects-section {
  padding: 30px 0 110px;
  scroll-margin-top: 100px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.section-heading h2,
.about-panel h2 {
  margin: 9px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-heading p,
.about-panel p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.project-card {
  position: relative;
  min-height: 275px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(16,34,53,0.84), rgba(8,21,36,0.78));
  box-shadow: 0 12px 38px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -65% 30%;
  height: 170px;
  background: radial-gradient(circle, rgba(56,227,193,0.12), transparent 68%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56,227,193,0.24);
  box-shadow: 0 24px 48px rgba(0,0,0,0.20);
}

.project-card:hover::after {
  opacity: 1;
}

.project-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 80% 10%, rgba(56,227,193,0.13), transparent 35%),
    linear-gradient(145deg, rgba(18,46,61,0.95), rgba(8,22,35,0.9));
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #dffef7;
  font-weight: 800;
  background: rgba(56,227,193,0.10);
  border: 1px solid rgba(56,227,193,0.17);
}

.card-arrow {
  color: #71879c;
  font-size: 1.15rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-card:hover .card-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.card-body {
  position: relative;
  z-index: 1;
}

.tag {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #9bb0c3;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.tag.beta {
  color: #a8c2ff;
  background: rgba(79,140,255,0.08);
  border-color: rgba(79,140,255,0.13);
}

.tag.not {
  color: #ad000c;
  background: rgba(154, 0, 23, 0.301);
  border-color: rgba(255, 79, 155, 0.13);
}

.tag.new {
  color: #38e3c1;
  background: rgba(0, 138, 111, 0.08);
  border-color: rgba(56,227,193,0.13);
}

.project-card h3 {
  margin: 0 0 9px;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.project-card p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.about-section {
  padding: 0 0 110px;
  scroll-margin-top: 100px;
}

.about-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr auto;
  gap: 35px;
  align-items: end;
  padding: 38px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0% 0%, rgba(56,227,193,0.09), transparent 35%),
    var(--panel);
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.text-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(3,10,18,0.55);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 25px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p,
.back-top {
  margin: 0;
  color: #71879c;
  font-size: 0.8rem;
}

.back-top:hover {
  color: white;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 700px;
  }

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

  .project-card.featured {
    grid-column: span 2;
  }

  .about-panel {
    grid-template-columns: 1fr 1fr;
  }

  .about-panel .text-link {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 13px 16px;
  }

  .navbar {
    min-height: 56px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(8, 20, 34, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }

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

  .nav-links > a {
    padding: 12px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 3px;
  }

  main {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding: 68px 0 70px;
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 4.4rem);
  }

  .hero-text {
    font-size: 0.99rem;
  }

  .hero-visual {
    width: 100%;
  }

  .visual-shell {
    min-height: 350px;
    border-radius: 22px;
  }

  .visual-content {
    min-height: 298px;
    grid-template-columns: 58px 1fr;
  }

  .visual-main {
    padding: 23px;
  }

  .mini-cards {
    margin-top: 24px;
  }

  .mini-cards span {
    height: 62px;
  }

  .mini-panel {
    height: 105px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

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

  .project-card,
  .project-card.featured {
    grid-column: span 1;
    min-height: 245px;
  }

  .about-panel {
    grid-template-columns: 1fr;
    padding: 27px;
    gap: 22px;
  }

  .about-panel .text-link {
    grid-column: span 1;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
