/* ==========================================================================
   PhotonBit.ai — Brand tokens
   Brand blue  #1062fb
   Brand navy  #041f42
   Typeface    Questrial (Google Fonts)
   ========================================================================== */
:root {
  --blue: #1062fb;
  --blue-light: #7fb2ff;
  --navy: #041f42;
  --ink: #050b1a;
  --ink-2: #071330;
  --white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.14);
  --paper: #f7f9fc;
  --paper-line: #e3e8f0;
  --slate: #4a5872;

  --font: "Questrial", "Century Gothic", system-ui, sans-serif;
  --max: 1240px;
  --radius-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  /* keep the footer pinned to the bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; }
/* on short pages the last section stretches down to the footer, so no background gap shows */
main > :last-child { flex-grow: 1; }

/* Home: hero + feature strip together fill exactly one screen */
.first-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.first-screen .hero { flex: 1 0 auto; height: auto; max-height: none; background: none; }
.first-screen {
  background:
    radial-gradient(ellipse 55% 55% at 74% 42%, rgba(16, 98, 251, 0.15), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 8%, rgba(4, 31, 66, 0.8), transparent 70%),
    linear-gradient(180deg, #040915 0%, #06122b 60%, var(--ink) 100%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin: 0 0 24px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}
.dim { color: var(--blue-light); }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
}
.logo img { height: 1.6em; width: auto; margin-bottom: -0.05em; }
.logo span { padding-bottom: 0.08em; }
.logo--dark { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 20px -6px rgba(16, 98, 251, 0.55);
}
.btn--primary:hover { background: #2a74ff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 28px -6px rgba(16, 98, 251, 0.7); }
.btn--outline {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  font-size: 14px;
  padding: 11px 22px;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
/* blue fill that sweeps in from left to right on hover */
.btn--outline::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn--outline:hover,
.btn--outline:focus-visible { border-color: var(--blue); }
.btn--outline:hover::before,
.btn--outline:focus-visible::before { transform: scaleX(1); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 28px 0;
}
.site-header.is-solid {
  position: fixed;
  padding: 16px 0;
  background: rgba(5, 11, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Menu temporarily hidden (add/remove the `hidden` attribute on .nav and .nav-toggle in each page's header).
   While hidden, the Contact Us button stays visible on phones too. */
.nav[hidden], .nav-toggle[hidden] { display: none !important; }
@media (max-width: 960px) {
  .site-header:has(.nav[hidden]) .header-cta { display: inline-flex; }
}

/* desktop: equal side columns so the menu sits exactly on the page centre */
@media (min-width: 961px) {
  .site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header .logo { justify-self: start; }
  .site-header .header-cta { grid-column: 3; justify-self: end; }
}
.nav { display: flex; gap: clamp(40px, 3.6vw, 64px); } /* more breathing room on wider screens */
.nav a {
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  padding: 8px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 600px;
  height: 72vh;
  max-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 72% 55%, rgba(16, 98, 251, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 10%, rgba(4, 31, 66, 0.9), transparent 70%),
    linear-gradient(180deg, #040915 0%, #06122b 100%);
}
.hero__beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 94%);
}
.hero__content { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 96px; } /* keeps the headline aligned with the beam (space formerly used by the hero button) */
.hero h1 {
  font-weight: 400;
  font-size: clamp(44px, 6.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 48px; /* room for the light beam that runs between headline and paragraph */
}
.hero h1 .accent {
  background: linear-gradient(90deg, #8ec0ff, #4f8fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  max-width: 560px;
  font-size: 19px;
  font-weight: 400;
  color: var(--text-dim);
  margin: 0 0 40px;
}

/* beam animation */
.beam { fill: none; stroke-linecap: round; }
.beam-pulse {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 2 400;
  opacity: 0.75;
  animation: pulse-run 6s linear infinite;
}
@keyframes pulse-run {
  from { stroke-dashoffset: 402; }
  to   { stroke-dashoffset: 0; }
}

/* ---------- Features strip ---------- */
.features {
  position: relative;
  padding: 0 0 32px;
  color: var(--white);
}
/* panel sits just below the hero — beams and hero text keep their original relationship */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 40px 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.feature {
  padding: 0 48px;
  border-left: 1px solid var(--line);
}
.feature:first-child { border-left: 0; }
.feature__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid #d5ddea;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #fff;
  margin-bottom: 22px;
}
.feature__icon svg { width: 28px; height: 28px; }
.features .feature__icon {
  background: rgba(16, 98, 251, 0.08);
  border-color: rgba(127, 178, 255, 0.28);
  color: var(--blue-light);
}
.feature h3 {
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.feature p { margin: 0; color: var(--text-dim); font-size: 16px; line-height: 1.55; }
@media (min-width: 961px) { .feature p { white-space: nowrap; } } /* one line each on desktop */
@media (min-width: 961px) and (max-width: 1199px) {
  .feature { padding: 0 28px; }
  .feature p { font-size: 15px; }
}

/* ---------- Content sections ---------- */
.section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 40% 60% at 100% 30%, rgba(16, 98, 251, 0.16), transparent 70%),
    var(--ink);
}
.section--alt {
  background:
    radial-gradient(ellipse 40% 60% at 0% 70%, rgba(16, 98, 251, 0.16), transparent 70%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
}
/* faint photonic grid that fades toward the centre so the edges aren't flat */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 178, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 178, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 32%, transparent 68%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 32%, transparent 68%, #000 100%);
}
.section > .container { position: relative; }

@media (min-width: 1800px) {
  :root { --max: 1480px; }
}
.section__head { margin-bottom: 56px; }
.section__head h2 { white-space: nowrap; }
.section h2 {
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
}
.section__head p { max-width: 720px; color: var(--text-dim); font-size: 18px; font-weight: 400; margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
/* hairline of light along the top edge, brightens on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 178, 255, 0.6), transparent);
  opacity: 0.35;
  transition: opacity 0.3s, left 0.3s, right 0.3s;
}
.card:hover { border-color: rgba(16, 98, 251, 0.35); background: linear-gradient(180deg, rgba(16, 98, 251, 0.09), rgba(255, 255, 255, 0.01)); }
.card:hover::before { opacity: 1; left: 0; right: 0; }
.card__num {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--blue-light);
}
.card h3 { font-weight: 400; font-size: 21px; letter-spacing: -0.01em; margin: 72px 0 10px; }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; font-weight: 400; line-height: 1.6; }

.about {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: center;
}
.about h2 { white-space: nowrap; font-size: clamp(28px, 3vw, 44px); }
.about p { color: var(--text-dim); font-size: 18px; font-weight: 400; }
.about__mark {
  aspect-ratio: 1;
  border-radius: 24px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--ink-2);
}
.about__mark img { width: 34%; }

/* ---------- How-it-works steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
/* beam of light connecting the steps */
.steps::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-light) 15%, var(--blue) 85%, transparent);
  opacity: 0.6;
}
.steps li { position: relative; padding-top: 44px; }
.steps__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(16, 98, 251, 0.18);
}
.steps h3 { font-weight: 400; font-size: 21px; margin: 0 0 10px; }
.steps p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ---------- About: manifesto + why-now ---------- */
.statement {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--white);
}
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.why__item { padding-top: 28px; border-top: 1px solid var(--line); }
.why__num {
  display: block;
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--blue-light);
}
.why h3 { font-weight: 400; font-size: 21px; letter-spacing: -0.01em; margin: 0 0 10px; }
.why p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 120% at 85% 50%, rgba(16, 98, 251, 0.22), transparent 70%),
    var(--ink);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.cta-band p { margin: 0; color: var(--text-dim); font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(16, 98, 251, 0.14), transparent 70%),
    linear-gradient(180deg, #06122b, #040915);
  padding: 52px 0 40px;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  justify-content: center;
  text-align: center;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; }
