/* ============================================================
 * FlowLens Global — section styles
 * Layout flow: utility bar · nav · hero · overview · capabilities ·
 * gallery · at-a-glance · contact · footer
 * ========================================================== */

/* ═══ Utility bar ═══ */
.utility {
  background: var(--paper-mist);
  border-bottom: 1px solid var(--ink-05);
  color: var(--ink-70);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.utility__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px var(--shell-pad-x);
  max-width: var(--shell-max);
  margin: 0 auto;
}
.utility__globe {
  width: 11px;
  height: 11px;
  opacity: 0.55;
  flex-shrink: 0;
}
.utility__label {
  color: rgba(11, 31, 58, 0.85);
  font-weight: 500;
}
.utility__sep {
  color: var(--ink-20);
}
.utility__link {
  color: var(--ink-55);
  text-decoration: none;
  font-weight: 400;
  transition: color var(--dur-base) var(--ease-smooth);
}
.utility__link:hover,
.utility__link:focus-visible {
  color: var(--ink);
}

/* ═══ Nav ═══ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-06);
  transition: box-shadow var(--dur-base) var(--ease-smooth);
}
.nav.is-scrolled {
  box-shadow: 0 6px 24px -16px rgba(11, 31, 58, 0.18);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--shell-pad-x);
  max-width: var(--shell-max);
  margin: 0 auto;
  min-height: var(--nav-height);
  position: relative;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__brand-img {
  height: 26px;
  width: auto;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__menu {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 400;
}
.nav__menu-cta {
  display: none;
}
.nav__menu a {
  color: var(--ink-70);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-smooth);
}
.nav__menu a:hover,
.nav__menu a:focus-visible {
  color: var(--ink);
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav__toggle-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--ink);
  transition:
    transform var(--dur-base) var(--ease-smooth),
    opacity var(--dur-fast) var(--ease-smooth),
    top var(--dur-base) var(--ease-smooth);
}
.nav__toggle-bar:nth-child(1) {
  top: 13px;
}
.nav__toggle-bar:nth-child(2) {
  top: 19px;
}
.nav__toggle-bar:nth-child(3) {
  top: 25px;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* ═══ Hero ═══ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--ink);
  color: var(--on-dark);
}
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-color: rgba(11, 31, 58, 0.4);
  background-image: radial-gradient(rgba(0, 0, 0, 0.22) 20%, rgba(0, 0, 0, 0) 21%), radial-gradient(rgba(0, 0, 0, 0.22) 20%, rgba(0, 0, 0, 0) 21%);
  background-size: 6px 6px;
  background-position:
    0 0,
    3px 3px;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 120px var(--shell-pad-x) 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@supports (-webkit-touch-callout: none) {
  .hero__inner {
    min-height: -webkit-fill-available;
  }
}
.hero__copy {
  max-width: 960px;
}
.hero__logo {
  width: 416px;
  max-width: 100%;
  height: auto;
  margin-bottom: 80px;
}
.hero__h1.display {
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--on-dark);
  margin: 0 0 32px;
}
.hero__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--on-dark-72);
  font-weight: 300;
  max-width: 640px;
  letter-spacing: -0.003em;
}

/* Feature bar (value props) — sits inside 01 · Product on paper-soft */
.overview .feature-bar {
  margin-top: 64px;
}
.feature-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
}
.feature-bar__cell {
  padding: 20px 24px;
  border-right: 1px solid var(--ink-06);
}
.feature-bar__cell:last-child {
  border-right: none;
}
.feature-bar__head {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.feature-bar__sub {
  font-size: 12px;
  color: var(--ink-60);
  margin-top: 3px;
}

/* ═══ Overview (01 · PRODUCT) ═══ */
.overview {
  padding: 96px 0;
  background: var(--paper-soft);
}
.overview__grid {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--shell-pad-x);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.overview__h2 {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 0;
}
.overview__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-top: 22px;
  font-weight: 300;
}
.overview__capture {
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.overview__capture video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overview__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-55);
  margin-top: 20px;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══ Capabilities (02) ═══ */
.capabilities {
  padding: 96px 0;
  background: var(--paper);
}
.capabilities__h2 {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 0;
}
.capabilities__lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-top: 14px;
  max-width: 640px;
  font-weight: 300;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap-card {
  padding: 32px 30px;
  background: var(--paper);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-md);
}
.cap-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.18em;
  font-weight: 500;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.cap-card__en {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 28px;
}
.cap-card__title {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.021em;
  color: var(--ink);
  margin: 0 0 14px;
}
.cap-card__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 300;
  margin: 0 0 24px;
}
.cap-card__divider {
  height: 1px;
  background: var(--ink-08);
  margin-bottom: 16px;
}
.cap-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cap-card__list li {
  font-size: 13px;
  color: #1a2a44;
  padding: 4px 0;
  display: flex;
  gap: 10px;
}
.cap-card__tick {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

/* ═══ Gallery (03) ═══ */
.gallery {
  padding: 96px 0;
  background: var(--paper-soft);
}
.gallery__h2 {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 0;
}
.gallery__lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-top: 14px;
  max-width: 640px;
  font-weight: 300;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.plate {
  margin: 0;
}
.plate__frame {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: var(--ink-05);
  box-shadow: 5px 10px 20px rgba(11, 31, 58, 0.19);
}
.plate__frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ═══ Why FlowLens (04) ═══ */
.glance {
  padding: 96px 0;
  background: var(--ink);
  color: var(--on-dark);
}
.glance__intro {
  max-width: 900px;
  margin-bottom: 64px;
}
.glance__h2 {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--on-dark);
  margin: 0;
  max-width: 900px;
}
.glance__lead {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--on-dark-72);
  line-height: 1.65;
  margin-top: 24px;
  max-width: 680px;
  font-weight: 300;
  letter-spacing: -0.003em;
}
.glance .kicker {
  color: var(--accent);
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.pillar-card {
  padding: 32px 28px;
  background: var(--on-dark-03);
  border: 1px solid var(--on-dark-08);
  border-radius: var(--radius-md);
}
.pillar-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.pillar-card__title {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.027em;
  color: var(--on-dark);
  margin: 0 0 14px;
}
.pillar-card__body {
  font-size: 14px;
  color: var(--on-dark-70);
  line-height: 1.65;
  margin: 0;
  font-weight: 300;
}

/* Spec card */
.spec-card {
  padding: 40px;
  background: var(--on-dark-04);
  border: 1px solid var(--on-dark-08);
  border-radius: var(--radius-md);
}
.spec-card__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.spec-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  column-gap: 48px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--on-dark-08);
}
.spec-row__k {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--on-dark-55);
  font-weight: 400;
}
.spec-row__v {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: 13px;
  color: var(--on-dark);
  font-weight: 400;
  text-align: right;
  letter-spacing: -0.015em;
}

