/* FalcLabs — Part 6 palette: Navy #1A3C6E, Blue #2E86C1, Light #F0F4F8, Text #1C2833 */

:root {
  --navy: #1a3c6e;
  --blue: #2e86c1;
  --light: #f0f4f8;
  --text: #1c2833;
  --white: #ffffff;
  --navy-deep: #122a4d;
  --blue-soft: rgba(46, 134, 193, 0.12);
  --border: rgba(26, 60, 110, 0.15);
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 60, 110, 0.08);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

/* Subtle lab grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(26, 60, 110, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 244, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.brand span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 600;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
}

.nav-main a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-main a:hover {
  color: var(--navy);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch button {
  font-family: var(--font-body);
  border: none;
  background: transparent;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  opacity: 0.55;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
  opacity: 1;
}

/* Hero */
.hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.75rem, 3.5vw, 2.75rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero .lede {
  margin: 0 0 1.25rem;
  max-width: 36ch;
  opacity: 0.92;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

#chipflow-analyzer {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-carousel {
  position: relative;
}

.hero-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-carousel-slide > .hero-chipflow-teaser {
  flex: 1;
}

.hero-chipflow-teaser {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: 200px;
  padding: 0 0 0.35rem;
  background: transparent;
  border-radius: var(--radius);
  text-decoration: none;
  outline-offset: 2px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-chipflow-teaser__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  letter-spacing: -0.02em;
}

.hero-chipflow-teaser__crop {
  width: 100%;
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Non-flex overflow box: reliably clips transformed <img> to rounded rect (flex + overflow is buggy). */
.hero-chipflow-teaser__img-frame {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  line-height: 0;
  background: var(--white);
}

.hero-chipflow-teaser:hover {
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(26, 60, 110, 0.12);
  transform: translateY(-1px);
}

.hero-chipflow-teaser:focus-visible {
  text-decoration: none;
  box-shadow: 0 0 0 3px var(--blue-soft), 0 0 0 5px var(--blue);
}

/* ~5% inset per side: show central 90% width (scaleX 1/0.9); clipping is .hero-chipflow-teaser__img-frame */
.hero-chipflow-teaser__img-frame img {
  width: 100%;
  max-width: none;
  max-height: 220px;
  height: auto;
  object-fit: contain;
  transform: scaleX(calc(1 / 0.9));
  transform-origin: center center;
  display: block;
}

.hero-carousel-slide--innovate {
  padding-top: 0.15rem;
}

.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hero-carousel-nav:hover {
  background: var(--blue);
  color: var(--white);
}

/* Sit near the hero-card inner edge (card padding 1.5rem) */
.hero-carousel-prev {
  left: -1.2rem;
}

.hero-carousel-next {
  right: -1.2rem;
}

@media (max-width: 900px) {
  .hero-carousel-prev {
    left: -0.35rem;
  }

  .hero-carousel-next {
    right: -0.35rem;
  }
}

.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(46, 134, 193, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel-dot.is-active {
  background: var(--blue);
  transform: scale(1.15);
}

.hero-metrics {
  display: grid;
  gap: 1rem;
}

.metric {
  padding: 0.85rem 1rem;
  background: var(--light);
  border-radius: 8px;
  border-left: 3px solid var(--blue);
}

.metric strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
}

.metric span {
  font-size: 0.9rem;
  opacity: 0.85;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 60, 110, 0.25);
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Sections */
section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin: 0 0 0.5rem;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  color: var(--navy);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-intro {
  max-width: 62ch;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.products {
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  border-block: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.product-grid--single {
  grid-template-columns: 1fr;
  max-width: 52rem;
  margin-inline: auto;
}

/* ChipFlow: align card with intro copy width */
.products--focus-chipflow .product-grid--single {
  max-width: 58ch;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.products--focus-chipflow {
  text-align: center;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-visual {
  aspect-ratio: 4/3;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.product-visual img {
  max-height: 220px;
  width: auto;
  object-fit: contain;
}

.product-card--feature .product-visual {
  aspect-ratio: 16 / 10;
  padding: 1.5rem 1.25rem;
}

.product-card--feature .product-visual img {
  max-height: 320px;
}

.product-card--feature .product-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.product-card--feature .product-tagline {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.25;
}

.product-card--feature .product-body p {
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ChipFlow product shot: block height follows image (no empty letterboxing) */
.product-card--chipflow {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 8px 32px rgba(26, 60, 110, 0.08),
    0 0 0 1px rgba(26, 60, 110, 0.04);
}

.product-card--chipflow .product-visual--chipflow {
  aspect-ratio: auto;
  min-height: 0;
  padding: 0.75rem 0.85rem 0.65rem;
  background: linear-gradient(180deg, #f2f4f7 0%, #e9edf2 100%);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

.product-card--chipflow .product-visual--chipflow img {
  max-height: none;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(26, 60, 110, 0.09);
}

.product-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.product-tagline {
  font-weight: 600;
  color: var(--blue);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.product-body p {
  margin: 0;
  flex: 1;
  font-size: 0.98rem;
  opacity: 0.9;
}

.pill {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.step p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.88;
}

/* Specs */
.specs-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.specs th,
.specs td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  background: var(--light);
  width: 38%;
}

.specs tr:last-child td,
.specs tr:last-child th {
  border-bottom: none;
}

/* Contact */
.contact {
  background: var(--navy);
  color: var(--light);
}

.contact .section-label {
  color: rgba(240, 244, 248, 0.75);
}

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

.contact .section-intro {
  opacity: 0.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-card {
  background: var(--white);
  color: var(--text);
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--light);
}

.form-group textarea {
  min-height: 120px;
  max-height: 32rem;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-form-card .form-submit-full {
  width: 100%;
  border: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5em;
}

.form-status.success {
  color: #0d7a4f;
  font-weight: 600;
}

.form-status.error {
  color: #b42318;
  font-weight: 600;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.person {
  text-align: center;
  background: var(--white);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.person-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid var(--blue-soft);
  background: var(--light);
}

.person h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  color: var(--navy);
}

.person .role {
  font-size: 0.88rem;
  opacity: 0.8;
  margin: 0 0 0.75rem;
}

.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.person-links a {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-line {
  margin: 0;
}

.footer-line a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.footer-line a:hover {
  color: var(--navy);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 200;
}

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