:root {
  --bg-deep: #0a0612;
  --bg-card: rgba(18, 12, 32, 0.55);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #f4f2ff;
  --muted: rgba(244, 242, 255, 0.68);
  --faint: rgba(244, 242, 255, 0.42);
  --accent: #8b5cf6;
  --accent-bright: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.45);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  line-height: 1.6;
}

/* Ambient background */
.bg-shell {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(139, 92, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(99, 102, 241, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(139, 92, 246, 0.15), transparent 45%),
    var(--bg-deep);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 1.25rem;
  z-index: 50;
  padding-inline: 1rem;
}

.nav-glass {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
  background: rgba(12, 8, 24, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(145deg, var(--accent-bright), #6d28d9);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), #7c3aed);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 36px rgba(167, 139, 250, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-drawer {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: rgba(10, 6, 18, 0.92);
    backdrop-filter: blur(16px);
    display: none;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  }

  .nav-glass.is-open .nav-drawer {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links a {
    padding: 0.65rem 1rem;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-drawer {
    display: contents;
  }

  .nav-glass {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 1rem;
  }

  .brand {
    grid-column: 1;
  }

  .nav-links {
    grid-column: 2;
    justify-self: center;
    margin: 0;
  }

  .nav-cta {
    grid-column: 3;
    justify-self: end;
    width: auto;
  }
}

/* Hero */
.hero {
  padding: 3rem 1rem 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.pill-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(139, 92, 246, 0.12);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.25rem;
  min-height: 320px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-stack {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem 0 0.5rem;
}

.mock-phone {
  width: 88px;
  height: 168px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.35), rgba(30, 20, 50, 0.9));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.mock-phone:nth-child(2) {
  width: 100px;
  height: 192px;
  transform: translateY(-12px);
  background: linear-gradient(165deg, rgba(167, 139, 250, 0.45), rgba(25, 15, 45, 0.95));
  border-color: rgba(167, 139, 250, 0.25);
}

.mock-phone:nth-child(3) {
  opacity: 0.85;
}

/* Sections */
section {
  padding: 4rem 1rem;
  scroll-margin-top: 6rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-lead {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.25);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

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

/* Contact */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-block {
    grid-template-columns: 1fr;
  }
}

.contact-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  padding: 1.75rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-list strong {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-list a {
  color: var(--accent-bright);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--stroke);
  color: var(--faint);
  font-size: 0.88rem;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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