:root {
  --bg: #0a0b0f;
  --bg2: #0e1016;
  --surface: #13161f;
  --surface2: #171b26;
  --line: #242a38;
  --line2: #2e3546;
  --text: #eceef4;
  --muted: #9aa2b4;
  --dim: #7e879b;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --green: #34e6b0;
  --gradient: linear-gradient(115deg, #8b5cff 0%, #5b8cff 45%, #22d3ee 100%);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
.brand {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -.02em;
  line-height: 1.08;
}

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 15, .72);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 700;
}

.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 14px #5b8cff;
}

.brand b {
  font-weight: 700;
}

.brand span:last-child {
  color: var(--muted);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn-primary {
  color: #08080c;
  background: var(--gradient);
  box-shadow: 0 8px 30px -8px rgba(91, 140, 255, .6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(91, 140, 255, .75);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line2);
  background: transparent;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: #414a61;
  background: var(--surface2);
}

nav .btn {
  padding: 10px 18px;
  font-size: .92rem;
}

.hero {
  position: relative;
  padding: 96px 0 92px;
  overflow: hidden;
  text-align: center;
}

.glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
}

.glow.a {
  top: -160px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: #5b4bd6;
  animation: float-one 14s ease-in-out infinite;
}

.glow.b {
  top: -60px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: #13818f;
  animation: float-two 17s ease-in-out infinite;
}

@keyframes float-one {
  50% { transform: translate(60px, 40px) scale(1.1); }
}

@keyframes float-two {
  50% { transform: translate(-50px, 60px) scale(1.08); }
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: .82rem;
  font-weight: 500;
}

.kicker .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
}

.hero .lead {
  max-width: 680px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.32rem);
}

.hero .cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: up .8s cubic-bezier(.2, .7, .2, 1) forwards;
}

.reveal.d1 { animation-delay: .05s; }
.reveal.d2 { animation-delay: .15s; }
.reveal.d3 { animation-delay: .28s; }
.reveal.d4 { animation-delay: .4s; }

@keyframes up {
  to {
    opacity: 1;
    transform: none;
  }
}

section {
  padding: 84px 0;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
}

.section-sub {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

.g3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.card {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--line2);
  background: var(--surface2);
}

.card .ic {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .18), rgba(34, 211, 238, .14));
  font-size: 1.35rem;
  font-weight: 700;
}

.card h3 {
  margin-bottom: 9px;
  font-size: 1.28rem;
  font-weight: 600;
}

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

.tag {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 11px;
  border: 1px solid rgba(34, 211, 238, .25);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, .1);
  font-size: .74rem;
  font-weight: 600;
}

.why {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px 40px;
  margin-top: 46px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-num {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line2);
  border-radius: 11px;
  background: var(--surface);
  font-size: 1.1rem;
  font-weight: 700;
}

.why-num span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.why-item h3 {
  margin-bottom: 5px;
  font-size: 1.12rem;
  font-weight: 600;
}

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

.project-stack {
  margin-top: 40px;
}

.show {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 46px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.show::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #5b4bd6;
  filter: blur(110px);
  opacity: .25;
}

.show-text,
.show-icon {
  position: relative;
  z-index: 1;
}

.show-icon {
  display: grid;
  place-items: center;
}

.show h3 {
  margin: 6px 0 14px;
  font-size: 2rem;
  font-weight: 700;
}

.show p {
  margin-bottom: 18px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 13px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface2);
  font-size: .8rem;
}

.app-shot {
  display: block;
  width: min(300px, 86%);
  border: 1px solid var(--line2);
  border-radius: 26px;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .78);
}

.project-grid {
  margin-top: 24px;
}

.contact {
  text-align: center;
}

.contact-box {
  position: relative;
  padding: 64px 32px;
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 24px;
  background: linear-gradient(160deg, var(--surface), var(--bg2));
}

.contact-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 50% 0%, rgba(91, 140, 255, .16), transparent);
}

.contact-box > * {
  position: relative;
  z-index: 1;
}

.contact h2 {
  margin-bottom: 14px;
}

.contact p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--muted);
}

.contact-channels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 30px auto 0;
  text-align: left;
}

.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px 18px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, .025);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.contact-channel:hover {
  border-color: rgba(74, 231, 255, .42);
  background: rgba(74, 231, 255, .055);
  transform: translateY(-2px);
}

.contact-channel span {
  color: var(--muted);
  font-size: .82rem;
}

.contact-channel strong {
  overflow-wrap: anywhere;
  font-size: .98rem;
}

footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: .9rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.foot nav {
  height: auto;
  gap: 20px;
}

.foot a {
  color: var(--muted);
}

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

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (max-width: 760px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding: 76px 0 70px;
  }

  nav .brand > span:last-child {
    display: none;
  }

  .show {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 34px;
    text-align: center;
  }

  .show-icon {
    order: -1;
  }

  .chips {
    justify-content: center;
  }

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

  .foot,
  .foot nav {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .wrap {
    padding: 0 18px;
  }

  nav .btn {
    padding: 9px 13px;
    font-size: .84rem;
  }

  .hero .cta {
    flex-direction: column;
  }

  .hero .cta .btn {
    justify-content: center;
    width: 100%;
  }

  .show {
    padding: 28px 22px;
  }

  .card {
    padding: 26px 22px;
  }

  .contact-box {
    padding: 50px 22px;
  }

  .contact-channels {
    grid-template-columns: 1fr;
  }

  .foot nav {
    flex-wrap: wrap;
  }
}

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

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