/* -------------------------------------------------------------------------- */
/*  Global theme tokens                                                       */
/* -------------------------------------------------------------------------- */

:root {
  --bg: #03040a;
  --bg-soft: #050716;
  --text: #f9fafb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --card: rgba(15, 23, 42, 0.9);
  --card-softer: rgba(15, 23, 42, 0.75);
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 0 40px rgba(15, 23, 42, 0.9);
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "SF Pro Display", "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #020617, #020617 40%, #020617);
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  position: relative;
  min-height: 100vh;
  padding-bottom: 40px;
}

/* -------------------------------------------------------------------------- */
/*  Background + star field                                                   */
/* -------------------------------------------------------------------------- */

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.background-image {
  position: absolute;
  inset: 0;
  /* Background star image loaded from assets/stars-background.jpg */
  background-image: url("assets/stars-background.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.2);
}

.shooting-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.background-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* 50% black overlay in front of stars */
}

.shooting-star {
  position: absolute;
  width: 1px; /* actual size driven by children + CSS variables */
  height: 1px;
  transform-origin: 0 50%;
  pointer-events: none;
}

.shooting-star__track {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0;
  transform-origin: 0 50%;
}

.shooting-star__head {
  /* Head visually removed so stars appear as elegant trailing lines only */
  width: 0;
  height: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shooting-star__tail {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.0),
    rgba(191, 219, 254, 0.7),
    rgba(226, 232, 240, 0.1)
  );
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.4);
}

@keyframes shooting-star-flight {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% {
    opacity: var(--star-opacity, 0.9);
  }
  70% {
    opacity: var(--star-opacity, 0.9);
  }
  100% {
    transform: translate3d(
      calc(var(--star-distance, 260px)),
      calc(var(--star-drift, 12px)),
      0
    );
    opacity: 0;
  }
}

/* -------------------------------------------------------------------------- */
/*  Header                                                                    */
/* -------------------------------------------------------------------------- */

.header {
  position: relative;
  z-index: 1;
  padding: 20px 20px 4px;
  display: none; /* Hero should show only main logo, title, and CTA */
}

@media (min-width: 768px) {
  .header {
    padding-inline: 48px;
    padding-top: 24px;
  }
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-logo-image {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: rgba(15, 23, 42, 0.7);
  padding: 6px;
  box-shadow: 0 0 24px rgba(15, 23, 42, 0.9);
  object-fit: contain;
}

.header-logo-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(226, 232, 240, 0.85);
}

/* -------------------------------------------------------------------------- */
/*  Sections + layout                                                         */
/* -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: 56px 20px;
}

@media (min-width: 640px) {
  .section {
    padding-block: 72px;
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: 96px;
    padding-inline: 72px;
  }
}

.section-inner {
  max-width: 1120px;
  margin-inline: auto;
}

.section-inner.narrow {
  max-width: 720px;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.body-copy {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.body-copy p {
  margin-top: 0;
  margin-bottom: 14px;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/*  Hero                                                                      */
/* -------------------------------------------------------------------------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 72px;
  padding-bottom: 88px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 120px;
  }
}

.hero-inner {
  max-width: 620px;
  margin-inline: auto;
}

.hero-intro {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.hero-intro.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-logo {
  margin-inline: auto;
  margin-bottom: 16px; /* tighter gap between logo and title */
  width: min(520px, 70vw); /* slightly smaller than previous 3x size */
}

.hero-logo-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;            /* lighter, less bold */
  letter-spacing: 0.06em;      /* subtle sci‑fi / modern tracking */
  text-transform: uppercase;   /* more futuristic, professional feel */
}

.hero-subtitle {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(226, 232, 240, 0.8);
}

.hero-cta {
  margin-top: 28px;
}

.button-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  background: #f9fafb;
  color: #020617;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  box-shadow: 0 0 26px rgba(248, 250, 252, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease,
    background 180ms ease, color 180ms ease;
}

.button-cta:hover,
.button-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(248, 250, 252, 0.32);
}

.button-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/*  Technology logos                                                          */
/* -------------------------------------------------------------------------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.logo-card {
  /* Pure icon row – no pill/bubble background */
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;

  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-card-icon {
  /* Let the icon stand on its own (no bubble) */
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.logo-card-image {
  /* Make icons significantly larger */
  width: 360px; /* ~5x previous size (72px) */
  height: auto;
  object-fit: contain;
}

.logo-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.86);
}

/* -------------------------------------------------------------------------- */
/*  Step grids                                                                */
/* -------------------------------------------------------------------------- */

.grid-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .grid-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.step-card {
  /* Remove dark card boxes – keep content on background */
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 18px 0 20px;
  box-shadow: none;
}

.step-number {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.55); /* divider between number and title */
  display: inline-block;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem; /* larger quadrant titles */
}

