:root {
  --bg: #05070c;
  --bg-soft: #0b1018;
  --panel: rgba(13, 18, 27, 0.78);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: rgba(228, 235, 245, 0.7);
  --accent: #ff8a2a;
  --accent-2: #6e89ff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 138, 42, 0.18), transparent 20%),
    radial-gradient(circle at 80% 12%, rgba(110, 137, 255, 0.18), transparent 20%),
    radial-gradient(circle at 50% 82%, rgba(255,255,255,0.06), transparent 28%),
    linear-gradient(180deg, #04060b 0%, #060912 40%, #070c15 100%);
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  z-index: 60;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(9, 13, 20, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

main { padding-top: 96px; }
.section,
.hero-sticky {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.scroll-section {
  min-height: 170vh;
  display: flex;
  align-items: stretch;
}

.hero-sticky {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  position: sticky;
  top: 96px;
}

.hero-copy,
.device-card,
.card,
.project-card,
.step-card,
.cta-card {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  border-radius: 34px;
  padding: 38px;
}

.eyebrow,
.section-head span,
.cta-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 12px;
  background: linear-gradient(90deg, #ffffff, #a9bbff 55%, #ffbf8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p,
.card p,
.project-copy p,
.step-card p,
.cta-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  color: #081018;
  background: linear-gradient(135deg, #ffffff, #dfe8ff 55%, #ffbf8f);
}

.btn-ghost {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.hero-stage {
  position: relative;
  min-height: 620px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.7;
}

.orb-a {
  width: 220px;
  height: 220px;
  background: rgba(255,138,42,0.35);
  left: 2%;
  top: 10%;
}

.orb-b {
  width: 260px;
  height: 260px;
  background: rgba(110,137,255,0.3);
  right: 2%;
  bottom: 8%;
}

.device-card {
  width: min(100%, 540px);
  border-radius: 38px;
  padding: 24px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.device-topline {
  width: 120px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  margin: 0 auto 18px;
}

.device-screen {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a111b, #0f1725);
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 420px;
  padding: 18px;
}

.device-stack {
  position: relative;
  height: 100%;
  min-height: 384px;
}

.device-panel {
  position: absolute;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.36);
  background: #0d1420;
}

.device-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-main {
  inset: 0;
}

.panel-side {
  width: 180px;
  height: 120px;
  right: -18px;
}

.panel-side-a { top: 34px; transform: rotate(8deg) translateZ(40px); }
.panel-side-b { bottom: 32px; transform: rotate(-8deg) translateZ(40px); }

.floating-tag {
  position: absolute;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.floating-tag-a { left: -10px; bottom: 60px; }
.floating-tag-b { right: 12px; top: -12px; }

.section {
  padding: 70px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  margin: 18px 0 0;
  letter-spacing: -0.04em;
}

.grid.two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.card {
  border-radius: 28px;
  padding: 28px;
}

.profile-card {
  display: grid;
  gap: 18px;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(180deg, #0b111b, #0f1724);
}

.profile-card h3,
.project-copy h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

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

.project-card {
  border-radius: 26px;
  overflow: hidden;
}

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

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: linear-gradient(180deg, #0b111b, #0f1724);
}

.project-copy {
  padding: 22px;
}

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

.step-card {
  border-radius: 24px;
  padding: 24px;
}

.step-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,138,42,0.18), rgba(110,137,255,0.2));
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 800;
  margin-bottom: 18px;
}

.cta-card {
  border-radius: 30px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.cta-card h2 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.03;
}

@media (max-width: 1024px) {
  .topbar {
    padding: 14px 16px;
  }

  nav {
    display: none;
  }

  .hero-sticky,
  .grid.two-col,
  .timeline,
  .projects-grid,
  .cta-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .scroll-section {
    min-height: auto;
  }

  .hero-sticky {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .hero-stage {
    min-height: 520px;
  }

  .project-card.wide {
    grid-column: span 1;
  }

  .cta-card {
    align-items: start;
  }
}

@media (max-width: 720px) {
  main {
    padding-top: 86px;
  }

  .hero-copy,
  .card,
  .step-card,
  .project-copy,
  .cta-card,
  .device-card {
    padding: 20px;
  }

  .device-screen {
    min-height: 320px;
  }

  .device-stack {
    min-height: 290px;
  }

  .panel-side {
    width: 122px;
    height: 84px;
    right: -8px;
  }

  .floating-tag {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .floating-tag-a {
    left: 2px;
    bottom: 8px;
  }

  .floating-tag-b {
    right: 6px;
    top: 6px;
  }

  .project-card img {
    height: 210px;
  }
}