.footer__brand .logo { font-size: 34px; }
.footer__tagline {
  margin: 22px 0 0;
  font-size: 13px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-left: 0.38em; /* balances the trailing letter-spacing so it centres optically */
}
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom nav { display: flex; gap: 24px; }
/* footer links temporarily hidden (remove `hidden` on the footer <nav> to bring them back);
   while hidden, the copyright line is centred */
.footer__bottom nav[hidden] { display: none; }
.footer__bottom:has(nav[hidden]) { justify-content: center; }
.footer__bottom a:hover { color: var(--white); }

/* ---------- Contact page ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 190px 0 90px;
  background:
    radial-gradient(ellipse 55% 80% at 85% 40%, rgba(16, 98, 251, 0.3), transparent 70%),
    linear-gradient(180deg, #040915 0%, #06122b 100%);
}
.page-hero h1 {
  font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.page-hero p { max-width: 560px; color: var(--text-dim); font-size: 18px; margin: 0; }

.contact {
  background: var(--paper);
  color: var(--navy);
  padding: 90px 0;
  /* when stretched to the footer, keep the form vertically centred */
  display: flex;
  align-items: center;
}
.contact .container { max-width: 1240px; } /* keep the card a comfortable width on wide screens */

/* one card: dark details panel + white form panel */
.contact-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) 1.6fr;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--paper-line);
  box-shadow: 0 40px 80px -40px rgba(4, 31, 66, 0.35);
}
.contact-card__info {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 48px 44px;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy) 0%, var(--ink) 100%);
}
/* oversized, faint gamma watermark spanning the whole panel */
.contact-card__info::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14%;
  height: 112%;
  aspect-ratio: 100 / 150; /* logo-mark viewBox */
  transform: translateY(-50%);
  background: url("../assets/logo-mark.svg") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}
