/* ===================================================================
   Commitive — corporate landing
   Brand: dark charcoal-navy base + teal→green gradient
   =================================================================== */

:root {
  --bg:        #101319;
  --bg-2:      #161a21;
  --panel:     #1b2029;
  --panel-2:   #20262f;
  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.045);

  --text:      #f1f4f8;
  --muted:     #9aa4b2;
  --muted-2:   #6c7686;

  --teal:      #34c3a6;
  --green:     #6cd67f;
  --accent:    #8fe6a8;
  --grad:      linear-gradient(100deg, #34c3a6 0%, #4fce92 52%, #6cd67f 100%);
  --grad-text: linear-gradient(100deg, #45cca6 0%, #7ee08c 100%);
  --grad-soft: linear-gradient(135deg, rgba(52,195,166,0.14), rgba(108,214,127,0.10));

  --radius:    20px;
  --radius-sm: 14px;
  --maxw:      1140px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle ambient glow over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(52, 195, 166, 0.10), transparent 60%),
    radial-gradient(50% 45% at 5% 110%, rgba(108, 214, 127, 0.07), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  color: #fff;
}

p { margin: 0 0 1rem; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 26px;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--teal);
  color: #06281f;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* inline icon defaults (stroke style) */
svg { fill: none; }
.ico-ext { width: 14px; height: 14px; }
.ico-ext path { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 0.84rem; }

.btn-primary {
  background: var(--grad);
  color: #05271e;
  box-shadow: 0 10px 34px -12px rgba(52, 195, 166, 0.65);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px -14px rgba(108, 214, 127, 0.75);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--teal); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 19, 25, 0.7);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand-logo { height: 41px; width: auto; display: block; }
.brand-logo-footer { height: 42px; margin-bottom: 16px; }
.nav { display: flex; gap: 30px; margin-left: auto; font-weight: 500; }
.nav a { color: var(--muted); font-size: 0.94rem; position: relative; transition: color 0.2s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--grad); border-radius: 2px;
  transition: width 0.28s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 3px; font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; }
.lang-btn { background: none; border: none; color: var(--muted-2); cursor: pointer; padding: 4px; transition: color 0.2s var(--ease); }
.lang-btn.is-active { color: var(--accent); }
.lang-btn:hover { color: #fff; }
.lang-sep { color: var(--line-2); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-2); }
.hero-bg {
  position: absolute; inset: 0;
  background: url("/assets/hero-bg.svg") center right / cover no-repeat;
  opacity: 0.95;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-2) 6%, rgba(22, 26, 33, 0.5) 46%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(78px, 12vw, 158px) 26px clamp(70px, 9vw, 124px);
  max-width: 830px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 7px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(52, 195, 166, 0.07);
}
.hero-title { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; margin-bottom: 24px; }
.hero-lead { font-size: clamp(1.06rem, 2vw, 1.32rem); color: var(--muted); max-width: 670px; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta-center { justify-content: center; }

.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 40px; margin: 58px 0 0; padding: 0; }
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-head); font-size: 1.08rem; color: #fff; }
.hero-meta span { font-size: 0.88rem; color: var(--muted-2); }

/* ---------- Logo rows (greyish, uniform) ---------- */
.trustbar { border-block: 1px solid var(--line-soft); background: var(--bg); padding: 34px 0; }
.trustbar-label {
  text-align: center; font-size: 0.8rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px;
}
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 36px;
}
.logo-wall img {
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}
.logo-wall img:hover {
  opacity: 0.85;
}

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 128px) 0; position: relative; }
.section-alt {
  background:
    url("/assets/pattern-hex.svg") center / 540px repeat,
    var(--bg-2);
}
.section-alt::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 8%, transparent 92%, var(--bg) 100%);
  pointer-events: none;
}
.kicker {
  font-family: var(--font-head); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.95rem); max-width: 20ch; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { max-width: 26ch; }
.section-sub { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-top: 18px; }
.section-copy h2 { margin-bottom: 22px; }
.section-copy p { font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 84px); align-items: center; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad); }
.stat-num {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; color: var(--muted); }

