:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #9ca7ba;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #59f0ff;
  --mint: #57f29a;
  --violet: #a78bfa;
  --pink: #ff6bcb;
  --amber: #f8c14a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(89, 240, 255, 0.18), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(167, 139, 250, 0.18), transparent 30%),
    radial-gradient(circle at 68% 78%, rgba(87, 242, 154, 0.12), transparent 34%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

button {
  font: inherit;
}

.cursor-glow {
  position: fixed;
  width: 460px;
  height: 460px;
  left: var(--cursor-x, 50%);
  top: var(--cursor-y, 20%);
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(89, 240, 255, 0.15), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 28px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 9, 15, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
}

.brand,
.nav,
.header-cta {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding: 0 10px;
  font-weight: 900;
}

.brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.nav {
  gap: 4px;
}

.nav a,
.header-cta {
  min-height: 42px;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: var(--panel);
}

.header-cta {
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.hero,
.bento-section,
.apps-section,
.stack-section,
.workflow-section,
.contact-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  padding: clamp(62px, 9vw, 112px) 0 62px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(3.3rem, 8.2vw, 7.8rem);
  line-height: 0.89;
  letter-spacing: -0.05em;
}

h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 5vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.bento-card p,
.stack-grid p,
.workflow-list p,
.contact-section p,
.contact-panel p,
.feature-app p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 700px;
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
}

.hero-actions,
.filter-bar,
.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin: 30px 0;
}

.primary-button,
.secondary-button,
.copy-button,
.filter-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  color: #061018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 18px 60px rgba(89, 240, 255, 0.2);
}

.secondary-button,
.copy-button,
.filter-button {
  color: var(--text);
  background: var(--panel);
}

.secondary-button:hover,
.copy-button:hover,
.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(89, 240, 255, 0.55);
  background: rgba(89, 240, 255, 0.12);
}

.cred-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
}

.cred-strip div,
.bento-card,
.feature-app,
.app-grid a,
.stack-grid article,
.workflow-list div,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cred-strip div {
  min-height: 108px;
  padding: 18px;
  border-radius: 18px;
}

.cred-strip strong {
  display: block;
  color: var(--mint);
  font-size: 2.3rem;
  line-height: 1;
}

.cred-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.hero-stage {
  position: relative;
  min-height: 650px;
}

.device-stack {
  position: sticky;
  top: 110px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(100%, 390px);
  min-height: 640px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 42px;
  background: linear-gradient(145deg, #1e2636, #05070c 68%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.58);
}

.phone-bar {
  width: 88px;
  height: 8px;
  margin: 4px auto 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.app-screen {
  min-height: 572px;
  padding: 20px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 8%, rgba(89, 240, 255, 0.24), transparent 34%),
    radial-gradient(circle at 92% 20%, rgba(255, 107, 203, 0.18), transparent 34%),
    #0c111c;
}

.screen-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.screen-top img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.screen-top strong,
.screen-top span,
.release-meter span,
.release-meter strong {
  display: block;
}

.screen-top span,
.release-meter span,
.app-screen p {
  color: var(--muted);
}

.release-meter {
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.release-meter strong {
  margin: 6px 0 12px;
  font-size: 1.7rem;
}

.release-meter div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.release-meter i {
  width: 88%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
}

.screen-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-pill {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.preview-pill.is-active {
  color: #061018;
  border-color: transparent;
  background: var(--mint);
}

.app-screen p {
  min-height: 92px;
  margin: 16px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.floating-card {
  position: absolute;
  width: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.floating-card span,
.bento-card span,
.feature-app span,
.app-grid span,
.stack-grid span,
.workflow-list span {
  display: block;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-card strong {
  display: block;
  margin-top: 6px;
}

.card-one {
  left: 0;
  top: 86px;
}

.card-two {
  right: 0;
  bottom: 80px;
}

.logo-rail {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.rail-track {
  width: max-content;
  display: flex;
  gap: 18px;
  padding: 18px 0;
  animation: rail 24s linear infinite;
}

.rail-track span {
  min-width: max-content;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 900;
}

@keyframes rail {
  from { transform: translateX(0); }
  to { transform: translateX(-45%); }
}

.bento-section,
.apps-section,
.stack-section,
.workflow-section,
.contact-section {
  padding: clamp(76px, 10vw, 126px) 0;
}

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

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}

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

.bento-card.large {
  grid-row: span 2;
}

.bento-card.accent {
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.bento-card.accent span {
  color: rgba(6, 16, 24, 0.65);
}

.bento-card.accent h3 {
  font-size: 2rem;
}

.featured-apps,
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.featured-apps {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

.feature-app,
.stack-grid article,
.workflow-list div {
  padding: 24px;
  border-radius: 24px;
}

.feature-app {
  min-height: 250px;
  background:
    radial-gradient(circle at top right, rgba(89, 240, 255, 0.22), transparent 38%),
    var(--panel);
}

.feature-app strong {
  display: block;
  margin: 26px 0 12px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.app-grid a {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 20px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.app-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 240, 255, 0.55);
  background: var(--panel-strong);
}

.app-grid a.is-hidden {
  display: none;
}

.app-grid strong {
  display: block;
  font-size: 1.08rem;
}

.app-grid em {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.stack-grid article span {
  color: var(--pink);
  font-size: 1rem;
}

.workflow-list {
  display: grid;
  gap: 14px;
}

.workflow-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
}

.workflow-list p {
  margin: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 490px);
  gap: 30px;
  align-items: center;
}

.contact-panel {
  padding: 24px;
  border-radius: 24px;
}

.contact-panel p {
  width: 100%;
  margin: 8px 0 0;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 34px 0 44px;
  color: var(--muted);
}

.footer a {
  color: var(--cyan);
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: 280px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(7, 9, 15, 0.9);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
  }

  .device-stack {
    position: relative;
    top: auto;
  }

  .bento-grid,
  .featured-apps,
  .stack-grid {
    grid-template-columns: 1fr 1fr;
  }

  .app-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-cta {
    width: 100%;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .cred-strip,
  .bento-grid,
  .featured-apps,
  .stack-grid,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .split-heading {
    align-items: start;
    flex-direction: column;
  }

  .workflow-list div {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .phone {
    min-height: auto;
  }

  .app-screen {
    min-height: 520px;
  }

  .footer {
    flex-direction: column;
  }
}
