/* ===========================================================
   OptiFab — v1 "FOUNDRY"
   Dark industrial / predictive-intelligence theme
   =========================================================== */

:root {
  /* navy / ink */
  --ink-900: #081521;
  --ink-800: #0B1E2D;
  --ink-700: #0E2436;
  --ink-600: #143047;

  /* teal accent */
  --teal: #16D7C4;
  --teal-600: #0FB5A6;
  --teal-700: #0D9488;
  --cyan: #22D3EE;

  /* light surfaces */
  --white: #FFFFFF;
  --light: #F4F8FA;
  --light-2: #E7EEF2;

  /* text */
  --muted: #9FB3C0;
  --muted-light: #5b7384;

  --radius: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --shadow-teal: 0 12px 40px -12px rgba(22,215,196,.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--ink-900);
  color: #DCE7EE;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .stat-num, .stage-num {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 700;
}

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

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

.accent { color: var(--teal); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--teal); color: var(--ink-900);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ----------------------- Buttons ----------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal); color: var(--ink-900);
  box-shadow: 0 6px 24px -8px rgba(22,215,196,.55);
}
.btn-primary:hover { background: #2ce6d4; transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(159,179,192,.4);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ----------------------- Slashed-O motif ----------------------- */
.slash-o {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid var(--teal); border-radius: 50%;
  position: relative; vertical-align: middle;
}
.slash-o::after {
  content: ""; position: absolute; inset: -3px 5px; width: 2px;
  background: var(--teal); transform: rotate(45deg); border-radius: 2px;
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,21,33,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(159,179,192,.12);
  transition: background .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(8,21,33,.92);
  border-bottom-color: rgba(22,215,196,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-logo { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .94rem; font-weight: 500; color: var(--muted);
  position: relative; transition: color .2s;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--teal); transition: width .25s var(--ease);
}
.nav a:not(.nav-cta):hover { color: #fff; }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--teal); color: var(--ink-900) !important; font-weight: 600;
  padding: 9px 18px; border-radius: 8px; transition: background .2s, transform .2s;
}
.nav-cta:hover { background: #2ce6d4; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; z-index: 110;
}
.hamburger span {
  width: 26px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding: 120px 0 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(115deg, rgba(8,21,33,.94) 30%, rgba(11,30,45,.72) 65%, rgba(13,148,136,.32) 100%),
    url("assets/img/photo-2.jpg") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 78% 60%, rgba(22,215,196,.22), transparent 55%);
  mix-blend-mode: screen;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; opacity: .25;
  background-image:
    linear-gradient(rgba(159,179,192,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,179,192,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 40%, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal);
  padding: 7px 14px; border: 1px solid rgba(22,215,196,.3);
  border-radius: 100px; background: rgba(22,215,196,.06);
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(3rem, 8.5vw, 6rem);
  margin-bottom: 22px;
}
.hero-tagline {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem); font-weight: 500;
  color: #fff; margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.06rem; color: var(--muted); max-width: 600px; margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.thermal-bar {
  height: 5px; width: 100%; max-width: 520px; border-radius: 100px;
  background: linear-gradient(90deg, var(--ink-700), var(--teal-700), var(--teal), var(--cyan), #a7f3f0);
  background-size: 300% 100%;
  animation: thermalFlow 6s linear infinite;
  box-shadow: 0 0 24px -4px rgba(22,215,196,.6);
}
@keyframes thermalFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ===================== TRUST STRIP ===================== */
.trust-strip {
  background: var(--ink-800);
  border-top: 1px solid rgba(159,179,192,.1);
  border-bottom: 1px solid rgba(159,179,192,.1);
  padding: 26px 0;
}
.trust-inner {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center;
}
.trust-label {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted-light); font-weight: 600;
}
.trust-logos { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.trust-logo img { height: 26px; width: auto; opacity: .65; transition: opacity .25s, transform .25s; filter: grayscale(1) brightness(1.4); }
.trust-logo:hover img { opacity: 1; transform: translateY(-2px); filter: none; }
.trust-techstars img { filter: none; opacity: .85; }
.trust-techstars:hover img { opacity: 1; }

/* ===================== SECTIONS ===================== */
.section { padding: 100px 0; position: relative; }
.section.light { background: var(--light); color: var(--ink-800); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
  position: relative; padding-left: 26px;
}
.kicker::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 2px;
  background: var(--teal); transform: translateY(-50%);
}
.kicker-dark { color: var(--teal-700); }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 18px; }
.light .section-head h2 { color: var(--ink-900); }
.lede { font-size: 1.1rem; color: var(--muted); }
.lede-dark { color: var(--muted-light); }