.contact-card__info > * { position: relative; z-index: 1; }
.contact-card__info h2 { font-weight: 400; font-size: 32px; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.contact-card__lead { margin: 0; color: var(--text-dim); font-size: 15px; }

.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.detail-list li { display: flex; gap: 16px; align-items: flex-start; }
.detail-list__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-light);
  border: 1px solid rgba(127, 178, 255, 0.3);
  background: rgba(16, 98, 251, 0.12);
}
.detail-list__icon svg { width: 18px; height: 18px; }
.detail-list strong { display: block; font-weight: 400; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin: 2px 0 6px; }
.detail-list a,
.detail-list address { font-style: normal; font-size: 16px; line-height: 1.6; color: var(--white); }
.detail-list a { transition: color 0.2s; }
.detail-list a:hover { color: var(--blue-light); }

.contact-card__form { padding: 48px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--slate); }
.field label .req { color: var(--blue); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  padding: 14px 16px;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 98, 251, 0.12);
}
.field .is-invalid { border-color: #e5484d; }
.form-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.form-note { font-size: 13px; color: var(--slate); margin: 0; }
.form-status { margin: 18px 0 0; font-size: 15px; }
.form-status.ok { color: #0f8a4f; }
.form-status.err { color: #c62a2f; }
.hp { position: absolute; left: -9999px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam-pulse { animation: none; opacity: 0; }
  .btn--outline::before { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 20px;
    background: rgba(5, 11, 26, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .header-cta { display: none; }

  .features__grid, .cards, .steps, .why { grid-template-columns: 1fr; }
  .features__grid { width: calc(100% - 40px); padding: 0 28px; }
  .steps::before { display: none; }
  .feature { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0; }
  .feature:first-child { border-top: 0; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .contact-card { grid-template-columns: 1fr; }
  .about__mark { max-width: 360px; }
  .about h2, .section__head h2 { white-space: normal; }
}

@media (max-width: 600px) {
  .container { padding: 0 22px; }
  .logo { font-size: 24px; }
  .hero { height: auto; min-height: 640px; }
  .hero__beams { opacity: 0.4; }
  .eyebrow { letter-spacing: 0.24em; font-size: 11px; }
  .contact-card__form, .contact-card__info { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
}