/* ---------- Cards (uniform grey icons → teal on hover) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 22px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 195, 166, 0.4);
  box-shadow: 0 26px 54px -30px rgba(52, 195, 166, 0.5);
}

/* uniform icon system — same size, greyish, color on hover */
.card-icon, .feature-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card-icon { margin-bottom: 22px; }
.card-icon svg, .feature-ico svg { width: 26px; height: 26px; }
.card-icon svg [stroke], .card-icon svg path, .card-icon svg circle,
.feature-ico svg path, .feature-ico svg rect, .feature-ico svg circle {
  stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card:hover .card-icon {
  color: var(--accent);
  border-color: rgba(52, 195, 166, 0.5);
  background: var(--grad-soft), var(--panel-2);
}
.card h3 { font-size: 1.26rem; margin-bottom: 10px; }
.card p { font-size: 0.97rem; margin: 0; }

/* ---------- Software feature list ---------- */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 48px;
  margin-bottom: clamp(56px, 8vw, 92px);
}
.feature { display: flex; gap: 20px; align-items: flex-start; }
.feature-ico { flex: 0 0 auto; }
.feature:hover .feature-ico { color: var(--accent); border-color: rgba(52,195,166,0.5); background: var(--grad-soft), var(--panel-2); }
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { font-size: 0.98rem; margin: 0; }

/* ---------- R&D projects ---------- */
.projects {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(52,195,166,0.10), transparent 55%),
    var(--panel);
  padding: clamp(32px, 5vw, 52px);
}
.projects-head { margin-bottom: 32px; }
.projects-head h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 22ch; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 26px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.project-card:hover { border-color: rgba(52,195,166,0.4); transform: translateY(-4px); }
.project-tag {
  display: inline-block; font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; margin-bottom: 16px;
}
.project-card h4 { font-size: 1.12rem; margin-bottom: 10px; }
.project-card p { font-size: 0.94rem; margin: 0; }

/* ---------- Clarive ---------- */
.grid-2-reverse .clarive-visual { order: -1; }
.clarive-visual { display: flex; justify-content: center; }
.clarive-card {
  width: 100%; max-width: 440px;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(52,195,166,0.2), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 38px 36px;
  position: relative; overflow: hidden;
  box-shadow: 0 34px 80px -44px rgba(0, 0, 0, 0.85);
}
.clarive-card::after {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/pattern-hex.svg") top right / 72% no-repeat;
  opacity: 0.5; pointer-events: none;
}
.clarive-badge {
  position: relative; z-index: 1; display: inline-block;
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent);
  padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 20px;
}
.clarive-logo { position: relative; z-index: 1; display: block; height: 28px; width: auto; }
.clarive-tag { position: relative; z-index: 1; font-size: 0.95rem; color: var(--accent); margin-bottom: 26px; }
.clarive-pillars { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.clarive-pillars li { display: flex; flex-direction: column; padding-left: 18px; border-left: 2px solid; border-image: var(--grad) 1; }
.clarive-pillars strong { font-family: var(--font-head); color: #fff; font-size: 1rem; }
.clarive-pillars span { font-size: 0.87rem; color: var(--muted); }

/* ---------- Funding (light card, uniform greyscale logos) ---------- */
.funding { padding-block: clamp(48px, 7vw, 84px); }
.funding-inner {
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 48px);
  text-align: center;
}
.funding-label {
  color: #5a6573;
  font-size: 0.95rem;
  max-width: 64ch;
  margin: 0 auto 28px;
}
.funding-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px 56px;
}
.funding-logo {
  height: 56px;            /* uniform size */
  width: auto;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.funding-logo:hover { filter: grayscale(0); opacity: 1; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background: url("/assets/cta-bg.svg") center / cover no-repeat; }
.cta-inner { position: relative; z-index: 2; text-align: center; padding: clamp(74px, 11vw, 134px) 26px; max-width: 720px; }
.cta h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); margin-bottom: 18px; }
.cta p { font-size: 1.12rem; color: var(--text); opacity: 0.92; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line-soft); padding-top: 72px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 42px; padding-bottom: 52px; }
.footer-tag { font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 { font-size: 0.76rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a, .footer-col address { color: var(--muted); font-style: normal; font-size: 0.95rem; line-height: 1.65; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 26px 32px; border-top: 1px solid var(--line-soft); font-size: 0.85rem; color: var(--muted-2); }
.footer-bottom p { margin: 0; color: var(--muted-2); }
.footer-legal a { color: var(--muted-2); }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Reveal (progressive: only hidden when JS is active) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-list { grid-template-columns: 1fr; gap: 26px; }
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(16, 19, 25, 0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 8px 26px 20px;
    transform: translateY(-130%); transition: transform 0.35s var(--ease), visibility 0.35s var(--ease);
    margin-left: 0; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .header-actions { margin-left: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2-reverse .clarive-visual { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hero-meta { gap: 24px; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 36px; }
  .funding-logo { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .project-card:hover { transform: none; }
}