/* ===================== PROBLEM ===================== */
.section-problem { background: var(--ink-900); }
.problem-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }
.problem-layout figure {
  background: var(--ink-800); border: 1px solid rgba(159,179,192,.12);
  border-radius: var(--radius); padding: 20px; overflow: hidden;
}
.problem-layout img { border-radius: 8px; }
.problem-photo img { object-fit: cover; height: 100%; min-height: 220px; }
.problem-layout figcaption {
  margin-top: 16px; font-size: .9rem; color: var(--muted);
}

/* ===================== SOLUTION ===================== */
.solution-figure {
  background: #fff; border: 1px solid var(--light-2); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 30px 60px -30px rgba(8,21,33,.25);
}

/* ===================== HOW IT WORKS ===================== */
.section-how { background: var(--ink-800); }
.stages {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: stage;
}
.stage {
  background: var(--ink-700); border: 1px solid rgba(159,179,192,.12);
  border-radius: var(--radius); padding: 34px 28px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.stage::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--cyan)); transform: scaleX(0);
  transform-origin: left; transition: transform .4s var(--ease);
}
.stage:hover { transform: translateY(-5px); border-color: rgba(22,215,196,.4); box-shadow: 0 24px 50px -28px rgba(0,0,0,.7); }
.stage:hover::before { transform: scaleX(1); }
.stage-num {
  font-size: 2.6rem; color: var(--teal); display: block; margin-bottom: 14px; opacity: .9;
}
.stage h3 { font-size: 1.25rem; margin-bottom: 12px; }
.stage p { color: var(--muted); font-size: .98rem; }
.stage strong { color: var(--teal); font-weight: 600; }

/* ===================== FEATURES ===================== */
.section-features { background: var(--ink-900); }
.covers-figure {
  background: #fff; border-radius: var(--radius); padding: 26px; margin-bottom: 56px;
  border: 1px solid var(--light-2); box-shadow: 0 30px 60px -30px rgba(8,21,33,.3);
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--ink-800); border: 1px solid rgba(159,179,192,.1);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(22,215,196,.35); background: var(--ink-700); }
.feature-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(22,215,196,.1); margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.12rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ===================== OUTCOMES ===================== */
.section-outcomes { background: var(--ink-800); overflow: hidden; }
.thermal-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(22,215,196,.16), transparent 35%),
    radial-gradient(circle at 88% 80%, rgba(34,211,238,.14), transparent 38%);
}
.section-outcomes .container { position: relative; z-index: 1; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.stat {
  text-align: center; padding: 30px 16px;
  border: 1px solid rgba(159,179,192,.12); border-radius: var(--radius);
  background: rgba(8,21,33,.5);
  transition: transform .3s var(--ease), border-color .3s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(22,215,196,.4); }
.stat-num {
  font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--teal); display: block;
  margin-bottom: 8px; text-shadow: 0 0 24px rgba(22,215,196,.35);
}
.stat-label { font-size: .92rem; color: var(--muted); display: block; }
.stat-label small { display: block; font-size: .78rem; color: var(--muted-light); margin-top: 4px; }

/* ===================== INDUSTRIES ===================== */
.industries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.industry {
  background: #fff; border: 1px solid var(--light-2); border-radius: var(--radius);
  padding: 32px 16px; text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.industry:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -22px rgba(8,21,33,.35); border-color: var(--teal); }
.industry-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(22,215,196,.14), rgba(34,211,238,.1));
}
.industry-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--teal-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.industry span { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--ink-900); font-size: 1rem; }

