/* ============================================================
   SilverArrow — shared stylesheet (home + contact)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #010101;
  --card: #2a2a2a;
  --light: #f6f6f6;
  --white: #ffffff;
  --purple: #8a53f5;
  --purple-hover: #7a3fe8;
  --purple-label: #c6b1ff;
  --lime: #dffe66;
  --dark-text: #170c0c;
  --muted-30: rgba(255, 255, 255, 0.3);
  --muted-50: rgba(255, 255, 255, 0.5);
  --muted-70: rgba(255, 255, 255, 0.7);
  --muted-80: rgba(255, 255, 255, 0.8);
  --line: #898989;
  --hairline: rgba(255, 255, 255, 0.6);

  --maxw: 1680px;
  --pad: 120px;          /* desktop side padding */
  --radius: 20px;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p {
  margin: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: 96px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.32px;
  text-transform: uppercase;
  line-height: 1;
  padding: 14px 32px;
  border-radius: 1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

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

.btn--purple {
  background: var(--purple);
  color: var(--white);
}
.btn--purple:hover {
  background: var(--purple-hover);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--bg);
}

.btn--lime {
  background: var(--lime);
  color: var(--dark-text);
}
.btn--lime:hover {
  background: #cdf23f;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  height: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 22px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav a {
  padding: 8px 16px;
  font-size: 16px;
  letter-spacing: 0.32px;
  color: var(--white);
  opacity: 0.92;
  transition: opacity 0.15s ease;
}
.nav a:hover {
  opacity: 1;
}

.header-cta {
  margin-left: 16px;
  font-size: 14px;
  padding: 14px 21px;
}

/* CTA shown only inside the mobile dropdown */
.nav__cta {
  display: none;
}

/* mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#nav-check {
  display: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: 80px 32px;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 654px) 1fr;
  align-items: center;
  gap: 32px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 620px;
}

.hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero__lede {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.36px;
  color: var(--muted-80);
  margin: 0;
}

/* button hugs its text rather than stretching the column */
.hero__text .btn {
  align-self: flex-start;
  padding: 21px 32px;
}

.hero__media {
  display: flex;
  justify-content: flex-end;
}
.hero__media img {
  width: 100%;
  max-width: 760px;
  height: auto;
}

/* ============================================================
   Unified-layer diagram
   ============================================================ */
.diagram {
  padding-block: 112px 64px;
}

.diagram__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.node {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid #7e83694f;
  border-radius: 2px;
  padding: 28px 24px;
}
.node img {
  width: 28px;
  height: 28px;
  flex: none;
}
.node span {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--light);
}

/* connectors */
.diagram__connectors {
  position: relative;
  height: 96px;
}
.diagram__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.diagram__svg path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* mobile-only vertical connector with arrowhead (desktop uses the bus above) */
.diagram__arrow {
  display: none;
}

.diagram__pill {
  display: flex;
  justify-content: center;
}
.diagram__pill-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 64px 60px;
}
.diagram__pill-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
}
.diagram__pill-box span {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.25em;
  text-indent: 0.25em; /* offset trailing letter-spacing so text stays centred */
  color: var(--light);
}

/* ============================================================
   Capabilities
   ============================================================ */
.cap__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto 56px;
}
.cap__head .eyebrow {
  text-align: center;
}
.cap__head h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.cap__head p {
  font-size: 18px;
  letter-spacing: 0.36px;
  color: var(--white);
}

.cap__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
}
.cap-card__icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  color: var(--purple-label);
}
.cap-card__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  color: var(--purple-label);
}
.cap-card h3 {
  margin: 12px 0 0;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--light);
  /* reserve two lines so single-line titles align with two-line ones,
     keeping every card's body text / button on the same baseline */
  min-height: 2.4em;
}
.cap-card p {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--muted-70);
}
/* button follows the title directly, aligning with the body text of the
   other cards (not pinned to the card bottom) */
.cap-card .btn {
  align-self: flex-start;
}

/* ============================================================
   Who we are
   ============================================================ */
