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

:root {
  --white: #ffffff;
  --off-white: #f5f5f5;
  --light-gray: #e8e8e8;
  --mid-gray: #666666;
  --dark: #1f2124;
  --black: #0a0a0a;
  --accent: #2d6ff5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--white);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
body > .hero {
  flex: 1;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HEADER ─────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
  background: var(--dark);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* inner pages: header sits above dark page-hero, so keep white */
body.inner-page header {
  position: relative;
  background: var(--dark);
}

body.inner-page header nav a {
  color: rgba(255,255,255,0.75);
}

body.inner-page header nav a:hover {
  color: var(--white);
}

body.inner-page header nav a[aria-current="page"] {
  color: var(--white);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.15s;
}

.logo:hover img {
  opacity: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--white);
}

nav a[aria-current="page"],
nav a.active {
  color: var(--white);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--dark);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(45, 111, 245, 0.12) 0%, transparent 70%),
    radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 12rem 2rem 12rem;
  max-width: 900px;
}


.hero-logo {
  height: 100px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.hero-content h1:last-of-type {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 2rem;
}

/* ── SECTIONS ────────────────────────────── */
section[id], div[id] {
  scroll-margin-top: 72px;
}

section.content-section {
  padding: 5rem 0;
}

section.content-section.gray {
  background: var(--off-white);
}

section.content-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ── ABOUT TWO-COL ───────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col p:not(.section-label) {
  color: var(--mid-gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ── CARDS ───────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 2rem;
  border-radius: 4px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--mid-gray);
}

/* ── TEAM GRID ───────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 0 auto 0.9rem;
  border-radius: 3px;
  filter: grayscale(15%);
  transition: filter 0.2s;
}

.team-member:hover img {
  filter: grayscale(0%);
}

.team-member strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.team-member span {
  font-size: 0.8rem;
  color: var(--mid-gray);
}

.team-member a {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.team-member a:hover {
  border-bottom-color: var(--accent);
}

/* ── FOOTER ──────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

footer .copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.footer-legal a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.15s;
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  color: rgba(255,255,255,0.7);
}

.contact-social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

.contact-social-links a {
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.contact-social-links a:hover {
  color: var(--dark);
}

/* ── BUTTONS ─────────────────────────────── */
button.btn-outline {
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.15s, border-color 0.15s;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-outline.dark {
  border-color: var(--dark);
  color: var(--dark);
}

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

#team-toggle {
  background: none;
  border-color: var(--mid-gray);
  color: var(--mid-gray);
}

#team-toggle:hover {
  background: none;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline.accent {
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn-text {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
}

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

/* ── PAGE HERO (inner pages) ─────────────── */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 8rem 0 4rem;
}

.page-hero .section-label {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  font-size: 1rem;
}

/* ── CONTACT ─────────────────────────────── */
.contact-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
}

.contact-header .section-label {
  margin-bottom: 0.5rem;
}

.contact-header h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.75rem;
}

.contact-intro,
.section-intro {
  font-size: 0.95rem;
  color: var(--mid-gray);
  max-width: none;
  line-height: 1.7;
  margin: 0;
}

.contact-details {
  display: flex;
  gap: 0;
  margin-top: 3rem;
}

.contact-detail-item {
  flex: 1;
  padding: 1.5rem 2rem 0 0;
}

.contact-detail-item + .contact-detail-item {
  padding-left: 2rem;
  border-left: 1px solid var(--light-gray);
}


.contact-detail-item h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.contact-detail-item p {
  font-size: 0.95rem;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.contact-detail-item a {
  color: var(--dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--dark);
}

/* ── R&D SECTION ─────────────────────────── */
.rd-section {
  background: var(--off-white);
  padding: 4rem 0;
}

.rd-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
}

.rd-header .section-label {
  margin-bottom: 0.5rem;
}

.rd-header .rd-approach-text {
  margin-top: 0.75rem;
  max-width: none;
}

.rd-header h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.rd-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.rd-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid var(--light-gray);
  text-decoration: none;
  transition: background 0.15s;
  cursor: default;
}

.rd-item:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--light-gray);
}

.rd-item:nth-child(even) {
  padding-left: 2rem;
}

