:root {
  --bg: #050814;
  --bg-soft: #0b1224;
  --panel: rgba(12, 18, 34, 0.82);
  --panel-strong: rgba(15, 24, 45, 0.94);
  --line: rgba(132, 188, 255, 0.14);
  --text: #eff4ff;
  --muted: #95a5c5;
  --accent: #58c8ff;
  --accent-2: #65ffd5;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --nav-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 18% 18%, rgba(88, 200, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(101, 255, 213, 0.1), transparent 20%),
    linear-gradient(180deg, #04070f 0%, #07101d 48%, #040812 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 100%);
}

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

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

.site-shell {
  position: relative;
  overflow-x: hidden;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.section-tight-top {
  padding-top: 1.25rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 0 0;
}

.navbar {
  width: min(1120px, calc(100% - 2rem));
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 9, 18, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(88, 200, 255, 0.2), rgba(101, 255, 213, 0.16));
  box-shadow: inset 0 0 0 1px rgba(132, 188, 255, 0.18);
}

.brand-logo {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.04;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.24rem auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--accent-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.hero h1,
.page-header h1,
.section-heading h2,
.card-body h3,
.simple-card h3 {
  margin: 0 0 0.75rem;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6rem);
}

.page-header h1,
.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.hero-subtitle {
  margin: 0 0 0.85rem;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-intro,
.page-header p,
.card-body p,
.simple-card p {
  color: var(--muted);
}

.hero-minimal {
  min-height: calc(90vh - var(--nav-height));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
}

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

.hero-intro {
  max-width: 36rem;
  margin: 0 0 1.85rem;
}

.hero-actions,
.action-row,
.page-header-actions,
.footer-links,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.88rem 1.18rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  color: #06111d;
  background: linear-gradient(135deg, var(--accent-2), #d3ff75);
  box-shadow: 0 14px 34px rgba(101, 255, 213, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}

.hero-display {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.hero-spotlight {
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(88, 200, 255, 0.24), transparent 52%),
    radial-gradient(circle at 60% 40%, rgba(101, 255, 213, 0.16), transparent 32%);
  filter: blur(22px);
}

.hero-core-card,
.hero-side-card,
.project-card,
.simple-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-core-card {
  width: min(100%, 30rem);
  padding: 1rem;
  z-index: 2;
}

.hero-side-card {
  position: absolute;
  width: 10.5rem;
  padding: 0.75rem;
  z-index: 1;
}

.card-left {
  left: 0;
  bottom: 3rem;
  transform: rotate(-10deg);
}

.card-right {
  right: 0;
  top: 4rem;
  transform: rotate(10deg);
}

.page-header {
  padding-top: 4.4rem;
  padding-bottom: 1.25rem;
}

.page-header-copy {
  max-width: 720px;
}

.page-header-actions {
  margin-top: 1.1rem;
}

.section-heading {
  max-width: 560px;
  margin-bottom: 1.8rem;
}

.project-grid,
.demo-grid,
.simple-grid {
  display: grid;
  gap: 1.35rem;
}

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

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

.project-card {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-card:hover,
.simple-card:hover,
.hero-core-card:hover,
.hero-side-card:hover {
  transform: translateY(-6px);
  border-color: rgba(101, 255, 213, 0.2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.card-media {
  min-height: 270px;
  padding: 1rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 200, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(15, 24, 45, 0.98), rgba(11, 17, 31, 1));
  border-bottom: 1px solid rgba(132, 188, 255, 0.08);
}

.card-body,
.simple-card {
  padding: 1.3rem;
}

.card-type {
  margin: 0 0 0.45rem;
  color: var(--accent-2);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.tag-row {
  margin: 0.95rem 0 1.05rem;
}

.tag-row span,
.screen-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(132, 188, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.87rem;
}

.mockup-browser,
.mockup-phone,
.mockup-video {
  width: 100%;
  border: 1px solid rgba(132, 188, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.media-shell {
  max-width: 360px;
}

.browser-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(132, 188, 255, 0.1);
}

.browser-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.browser-bar span:nth-child(1) {
  background: #ff7f70;
}

.browser-bar span:nth-child(2) {
  background: #ffd96f;
}

.browser-bar span:nth-child(3) {
  background: #61ffd7;
}

.browser-canvas,
.phone-screen,
.mockup-video {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.demo-video {
  width: 100%;
  max-width: 360px;
  display: block;
  border: 1px solid rgba(132, 188, 255, 0.14);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.demo-video-frame {
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.browser-canvas {
  padding: 1.1rem;
  background:
    radial-gradient(circle at top, rgba(88, 200, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(15, 24, 45, 0.98), rgba(10, 16, 31, 1));
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  width: 100%;
  margin-top: 1rem;
}

.preview-grid span {
  display: block;
  min-height: 2.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(132, 188, 255, 0.08);
}

.mockup-phone {
  max-width: 14rem;
  padding: 0.5rem;
  border-radius: 30px;
}

.phone-notch {
  width: 42%;
  height: 1.1rem;
  margin: 0.2rem auto 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.phone-screen {
  padding: 1rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 20%, rgba(101, 255, 213, 0.14), transparent 26%),
    radial-gradient(circle at 72% 24%, rgba(88, 200, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(14, 22, 42, 0.98), rgba(9, 15, 28, 1));
}

.phone-accent-alt .phone-screen {
  background:
    radial-gradient(circle at 24% 20%, rgba(88, 200, 255, 0.16), transparent 26%),
    radial-gradient(circle at 72% 24%, rgba(101, 255, 213, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(14, 22, 42, 0.98), rgba(9, 15, 28, 1));
}

.mockup-video {
  background:
    radial-gradient(circle at top, rgba(88, 200, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(14, 22, 42, 0.98), rgba(9, 15, 28, 1));
}

.project-initials {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(88, 200, 255, 0.16), rgba(101, 255, 213, 0.16));
  border: 1px solid rgba(132, 188, 255, 0.12);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.project-logo,
.demo-logo {
  width: min(100%, 6.5rem);
  max-height: 6.5rem;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}

.project-logo-large {
  width: min(100%, 7.25rem);
  max-height: 7.25rem;
}

.project-brand-logo {
  display: block;
  width: 100%;
  max-width: 22rem;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.contact-card {
  max-width: 760px;
  margin: 0 auto;
}

.contact-list {
  display: grid;
  gap: 1.4rem;
}

.inline-link,
.footer-links a {
  color: var(--accent);
  font-weight: 700;
}

.inline-link:hover,
.footer-links a:hover {
  color: var(--accent-2);
}

.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2.35rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
}

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

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

@media (max-width: 980px) {
  .hero-minimal,
  .project-grid,
  .demo-grid,
  .simple-grid {
    grid-template-columns: 1fr;
  }

  .hero-display {
    min-height: 460px;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-height: 76px;
  }

  .topbar {
    padding-top: 0.75rem;
  }

  .navbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    display: none;
    width: 100%;
    padding-top: 0.45rem;
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-side-card {
    width: 9rem;
  }
}

@media (max-width: 600px) {
  .section,
  .navbar,
  .footer {
    width: min(100% - 1.1rem, 100%);
  }

  .section {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .hero-display {
    min-height: 400px;
  }

  .hero-side-card {
    position: absolute;
    width: 8rem;
  }

  .card-left {
    left: -0.2rem;
    bottom: 1rem;
  }

  .card-right {
    right: -0.2rem;
    top: 2rem;
  }

  .footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }

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