.step-card p {
  margin: 0;
  font-size: 0.95rem; /* slightly larger body for this section */
  color: var(--muted);
  line-height: 1.6;
}

/* Why Choose Adastra – card style */
.why-cards .step-card {
  background: rgba(24, 31, 47, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 18px 18px 20px;
  box-shadow: 0 0 32px rgba(15, 23, 42, 0.85);
  text-align: left;
}

.why-cards .step-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-cards .step-card p {
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/*  Example workflows                                                         */
/* -------------------------------------------------------------------------- */

.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.example-card {
  /* Remove dark card boxes – diagrams sit directly on background */
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 18px 0 18px;
  box-shadow: none;
}

.example-header h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.workflow {
  margin-top: 18px;
}

.workflow-horizontal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.workflow-step {
  /* Large circular frame with text inside */
  width: 150px;
  height: 150px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}

.workflow-step-number {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  margin-bottom: 8px;
}

.workflow-step-label {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

.workflow-arrow {
  font-size: 1.4rem;
  color: rgba(148, 163, 184, 0.9);
}

@media (max-width: 640px) {
  /* Examples – make each step full‑width and easier to scan */
  .workflow-horizontal {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .workflow-step {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .workflow-step-number {
    text-align: left;
  }

  .workflow-step-label {
    text-align: left;
  }

  .workflow-arrow {
    align-self: center;
    transform: rotate(90deg);
  }
}

.example-outcome {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/*  Metrics / Impact section                                                  */
/* -------------------------------------------------------------------------- */

.impact-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 28px;
  margin-bottom: 10px;
}

.metric-card {
  text-align: center;
}

.metric-number {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.metric-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 8px;
}

.metric-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.impact-copy {
  max-width: 420px;
}

@media (max-width: 768px) {
  .impact-layout {
    flex-direction: column;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .metric-card {
    text-align: left;
  }
}

/* -------------------------------------------------------------------------- */
/*  Founder                                                                   */
/* -------------------------------------------------------------------------- */

.founder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 30px;
  align-items: center;
}

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

.founder-photo-wrap {
  display: flex;
  justify-content: center;
}

.founder-photo-inner {
  border-radius: 999px;
  padding: 4px;
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.7), #020617);
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.9);
}

.founder-photo {
  display: block;
  border-radius: 999px;
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  object-fit: cover;
}

.founder-copy h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

/* -------------------------------------------------------------------------- */
/*  Engagement roadmap                                                        */
/* -------------------------------------------------------------------------- */

.roadmap-card {
  margin-top: 32px;
  padding: 20px 18px 18px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

.roadmap-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(148, 163, 184, 0.98);
  margin-bottom: 12px;
}

.roadmap-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.roadmap-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.96);
  background: rgba(15, 23, 42, 0.92);
}

.roadmap-arrow {
  color: rgba(148, 163, 184, 0.9);
}

.roadmap-cta {
  margin-top: 18px;
}

/* Ready to Automate – circular engagement diagram */
.ready-diagram {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.ready-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ready-circle {
  width: 170px;
  height: 170px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ready-icon {
  font-size: 2rem;
  color: rgba(248, 250, 252, 0.9);
}

.ready-label {
  font-size: 0.9rem;
  text-align: center;
  color: rgba(248, 250, 252, 0.9);
  line-height: 1.5;
}

.ready-arrow {
  font-size: 1.6rem;
  color: rgba(148, 163, 184, 0.9);
}

@media (max-width: 640px) {
  .ready-diagram {
    flex-direction: column;
  }

  .ready-circle {
    width: 140px;
    height: 140px;
  }

  .ready-arrow {
    transform: rotate(90deg);
  }
}

/* -------------------------------------------------------------------------- */
/*  Contact                                                                   */
/* -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  }
}

.contact-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(30, 64, 175, 0.55);
  padding: 20px 22px;
  box-shadow: 0 0 32px rgba(15, 23, 42, 0.9);
}

.contact-card p {
  margin-bottom: 10px;
}

.eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(148, 163, 184, 0.95);
  margin-top: 0;
  margin-bottom: 10px;
}

.link {
  color: var(--accent);
}

.link:hover {
  text-decoration: underline;
}

.subtle {
  font-size: 0.86rem;
}

/* -------------------------------------------------------------------------- */
/*  Footer                                                                    */
/* -------------------------------------------------------------------------- */

.footer {
  padding: 24px 20px 32px;
}

@media (min-width: 640px) {
  .footer {
    padding-inline: 32px;
  }
}

.footer-inner {
  max-width: 1120px;
  margin-inline: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.9);
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* -------------------------------------------------------------------------- */
/*  Section fade-in on scroll                                                 */
/* -------------------------------------------------------------------------- */

.fade-section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