.rd-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.rd-item:hover {
  background: rgba(0,0,0,0.03);
}

.rd-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  align-self: start;
  padding-top: 0.2rem;
}

.rd-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.rd-body p {
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.5;
}

.rd-approach {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

.rd-approach .section-label {
  margin-bottom: 0.5rem;
}

.rd-approach-text {
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.7;
  margin: 0;
}

.rd-arrow {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.2);
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
  display: block;
}

.rd-item:hover .rd-arrow {
  color: var(--white);
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .rd-list {
    grid-template-columns: 1fr;
  }
  .rd-item:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
  .rd-item:nth-child(even) {
    padding-left: 0;
  }
  .rd-item:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .rd-item:last-child {
    border-bottom: none;
  }
  .rd-header { flex-direction: column; gap: 0.5rem; }
}

/* ── TICKER ──────────────────────────────── */
.ticker-wrap {
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  height: 80px;
}

.ticker-wrap--inset {
  border: none;
  background: transparent;
  margin-top: 0;
}

.ticker-wrap--inset .ticker-item img {
  filter: grayscale(1) opacity(0.5);
  mix-blend-mode: multiply;
}

.ticker-wrap--inset:hover .ticker-item img {
  filter: grayscale(0) opacity(1);
  mix-blend-mode: normal;
}

.ticker-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 2rem;
  border-right: 1px solid var(--light-gray);
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 7rem;
  width: max-content;
  will-change: transform;
}

.ticker-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-item img {
  height: 32px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.2s;
}

.ticker-wrap:hover .ticker-item img {
  filter: grayscale(0) opacity(1);
}

.ticker-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mid-gray);
  white-space: nowrap;
}

/* ── PARTNER GRID ────────────────────────── */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--light-gray);
}

.partner-card {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  text-decoration: none;
  min-height: 130px;
  transition: background 0.15s;
}

.partner-card:hover {
  background: var(--off-white);
}

.partner-card img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter 0.2s;
}

.partner-card:hover img {
  filter: grayscale(0) opacity(1);
}

.partner-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mid-gray);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.partner-card:hover .partner-name {
  color: var(--dark);
}

@media (max-width: 700px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── LEGAL CONTENT ───────────────────────── */
.legal-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--mid-gray);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--dark);
  text-decoration: underline;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-content ul li {
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

/* ── COOKIE BANNER ───────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dark);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookie-banner.cc-hidden {
  transform: translateY(100%);
  opacity: 0;
}

.cc-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cc-text {
  flex: 1;
  min-width: 260px;
}

.cc-text strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.cc-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.cc-text a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}

.cc-actions {
  flex-shrink: 0;
}

#cc-accept {
  background: var(--white);
  color: var(--dark);
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  font-family: inherit;
  transition: background 0.15s;
}

#cc-accept:hover {
  background: var(--off-white);
}

/* ── BLOG NAV LINK ───────────────────────── */
.nav-blog-mobile {
  display: none;
}

.nav-blog {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  line-height: 1;
  padding-right: 1.25rem;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: color 0.15s;
}

.nav-blog:hover {
  color: var(--white);
}

/* ── LANG TOGGLE ─────────────────────────── */
.lang-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s;
}

.lang-toggle:hover {
  color: var(--white);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ── BURGER MENU ─────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger.burger-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.burger-open span:nth-child(2) {
  opacity: 0;
}
.burger.burger-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {
  .burger {
    display: flex;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  #main-nav.nav-open {
    display: flex;
  }

  #main-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1rem;
  }

  .nav-blog {
    display: none;
  }

  .nav-blog-mobile {
    display: block;
  }

  #main-nav a:last-child {
    border-bottom: none;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-details {
    flex-wrap: wrap;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  header {
    position: fixed !important;
  }

  /* Contact: stack items vertically, remove side borders */
  .contact-details {
    flex-direction: column;
    gap: 1.5rem;
  }

  .contact-detail-item {
    padding: 0 0 1.5rem 0 !important;
    border-left: none !important;
    border-bottom: 1px solid var(--light-gray);
  }

  .contact-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
  }

  /* Footer: stack copyright and legal links */
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-legal {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ── BACK TO TOP ─────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--accent);
}
