/* ============================================
   LOTUS BIONICS — APPLE-STYLE REDESIGN
   ============================================ */

:root {
  --black:   #1d1d1f;
  --gray-1:  #424245;
  --gray-2:  #6e6e73;
  --gray-3:  #aeaeb2;
  --gray-4:  #d2d2d7;
  --gray-5:  #f5f5f7;
  --white:   #ffffff;

  --accent:  #0071e3;   /* Apple blue */

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1080px;
  --radius: 18px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── UTILS ──────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── SCROLL REVEAL ──────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SECTION LABELS / TITLES ─────────────────── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-2);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 64px;
}

/* ─── NAV ────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}
.nav-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gray-1);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }
.nav-cta {
  color: var(--accent) !important;
  font-weight: 500 !important;
}
.nav-cta:hover { opacity: 0.8; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ─── HERO ───────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding-top: 52px;
  overflow: hidden;
  background: var(--white);
}

.hero-text {
  padding: 72px 64px 80px 80px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.hero-logo-big {
  width: 600px;
  height: 600px;
  object-fit: contain;
  flex-shrink: 0;
  max-width: none;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

#hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--black);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-2);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 980px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: -0.01em;
}
.btn-dark:hover { background: #333; transform: translateY(-1px); }

.btn-light {
  display: inline-flex;
  align-items: center;
  background: var(--gray-5);
  color: var(--black);
  padding: 13px 26px;
  border-radius: 980px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: -0.01em;
}
.btn-light:hover { background: var(--gray-4); transform: translateY(-1px); }

.hero-image-wrap {
  position: relative;
  height: 100%;
  min-height: 100svh;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-image-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 25%);
  pointer-events: none;
}

/* ─── STATEMENT ──────────────────────────────── */
#statement {
  background: var(--black);
  padding: 96px 24px;
  text-align: center;
}
.statement-text {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--white);
  max-width: 760px;
  margin: 0 auto;
}
.statement-text .br-desk { display: block; }

/* ─── TECHNOLOGY ─────────────────────────────── */
#technology {
  padding: 120px 0;
  background: var(--white);
}
#technology .container {
  max-width: var(--max-w);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-4);
  border-radius: var(--radius);
  overflow: hidden;
}

.tech-card {
  background: var(--white);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.25s;
}
.tech-card:hover { background: var(--gray-5); }

.tech-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-3);
}

.tech-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-icon svg { width: 26px; height: 26px; }

.tech-icon.eog { background: #e8f4fd; color: var(--accent); }
.tech-icon.emg { background: #fdecea; color: #d93025; }
.tech-icon.ml  { background: #e6f4ea; color: #1e8e3e; }

.tech-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1.3;
}
.tech-card p {
  font-size: 0.88rem;
  color: var(--gray-2);
  line-height: 1.75;
}

/* ─── HOW IT WORKS ───────────────────────────── */
#how-it-works {
  padding: 120px 0;
  background: var(--gray-5);
}

.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 64px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--radius);
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 8px;
}
.step-body p {
  font-size: 0.83rem;
  color: var(--gray-2);
  line-height: 1.7;
}
.pipeline-connector {
  align-self: center;
  width: 32px;
  height: 1px;
  background: var(--gray-3);
  position: relative;
  margin: 0 4px;
}
.pipeline-connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  border: 4px solid transparent;
  border-left: 5px solid var(--gray-3);
}

.latency-callout {
  display: flex;
  align-items: baseline;
  gap: 16px;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 48px;
}
.latency-num {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--black);
}
.latency-label {
  font-size: 1rem;
  color: var(--gray-2);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ─── MISSION ────────────────────────────────── */
#mission {
  overflow: hidden;
}
.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}
.mission-image-col {
  overflow: hidden;
  background: var(--gray-5);
}
.mission-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.mission-text-col {
  padding: 100px 80px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.mission-text-col h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--black);
}
.mission-text-col p {
  font-size: 0.95rem;
  color: var(--gray-2);
  line-height: 1.8;
}
.mission-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.mission-chips span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-1);
  background: var(--gray-5);
  border-radius: 980px;
  padding: 5px 14px;
  border: 1px solid var(--gray-4);
}

/* ─── CONTACT ────────────────────────────────── */
#contact {
  padding: 120px 0;
  background: var(--gray-5);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-1);
  letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1px solid var(--gray-4);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-3); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--white); }

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit:hover { background: #333; transform: translateY(-1px); }

.form-success {
  display: none;
  text-align: center;
  font-size: 0.9rem;
  color: #1e8e3e;
  font-weight: 500;
  padding: 14px;
  background: #e6f4ea;
  border-radius: 10px;
}
.form-success.visible { display: block; }

/* ─── DISCLAIMER ─────────────────────────────── */
.disclaimer {
  background: var(--black);
  text-align: center;
  padding: 12px 24px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
}

/* ─── FOOTER ─────────────────────────────────── */
#footer {
  background: var(--black);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}
.footer-logo {
  width: 28px; height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 980px) {
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-text {
    padding: 100px 32px 56px;
    text-align: center;
    order: 2;
  }
  .hero-sub { margin: 0 auto 44px; }
  .hero-actions { justify-content: center; }
  .hero-image-wrap {
    order: 1;
    height: 60vw;
    min-height: 320px;
  }
  .hero-image-fade {
    background: linear-gradient(to bottom, transparent 60%, var(--white));
  }

  .tech-grid { grid-template-columns: 1fr; gap: 1px; }

  .pipeline {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .pipeline-connector {
    width: 1px;
    height: 24px;
    margin: 0 auto;
    background: var(--gray-3);
  }
  .pipeline-connector::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -3px;
    right: auto;
    top: auto;
    border: 4px solid transparent;
    border-top: 5px solid var(--gray-3);
  }
  .pipeline-step { border-radius: 0; }
  .pipeline-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .pipeline-step:last-child { border-radius: 0 0 var(--radius) var(--radius); }

  .latency-callout { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .latency-num { font-size: 2.4rem; }

  .mission-inner { grid-template-columns: 1fr; }
  .mission-image-col { height: 60vw; }
  .mission-text-col { padding: 64px 32px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 190;
    font-size: 1.2rem;
  }
  .hamburger { display: flex; z-index: 210; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { transform: rotate(-45deg) translate(5px, -5px); }

  .section-title { font-size: 2rem; }
  .statement-text { font-size: 1.2rem; }
  .statement-text .br-desk { display: inline; }

  #technology, #how-it-works, #contact { padding: 80px 0; }
  .mission-text-col { padding: 48px 24px; }
}
