:root {
  --background: hsl(221 39% 7%);
  --foreground: hsl(210 40% 98%);
  --card: hsl(222 32% 11%);
  --primary: hsl(259 44% 56%);
  --primary-strong: hsl(259 44% 62%);
  --secondary: hsl(222 28% 15%);
  --muted: hsl(222 25% 16%);
  --muted-foreground: hsl(215 18% 70%);
  --border: hsl(222 28% 19%);
  --card-border: hsl(222 28% 19% / 0.85);
  --shadow-glow: 0 25px 70px -40px hsl(259 44% 56% / 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
}

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

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

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, hsl(259 44% 56% / 0.12), transparent 35%),
    radial-gradient(circle at 80% 10%, hsl(274 42% 62% / 0.12), transparent 30%),
    radial-gradient(circle at 50% 80%, hsl(259 44% 56% / 0.08), transparent 30%),
    var(--background);
}

.hero-border,
.section-border,
.section-muted,
.site-footer {
  border-top: 1px solid hsl(222 28% 19% / 0.6);
}

.hero-border {
  border-top: 0;
  border-bottom: 1px solid hsl(222 28% 19% / 0.6);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  position: absolute;
}

.container {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 24px;
}

.hero {
  position: relative;
}

.hero-container {
  padding-bottom: 112px;
  padding-top: 96px;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.brand-logo {
  height: 56px;
  width: auto;
}

.brand-wordmark {
  background: linear-gradient(90deg, #fff, #fff, hsl(215 18% 60%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-grid,
.stack-grid,
.workflow-header,
.footer-grid {
  align-items: center;
  display: grid;
  gap: 48px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eyebrow,
.pill,
.workflow-pill,
.badge,
.tag {
  border: 1px solid hsl(222 28% 19% / 0.6);
  border-radius: 999px;
}

.eyebrow {
  align-items: center;
  background: hsl(222 32% 11% / 0.6);
  color: var(--muted-foreground);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  text-transform: uppercase;
  width: fit-content;
}

.hero-title,
.section-copy h2,
.section-copy h3,
.contact-card h3 {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}

.hero-title {
  color: hsl(210 40% 98% / 0.7);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 600;
}

.hero-summary,
.section-copy p,
.solution-card p,
.phase-card p,
.contact-card p,
.policy-copy,
.feature-label,
.stack-label,
.footer-grid {
  color: var(--muted-foreground);
}

.hero-summary {
  font-size: 1.125rem;
  margin: 0;
  max-width: 42rem;
}

.cta-row,
.pill-row,
.tag-row,
.stack-tags,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 10px;
  padding: 13px 18px;
  transition: var(--transition);
}

.button:hover,
.policy-link:hover,
.solution-card:hover,
.phase-card:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 24px hsl(259 44% 56% / 0.3);
  color: white;
}

.button-ghost {
  color: hsl(210 40% 98% / 0.92);
}

.button-ghost:hover {
  color: white;
}

.pill,
.workflow-pill {
  align-items: center;
  background: hsl(222 32% 11% / 0.6);
  color: var(--muted-foreground);
  display: inline-flex;
  font-size: 0.95rem;
  gap: 8px;
  padding: 10px 14px;
}

.icon {
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.icon-inline {
  vertical-align: middle;
}

.icon-arrow {
  color: currentColor;
}

.card {
  background: hsl(222 32% 11% / 0.72);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.card-feature,
.contact-card,
.stack-card,
.policies-card {
  padding: 32px;
}

.card-feature {
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  position: relative;
}

.card-glow {
  background: linear-gradient(145deg, hsl(259 44% 56% / 0.08), transparent 55%);
  inset: 0;
  opacity: 0.6;
  position: absolute;
}

.card-content {
  position: relative;
}

.feature-header {
  align-items: center;
  display: flex;
  gap: 14px;
}

.feature-icon,
.solution-icon,
.contact-icon,
.policy-icon {
  align-items: center;
  background: hsl(259 44% 56% / 0.1);
  border-radius: 999px;
  color: var(--primary);
  display: inline-flex;
  justify-content: center;
}

.feature-icon,
.contact-icon {
  height: 42px;
  width: 42px;
}

.solution-icon {
  border-radius: 14px;
  height: 48px;
  padding: 11px;
  width: 48px;
}

.policy-icon {
  flex-shrink: 0;
  height: 40px;
  width: 40px;
}

.feature-label,
.stack-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin: 0 0 2px;
  text-transform: uppercase;
}

.feature-title,
.feature-stack-copy,
.policy-title {
  color: var(--foreground);
  font-weight: 700;
  margin: 0;
}

.feature-grid,
.workflow-grid,
.solutions-grid,
.policies-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.feature-item {
  align-items: center;
  background: hsl(221 39% 7% / 0.6);
  border: 1px solid hsl(222 28% 19% / 0.6);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}

.dot {
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 0 6px hsl(259 44% 56% / 0.12);
  display: inline-block;
  height: 8px;
  width: 8px;
}

.feature-stack {
  background: hsl(221 39% 7% / 0.6);
  border: 1px solid hsl(222 28% 19% / 0.6);
  border-radius: 14px;
  margin-top: 24px;
  padding: 16px;
}

.section {
  padding: 80px 0;
}

.section-muted {
  background: hsl(222 32% 11% / 0.2);
}

.section-tight {
  padding-top: 64px;
}

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

.section-copy.compact {
  max-width: none;
}

.section-copy h2,
.section-copy h3,
.contact-card h3 {
  color: hsl(210 40% 98% / 0.8);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-top: 12px;
}

.section-copy p,
.stack-grid p,
.contact-card p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.badge {
  background: hsl(221 39% 7% / 0.6);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.solutions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 48px;
}

.solution-card,
.phase-card {
  height: 100%;
  padding: 32px;
  transition: var(--transition);
}

.solution-card:hover,
.phase-card:hover,
.policy-link:hover {
  border-color: hsl(259 44% 56% / 0.5);
}

.solution-card:hover {
  box-shadow: 0 0 50px -35px hsl(259 44% 56%);
}

.solution-heading {
  align-items: center;
  display: flex;
  gap: 14px;
}

.solution-card h3,
.phase-card h4,
.stack-grid h3,
.policies-card h3 {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}

.solution-card h3 {
  font-size: 1.34rem;
}

.solution-card p,
.phase-card p {
  margin: 18px 0 0;
}

.tag {
  background: hsl(221 39% 7% / 0.6);
  color: var(--muted-foreground);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 12px;
}

.tag-row {
  margin-top: 20px;
}

.stack-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.tag-large {
  font-size: 0.95rem;
  padding: 10px 14px;
}

.workflow-header {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}

.phase-head {
  align-items: center;
  color: var(--primary);
  display: flex;
  font-size: 0.95rem;
  font-weight: 700;
  justify-content: space-between;
}

.phase-bar {
  background: hsl(259 44% 56% / 0.2);
  border-radius: 999px;
  height: 8px;
  width: 40px;
}

.phase-card h4 {
  font-size: 1.32rem;
  margin-top: 18px;
}

.contact-card {
  box-shadow: 0 0 60px -40px hsl(259 44% 56%);
  text-align: center;
}

.contact-card > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
}

.contact-card h3 {
  margin-top: 18px;
}

.contact-actions {
  justify-content: center;
  margin-top: 24px;
}

.policies-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.policy-link {
  align-items: center;
  background: hsl(221 39% 7% / 0.6);
  border: 1px solid hsl(222 28% 19% / 0.6);
  border-radius: 16px;
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  transition: var(--transition);
}

.policy-copy {
  margin: 2px 0 0;
}

.policy-arrow {
  color: var(--muted-foreground);
  margin-left: auto;
}

.site-footer {
  padding: 40px 0;
}

.footer-grid {
  font-size: 0.95rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
}

.footer-brand,
.footer-place {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.footer-brand {
  color: var(--foreground);
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  font-weight: 600;
}

.footer-logo {
  height: 24px;
  width: auto;
}

.not-found-shell {
  align-items: center;
  background: var(--muted);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.not-found-card {
  text-align: center;
}

.not-found-card h1 {
  font-size: 4rem;
  margin: 0 0 16px;
}

.not-found-card p {
  color: var(--muted-foreground);
  font-size: 1.5rem;
  margin: 0 0 16px;
}

.not-found-card a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .hero-grid,
  .stack-grid,
  .workflow-header,
  .footer-grid,
  .solutions-grid,
  .workflow-grid,
  .policies-grid {
    grid-template-columns: 1fr;
  }

  .workflow-header {
    align-items: start;
  }

  .footer-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding-bottom: 88px;
    padding-top: 72px;
  }

  .brand-lockup {
    gap: 14px;
    margin-bottom: 32px;
  }

  .brand-logo {
    height: 48px;
  }

  .line-break {
    display: inline;
  }

  .feature-grid,
  .policies-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .card-feature,
  .contact-card,
  .stack-card,
  .policies-card,
  .solution-card,
  .phase-card {
    padding: 24px;
  }

  .section {
    padding: 64px 0;
  }
}