/* ═══ Contact (05) ═══ */
.contact {
  padding: 96px 0 48px;
  background: var(--paper);
}
.contact__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--shell-pad-x);
}
.contact__h2 {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 0 0 20px;
}
.contact__lead {
  font-size: 17px;
  color: var(--ink-70);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 44px;
  font-weight: 300;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}
.contact-card {
  padding: 36px 32px;
  background: var(--paper-soft);
  border: 1px solid var(--ink-06);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-card__h3 {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.contact-card__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-70);
  margin: 0;
  font-weight: 300;
  flex: 1;
}
.contact-card__action {
  align-self: flex-start;
  margin-top: 4px;
}

/* ═══ Footer ═══ */
.footer {
  background: var(--ink-deep);
  padding: 48px 0 56px;
  color: var(--on-dark);
}
.footer__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--shell-pad-x);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-display);
  font-feature-settings: var(--font-features);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: 4px;
  letter-spacing: -0.014em;
}
.footer__role {
  font-weight: 300;
  color: var(--on-dark-55);
}
.footer__addr {
  font-size: 12px;
  color: var(--on-dark-60);
  line-height: 1.6;
  font-weight: 300;
}
.footer__legal {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark-50);
  text-align: right;
  letter-spacing: 0.02em;
  line-height: 1.7;
  font-weight: 400;
}
.footer__legal-line {
  display: block;
  white-space: nowrap;
}

/* ═══ Responsive ═══ */
@media (max-width: 1023px) {
  :root {
    --shell-pad-x: var(--shell-pad-x-md);
  }
  .overview__grid {
    gap: 48px;
  }
  .hero__logo {
    width: 336px;
  }
}

@media (max-width: 900px) {
  .overview,
  .capabilities,
  .gallery,
  .glance,
  .contact {
    padding: 72px 0;
  }
  .overview__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cap-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
  }
  .spec-rows {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
    column-gap: 0;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .feature-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-bar__cell:nth-child(2n) {
    border-right: none;
  }
  .feature-bar__cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ink-06);
  }

  .nav__menu {
    display: none;
  }
  .nav__toggle {
    display: inline-block;
  }
  .nav__menu.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink-06);
    padding: 8px 0;
    box-shadow: 0 10px 30px -18px rgba(11, 31, 58, 0.25);
    max-height: calc(100svh - var(--nav-height));
    overflow-y: auto;
  }
  .nav__menu.is-open a {
    padding: 16px var(--shell-pad-x);
    border-bottom: 1px solid var(--ink-05);
  }
  .nav__menu.is-open a:last-child {
    border-bottom: none;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__legal {
    text-align: left;
  }
  .footer__legal-line {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  :root {
    --shell-pad-x: var(--shell-pad-x-sm);
  }

  .nav__actions .nav__contact {
    display: none;
  }
  .nav__menu.is-open a.nav__menu-cta {
    display: inline-flex;
    justify-content: center;
    margin: 12px var(--shell-pad-x) 8px;
    padding: 14px 24px;
    color: var(--on-dark);
    border-bottom: none;
  }
  .nav__menu.is-open a.nav__menu-cta:hover,
  .nav__menu.is-open a.nav__menu-cta:focus-visible {
    color: var(--on-dark);
  }

  .hero__inner {
    padding: 120px var(--shell-pad-x) 56px;
  }
  .hero__logo {
    width: 224px;
    margin-bottom: 56px;
  }
  .overview,
  .capabilities,
  .gallery,
  .glance,
  .contact {
    padding: 56px 0;
  }
  .overview .feature-bar {
    margin-top: 40px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .feature-bar {
    grid-template-columns: 1fr;
  }
  .feature-bar__cell {
    border-right: none;
    border-bottom: 1px solid var(--ink-06);
  }
  .feature-bar__cell:last-child {
    border-bottom: none;
  }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }
  .plate__frame {
    box-shadow: 3px 6px 14px rgba(11, 31, 58, 0.18);
  }
  .cap-card,
  .pillar-card,
  .contact-card {
    padding: 24px 20px;
  }
  .spec-card {
    padding: 24px 20px;
  }
}
