/* Astra Professional Services — dark premium SaaS aesthetic */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-surface: #1a1a1a;
  --bg-subtle: #111111;
  --text: #ededed;
  --text-muted: #a1a1a1;
  --text-faint: #737373;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #8b9cff;
  --accent-soft: rgba(139, 156, 255, 0.12);
  --white: #ffffff;
  --black: #0a0a0a;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --max: 72rem;
  --narrow: 40rem;
  --space-section: clamp(4.5rem, 10vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--white);
  color: var(--black);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, var(--narrow));
  margin-inline: auto;
}

/* Hero band: video behind header + hero copy */
.hero-band {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 52rem);
  display: flex;
  flex-direction: column;
  color: var(--text);
  overflow: hidden;
  background: #050505;
}

.hero-band .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-band .hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-band .hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.35) 45%, rgba(10, 10, 10, 0.85) 100%),
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(139, 156, 255, 0.08), transparent 55%);
  pointer-events: none;
}

/* Header / nav — transparent over night sky */
.site-header {
  position: relative;
  z-index: 2;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.nav {
  position: relative;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.nav__brand:hover {
  opacity: 0.9;
}

.nav__logo {
  display: block;
  height: 2.35rem;
  width: auto;
}

.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.75rem;
}

.nav__menu a {
  color: rgba(237, 237, 237, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.nav__menu a:hover {
  color: var(--white);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--black) !important;
  font-weight: 500 !important;
  border: 1px solid transparent;
}

.nav__cta:hover {
  background: #e8e8e8;
  color: var(--black) !important;
}

.nav__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle-bar {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero copy */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(4rem, 10vw, 6.5rem);
  color: var(--text);
}

.hero__inner {
  position: relative;
  width: min(100% - 2.5rem, 48rem);
  margin-inline: auto;
  text-align: left;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--on-dark {
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.35rem;
  font-family: var(--font);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--white);
}

.hero__lead {
  margin: 0 0 2.25rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn--primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn--primary:hover {
  background: #e8e8e8;
  color: var(--black);
  border-color: #e8e8e8;
}

.btn--ghost,
.btn--ghost-light {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover,
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.btn--full {
  width: 100%;
}

/* Sections */
.section {
  padding: var(--space-section) 0;
}

.section--muted {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

.section--ink {
  background: var(--bg);
  color: var(--text);
  border-block: 1px solid var(--border);
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section--ink p {
  color: var(--text-muted);
}

.section--cta {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.section__header {
  max-width: 38rem;
  margin-bottom: 3rem;
}

.section__header h2,
.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--white);
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.section--muted p {
  color: var(--text-muted);
  margin: 0 0 1.15rem;
  font-size: 1.0625rem;
}

.section--muted p:last-child {
  margin-bottom: 0;
}

.section--muted h2 {
  color: var(--white);
}

/* Service cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem 1.7rem;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface);
  transform: none;
}

.card__num {
  display: block;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-faint);
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--white);
}

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

/* Steps — how we work */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.75rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.35rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
}

.step h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Audience */
.audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}

.audience__item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem;
}

.audience__item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--white);
}

.audience__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact__copy h2 {
  margin-bottom: 1rem;
}

.contact__copy p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.contact__copy a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
}

.contact__copy a:hover {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.contact__note {
  font-size: 0.9375rem;
}

.contact__form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.65rem;
  box-shadow: none;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.975rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input.invalid,
.field textarea.invalid {
  border-color: #e07070;
}

.form-status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.3em;
}

.form-status.is-success {
  color: #9dcea8;
}

.form-status.is-error {
  color: #e8a0a0;
}

/* Footer */
.site-footer {
  background: var(--bg);
  color: var(--text-faint);
  padding: 2.75rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer__logo {
  display: block;
  height: 2.75rem;
  width: auto;
  opacity: 0.9;
}

.footer__tag {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__copy {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

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

  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.85rem 1.25rem 1.35rem;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__menu a {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  .nav__cta {
    margin-top: 0.65rem;
    justify-content: center;
    border-bottom: none !important;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    position: relative;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-band .hero__video {
    display: none;
  }

  .hero-band .hero__media {
    background: url("assets/hero-stars-poster.jpg") center / cover no-repeat;
  }
}