/* ===================== INVESTORS ===================== */
.section-investors { background: var(--ink-900); text-align: center; }
.section-investors .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.section-investors .kicker { padding-left: 0; }
.section-investors .kicker::before { display: none; }
.investors-feature {
  display: inline-flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 44px 70px; border-radius: 20px; margin-bottom: 50px;
  background: var(--ink-800); border: 1px solid rgba(22,215,196,.2);
  box-shadow: var(--shadow-teal);
}
.techstars-logo { height: 40px; width: auto; }
.investors-tag {
  font-family: "Space Grotesk", sans-serif; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); font-size: .9rem;
}
.partners { margin-bottom: 50px; }
.partners-label {
  display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted-light); font-weight: 600; margin-bottom: 24px;
}
.partners-logos { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.partners-logos img { height: 54px; width: auto; opacity: .8; filter: brightness(1.15); transition: opacity .25s, transform .25s; }
.partners-logos img:hover { opacity: 1; transform: translateY(-2px); }
.partner-figure {
  background: #fff; border-radius: var(--radius); padding: 26px; max-width: 920px; margin: 0 auto;
  border: 1px solid var(--light-2);
}

/* ===================== QUOTE ===================== */
.section-quote { background: var(--ink-800); padding: 120px 0; }
.section-quote blockquote { max-width: 860px; margin: 0 auto; text-align: center; position: relative; }
.quote-mark {
  font-family: "Space Grotesk", sans-serif; font-size: 6rem; color: var(--teal);
  line-height: .5; display: block; opacity: .35; margin-bottom: 10px;
}
.section-quote p {
  font-family: "Space Grotesk", sans-serif; font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 500; color: #fff; line-height: 1.3; margin-bottom: 22px;
}
.section-quote cite { font-style: normal; color: var(--muted); font-size: 1rem; }

/* ===================== CTA / CONTACT ===================== */
.section-cta {
  background: linear-gradient(160deg, var(--ink-900), var(--ink-700));
  overflow: hidden;
}
.section-cta .container { position: relative; z-index: 1; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cta-copy h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }
.cta-copy p { color: var(--muted); font-size: 1.08rem; margin-bottom: 26px; max-width: 440px; }
.cta-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; }
.cta-loc { color: var(--teal); font-size: 1.1rem; }

.cta-form {
  background: rgba(8,21,33,.6); border: 1px solid rgba(159,179,192,.15);
  border-radius: 18px; padding: 34px;
  backdrop-filter: blur(6px);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(159,179,192,.2);
  border-radius: 10px; padding: 13px 15px; color: #fff; font-family: inherit; font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,215,196,.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-light); }
.field textarea { resize: vertical; }
.form-fallback { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 16px; }
.form-fallback a { color: var(--teal); }
.form-fallback a:hover { text-decoration: underline; }
.form-success {
  background: rgba(22,215,196,.1); border: 1px solid rgba(22,215,196,.4);
  color: var(--teal); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
  font-size: .95rem; font-weight: 500;
}
.field-error { border-color: #f87171 !important; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--ink-900); border-top: 1px solid rgba(159,179,192,.1); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; padding-bottom: 44px; }
.footer-logo { height: 30px; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 320px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-nav h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal);
  margin-bottom: 16px;
}
.footer-nav a, .footer-loc {
  display: block; color: var(--muted); font-size: .94rem; margin-bottom: 10px; transition: color .2s;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid rgba(159,179,192,.1); padding-top: 22px; padding-bottom: 28px;
  color: var(--muted-light); font-size: .88rem;
}
.footer-backed { display: inline-flex; align-items: center; gap: 10px; }
.footer-backed img { height: 16px; opacity: .7; }

/* ===================== REVEAL ANIMATION ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 8px; padding: 100px 30px 40px;
    background: var(--ink-800); border-left: 1px solid rgba(22,215,196,.2);
    transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.6);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 16px; width: 100%; text-align: center; }
  .hamburger { display: flex; }

  .problem-layout { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .stage-num { font-size: 2.2rem; }
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .investors-feature { padding: 34px 36px; }
  .partners-logos { gap: 32px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .thermal-bar { animation: none; }
  * { transition-duration: .01ms !important; }
}
