:root {
  --bg: #071019;
  --panel: rgba(10, 19, 31, 0.74);
  --panel-strong: rgba(9, 17, 28, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f7fb;
  --muted: #a4b4c6;
  --brand: #74d0ff;
  --brand-strong: #2a86ff;
  --accent: #9df1cf;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  --radius: 26px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #06101a 0%, #09131f 45%, #071019 100%);
  min-height: 100vh;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 90%);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header,
.hero,
.section,
.page-main,
.site-footer {
  animation: fade-up 0.55s ease both;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0px;
}

.brand img {
  width: 75px;
  height: 75px;
  flex: 0 0 75px;
}

.brand span {
  display: grid;
  gap: 4px;
}

.brand strong,
.site-nav a,
h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
}

.brand strong {
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
  min-height: 68vh;
  padding: 28px 0 28px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 18, 0.94) 0%, rgba(5, 11, 18, 0.8) 38%, rgba(5, 11, 18, 0.48) 68%, rgba(5, 11, 18, 0.72) 100%),
    url("../images/hero-bg.png") center right / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
}

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

.hero-single {
  grid-template-columns: 1fr;
}

.hero-minimal {
  min-height: 68vh;
}

.hero-copy {
  padding: 44px 0 44px 42px;
  max-width: 760px;
}

.eyebrow,
.mini-label,
.service-index {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.55rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-text,
.page-hero p,
.tile p,
.service-card p,
.feature-panel p,
.contact-card p,
.site-footer {
  color: var(--muted);
  line-height: 1.65;
}

.section-copy {
  max-width: 44rem;
}

.hero-text {
  max-width: 29rem;
  margin: 16px 0 0;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #071019;
  box-shadow: 0 12px 28px rgba(42, 134, 255, 0.22);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.statement-card,
.tile,
.service-card,
.feature-panel,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

.section,
.page-main {
  padding-bottom: 44px;
}

.compact-section {
  padding-top: 6px;
}

.section-intro {
  margin-bottom: 18px;
}

.section-intro h2,
.statement-card h2,
.service-card h2,
.feature-panel h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.1;
}

.service-tiles,
.service-stack-grid,
.split-feature,
.contact-simple {
  display: grid;
  gap: 14px;
}

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

.tile,
.service-card,
.feature-panel,
.contact-card {
  padding: 20px;
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.statement-band {
  padding-top: 2px;
}

.statement-card {
  padding: 24px 28px;
}

.page-hero {
  padding: 20px 0 18px;
}

.page-hero.narrow {
  max-width: 700px;
}

.page-hero h1 {
  max-width: 13ch;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

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

.service-card {
  min-height: 180px;
}

.service-card-highlight {
  background:
    radial-gradient(circle at top right, rgba(116, 208, 255, 0.2), transparent 38%),
    var(--panel);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 700;
}

.sdk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.sdk-summary,
.sdk-code,
.sdk-checklist,
.sdk-metric-card,
.sdk-link-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

.sdk-summary,
.sdk-code,
.sdk-checklist,
.sdk-link-card {
  padding: 22px;
}

.sdk-metrics,
.sdk-grid,
.sdk-links {
  display: grid;
  gap: 14px;
}

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

.sdk-metric-card {
  padding: 18px 20px;
}

.sdk-metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
}

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

.sdk-summary ul,
.sdk-checklist ol,
.sdk-link-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.sdk-summary li + li,
.sdk-checklist li + li,
.sdk-link-card li + li {
  margin-top: 8px;
}

.sdk-code pre {
  margin: 12px 0 0;
  padding: 18px;
  border-radius: 20px;
  overflow-x: auto;
  background: rgba(3, 8, 14, 0.82);
  color: #dff4ff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
}

.sdk-code p,
.sdk-summary p,
.sdk-link-card p {
  color: var(--muted);
}

.sdk-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sdk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 700;
  font-size: 0.84rem;
}

.sdk-link-card a {
  color: var(--brand);
}

.split-feature,
.contact-simple,
.contact-layout-simple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-layout-simple {
  display: grid;
  gap: 14px;
}

.contact-form-simple {
  display: grid;
  gap: 12px;
}

.contact-form-simple label {
  color: var(--text);
  font-weight: 600;
}

.contact-form-simple textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.contact-form-simple textarea::placeholder {
  color: var(--muted);
}

.legal-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

.legal-hero {
  padding-bottom: 14px;
}

.legal-card {
  max-width: 860px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 28px;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.legal-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-card a {
  color: var(--brand);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .service-tiles,
  .service-stack-grid,
  .split-feature,
  .contact-simple,
  .contact-layout-simple,
  .sdk-grid,
  .sdk-hero,
  .sdk-metrics {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 11, 18, 0.9) 0%, rgba(5, 11, 18, 0.76) 48%, rgba(5, 11, 18, 0.9) 100%),
      url("../images/hero-bg.png") center / cover no-repeat;
  }

  .hero-copy {
    padding: 34px 26px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .site-header {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    background: rgba(255, 255, 255, 0.03);
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-text {
    max-width: 100%;
  }

  .brand img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand strong {
    font-size: 1.1rem;
  }

  .brand small {
    font-size: 0.56rem;
  }
}