.who .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.who__statement {
  margin: 0;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.4;
  letter-spacing: -0.04em;
}
.who__statement .lime { color: var(--lime); }
.who__statement .grey { color: #9c9c9c; }

/* ============================================================
   Values
   ============================================================ */
/* separator line between the "Who we are" and "Values" sections
   (full content-width, like the quote / footer dividers) */
.section.values {
  padding-top: 0;
}
.values__rule {
  border-top: 1px solid #424242;
  margin-bottom: 120px;
}
.values__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 686px;
  margin-bottom: 64px;
}
.values__head h2 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.values__head p {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.36px;
  color: var(--muted-80);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  padding-left: 0;
}
.value__title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.value__title .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}
.value__title h3 {
  margin: 0;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--light);
}
.value p {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--muted-70);
}

/* quote */
.quote {
  margin-top: 96px;
  padding-top: 96px;
  border-top: 1px solid #424242;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.quote__eyebrow {
  color: var(--white);
}
.quote blockquote {
  margin: 0;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 42px);
  line-height: 1.37;
  letter-spacing: -0.05em;
}
.quote__author {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}
.quote__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--lime));
  flex: none;
}
.quote__name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.32px;
}
.quote__role {
  font-size: 16px;
  letter-spacing: 0.32px;
  color: var(--muted-50);
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  padding-block: 64px;
}
.cta-banner__inner {
  position: relative;
  overflow: hidden;
  background: var(--lime);
  border-radius: var(--radius);
  padding: 64px 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  color: var(--dark-text);
}
.cta-banner__text {
  position: relative;
  z-index: 1;
  max-width: 793px;
}
.cta-banner .btn {
  position: relative;
  z-index: 1;
}
.cta-banner__art {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 52%;
  max-width: 760px;
  z-index: 0;
  pointer-events: none;
}
.cta-banner h2 {
  margin: 0 0 24px;
  max-width: 660px;
  font-weight: 600;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--dark-text);
}
.cta-banner p {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.36px;
  color: var(--dark-text);
  max-width: 720px;
}
.cta-banner .btn {
  font-size: 15px;
  padding: 20px 40px;
  border-radius: 1px;
  flex: none;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact .container {
  display: grid;
  grid-template-columns: minmax(0, 686px) minmax(0, 512px);
  justify-content: space-between;
  gap: 64px;
  padding-block: 80px;
}

.contact__left {
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.contact h1 {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.05em;
  color: var(--light);
}
.contact__lede {
  font-size: 16px;
  letter-spacing: 0.32px;
  max-width: 607px;
}
.contact-details h2 {
  margin: 0 0 28px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.05em;
}
.contact-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  letter-spacing: 0.32px;
}
.contact-details svg {
  width: 24px;
  height: 24px;
  flex: none;
  stroke: var(--white);
}

/* form */
.contact-form h2 {
  margin: 0 0 48px;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.05em;
}
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: flex;
  gap: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 0 0;
  min-width: 0;
}
.field label {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.28px;
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--white);
  padding: 12px 0;
  outline: none;
}
.field textarea {
  resize: vertical;
  min-height: 72px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-50);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--lime);
  background: var(--card);
  padding-inline: 12px;
}
/* override the browser's light autofill background */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset;
  box-shadow: 0 0 0 1000px var(--card) inset;
  caret-color: var(--white);
}
.contact-form .btn {
  width: 100%;
  margin-top: 48px;
  height: 62px;
  border-radius: 1px;
}
.form-status {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--lime);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding-block: 64px 48px;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #424242;
}
.footer__brand img {
  height: 19px;
}
.footer__tagline {
  font-size: 14px;
  letter-spacing: 0.28px;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
}
.footer__copy {
  font-size: 12px;
  letter-spacing: 0.24px;
}
.socials {
  display: flex;
  align-items: center;
  gap: 24px;
}
.socials a {
  display: inline-flex;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.socials a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
/* optical balancing — the X glyph fills its box edge-to-edge, so trim it */
.socials a[aria-label="X (Twitter)"] svg {
  width: 15px;
  height: 15px;
}
.socials a[aria-label="LinkedIn"] svg {
  width: 18px;
  height: 18px;
}
.socials a[aria-label="Instagram"] svg,
.socials a[aria-label="Facebook"] svg {
  width: 19px;
  height: 19px;
}

/* ============================================================
   Responsive
   ============================================================ */
/* CTA banner: narrow the text + illustration so they don't collide as the
   banner shrinks (until it stacks vertically at <=900px) */
@media (max-width: 1450px) {
  .cta-banner__art {
    width: 46%;
  }
  .cta-banner h2,
  .cta-banner p {
    max-width: 420px;
  }
}

@media (max-width: 1440px) {
  /* smaller headings + narrower text column so the hero image stays large */
  .hero .container {
    grid-template-columns: minmax(0, 520px) 1fr;
  }
  .hero h1 {
    font-size: clamp(30px, 3.2vw, 44px);
  }
  .cap__head h2,
  .values__head h2 {
    font-size: clamp(30px, 3.4vw, 44px);
  }
  .who__statement {
    font-size: clamp(26px, 3vw, 42px);
  }
  .cta-banner h2 {
    font-size: clamp(32px, 3.8vw, 50px);
  }
}

@media (max-width: 1300px) {
  .hero__lede {
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  :root {
    --pad: 48px;
  }
  .cap__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-banner__art {
    width: 40%;
  }
  .cta-banner h2,
  .cta-banner p {
    max-width: 340px;
  }
}

/* Below this the art would be too cramped to read — drop it and let the text
   use the full width. */
@media (max-width: 1080px) {
  .cta-banner__art {
    display: none;
  }
  .cta-banner h2,
  .cta-banner p {
    max-width: none;
  }
}

/* narrow the hero text column so the crystal illustration keeps some room
   (before the hero stacks at <=900) */
@media (max-width: 1100px) {
  .hero .container {
    grid-template-columns: minmax(0, 400px) 1fr;
  }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero__media {
    justify-content: center;
  }
  .hero__media img {
    max-width: 520px;
  }

  /* diagram becomes a vertical stack */
  .diagram__cards {
    grid-template-columns: 1fr;
  }
  .diagram__connectors {
    display: none;
  }
  .diagram__arrow {
    display: block;
    position: relative;
    width: 1px;
    height: 48px;
    background: var(--line);
    margin: 16px auto 0;
  }
  .diagram__arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 9px;
    height: 9px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: translate(-50%, -30%) rotate(45deg);
  }
  .diagram__pill {
    margin-top: 16px;
  }

  .contact .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact__left {
    gap: 48px;
  }

  .quote {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px;
  }
  /* stacked layout: drop the decorative art, let text use full width */
  .cta-banner__art {
    display: none;
  }
  .cta-banner h2,
  .cta-banner p {
    max-width: none;
  }
  .cta-banner .btn {
    width: 100%;
    font-size: 15px;
    padding: 18px 24px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 900px) {
  :root {
    --pad: 24px;
  }

  /* full-screen overlay nav */
  .logo {
    position: relative;
    z-index: 2; /* stay above the overlay */
  }
  .nav-toggle {
    display: flex;
    order: 3;
    position: relative;
    z-index: 2; /* keep the burger/X clickable above the overlay */
  }
  .header-cta {
    display: none;
  }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    background: var(--bg);
    padding: 96px 24px 40px;
    margin: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.28s ease, transform 0.28s ease,
      visibility 0s linear 0.28s;
  }
  #nav-check:checked ~ .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }
  .nav a {
    padding: 18px 8px;
    font-size: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  /* big nav links only (not the CTA button) */
  .nav a:not(.nav__cta) {
    letter-spacing: -3px;
    font-weight: 500;
  }
  /* more specific than ".nav a" so the smaller size wins */
  .nav a.nav__cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 28px;
    width: 100%;
    font-size: 13px;
  }
  /* burger morphs into an X when the menu is open */
  #nav-check:checked ~ .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  #nav-check:checked ~ .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  #nav-check:checked ~ .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* capability cards get too cramped at 2-up below this — go full width */
@media (max-width: 768px) {
  .cap__grid {
    grid-template-columns: 1fr;
  }
}

/* mobile: use the portrait artwork (crystal upright on top, lines rising
   from the bottom) served via <picture> */
@media (max-width: 700px) {
  .hero__media {
    align-items: center;
  }
  .hero__media img {
    width: min(74vw, 340px);
    max-width: none;
    height: auto;
  }
}

@media (max-width: 600px) {
  .section {
    padding-block: 64px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .cap__grid,
  .values__grid {
    grid-template-columns: 1fr;
  }
  .cta-banner__inner {
    padding: 32px;
  }
  .form-row {
    flex-direction: column;
  }
  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Scroll reveal (fade + slide-up on enter; one-shot)
   Hidden state is gated behind .js-reveal so no-JS users see content.
   ============================================================ */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.js-reveal [data-reveal="fade"] {
  transform: none; /* diagram & SVG: opacity only, keeps layout geometry intact */
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
