:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --card: #ffffff;
  --text: #0d1b2e;
  --text-muted: #57616f;
  --accent: #10284a;
  --accent-dark: #081a33;
  --orange: #ff6a1a;
  --orange-dark: #e2570f;
  --gold: #c9971f;
  --gold-dark: #a97a12;
  --accent-soft: rgba(16, 40, 74, 0.06);
  --orange-soft: rgba(255, 106, 26, 0.1);
  --gold-soft: rgba(201, 151, 31, 0.12);
  --border: #e3e8ef;
  --radius: 14px;
  --max-width: 1120px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.brand-strip {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--gold) 50%, var(--orange) 100%);
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent-dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-logo-icon {
  height: 30px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.logo:hover .nav-logo-icon {
  transform: rotate(8deg) scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  padding: 120px 24px 100px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 60%);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Logo reveal + staggered hero animation */
.logo-reveal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  height: 96px;
}

.logo-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 151, 31, 0.35) 0%, rgba(255, 106, 26, 0.12) 45%, transparent 72%);
  filter: blur(6px);
  animation: glowPulse 3.2s ease-in-out infinite;
  z-index: 0;
}

.hero-logo {
  position: relative;
  z-index: 1;
  height: 96px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.75) translateY(12px);
  animation: logoPop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.15s;
}

.reveal {
  opacity: 0;
  animation: fadeUp 0.75s ease forwards;
}

@keyframes logoPop {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-glow, .hero-logo, .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Scroll animations are handled by GSAP/ScrollTrigger in script.js.
   No static opacity/transform here — GSAP sets initial state at runtime
   to avoid flash-of-hidden-content if the library fails to load. */

/* Parallax background blobs */
.section { position: relative; overflow: hidden; }

.section-inner { position: relative; z-index: 1; }

.section-blob {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}

.blob-gold { background: radial-gradient(circle, var(--gold) 0%, transparent 70%); }
.blob-orange { background: radial-gradient(circle, var(--orange) 0%, transparent 70%); }
.blob-navy { background: radial-gradient(circle, var(--accent) 0%, transparent 70%); }

.blob-tr { top: -90px; right: -90px; }
.blob-tl { top: -90px; left: -90px; }
.blob-br { bottom: -90px; right: -90px; }
.blob-bl { bottom: -90px; left: -90px; }

@media (max-width: 700px) {
  .section-blob { width: 220px; height: 220px; opacity: 0.2; }
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover { background: var(--accent-soft); }

/* Sections */
.section {
  padding: 90px 24px;
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  position: relative;
  padding-bottom: 16px;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section-text {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.about { background: var(--bg-alt); }

/* Card grids (verticals, pilot workflows, benefits) */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.vertical-grid.four-col { grid-template-columns: repeat(4, 1fr); }
.vertical-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.product { background: var(--bg-alt); }

.vertical-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
}

.vertical-card.featured {
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 16px rgba(201, 151, 31, 0.14);
}

.vertical-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.vertical-icon svg { width: 24px; height: 24px; }

.vertical-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.vertical-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 14px;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.card-link:hover { text-decoration: underline; }

.background { background: var(--bg-alt); }

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.badge-active {
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.pilot { background: var(--bg-alt); }

/* How it works */
.how .section-text { max-width: 760px; }

.diagram-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 36px 0;
  overflow-x: auto;
}

.diagram-wrap svg {
  width: 100%;
  min-width: 640px;
  height: auto;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.how-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.how-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.how-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Setup / Getting Started */
.setup { background: var(--bg-alt); }

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.setup-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.setup-step h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.setup-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Benefits (For Businesses) */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.benefit-card {
  padding: 22px 4px;
}

.benefit-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 8px;
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Stats (Partners & Research) */
.partners { background: var(--bg-alt); }

.stats-subhead {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text);
}

.stats-subhead:first-of-type { margin-top: 8px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.stat-source {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.85;
}

/* Market highlights callout */
.market-highlights {
  margin-top: 40px;
  background: var(--accent-dark);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.highlight-intro {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.chip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 16px 16px 14px;
}

.chip-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.chip-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  margin-bottom: 8px;
}

.chip-source {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.highlight-outro {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  max-width: 720px;
  margin: 0;
}

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

@media (max-width: 500px) {
  .chip-row { grid-template-columns: 1fr; }
}

/* Team */
.team { background: var(--bg-alt); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.team-role {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-degree {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Lamp spotlight section */
.lamp-section {
  position: relative;
  overflow: hidden;
  background: var(--accent-dark);
  padding: 120px 24px 110px;
  text-align: center;
}

.lamp-section .section-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lamp-stage {
  position: relative;
  width: 100%;
  height: 240px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 12px;
}

.lamp-ring, .lamp-ring-outer {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
  z-index: 2;
}

.reveal-up.is-visible .lamp-ring { opacity: 0.9; }
.reveal-up.is-visible .lamp-ring-outer { opacity: 0.45; }

.lamp-ring {
  top: 24px;
  width: 168px;
  height: 168px;
  border: 2px solid rgba(201, 151, 31, 0.18);
  border-top-color: var(--gold);
  border-right-color: var(--orange);
  animation: lamp-spin 9s linear infinite;
}

.lamp-ring-outer {
  top: -4px;
  width: 224px;
  height: 224px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--gold);
  animation: lamp-spin-reverse 15s linear infinite;
}

@keyframes lamp-spin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes lamp-spin-reverse {
  from { transform: translateX(-50%) rotate(360deg); }
  to { transform: translateX(-50%) rotate(0deg); }
}

.lamp-logo-wrap {
  position: absolute;
  top: 50px;
  left: 50%;
  width: 116px;
  height: 108px;
  transform: translateX(-50%);
  z-index: 3;
}

.lamp-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(201, 151, 31, 0.65));
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s cubic-bezier(0.22, 0.68, 0, 1) 0.6s;
  animation: lamp-logo-float 3.4s ease-in-out 2s infinite;
}

.reveal-up.is-visible .lamp-logo {
  clip-path: inset(0% 0 0 0);
}

@keyframes lamp-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* The glowing bar that rises up and reveals the logo behind it */
.lamp-reveal-bar {
  position: absolute;
  top: 100%;
  left: -14px;
  right: -14px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff6dc 25%, var(--gold) 50%, #fff6dc 75%, transparent);
  box-shadow: 0 0 20px 5px rgba(201, 151, 31, 0.85);
  transition: top 1.3s cubic-bezier(0.22, 0.68, 0, 1) 0.6s, opacity 0.6s ease 2.3s;
  z-index: 4;
}

.reveal-up.is-visible .lamp-reveal-bar {
  top: 0%;
  opacity: 0;
}

.lamp-glow {
  position: absolute;
  top: 30px;
  width: 240px;
  height: 130px;
  background: var(--gold);
  opacity: 0.4;
  filter: blur(60px);
  border-radius: 50%;
  animation: lamp-glow-pulse 3.6s ease-in-out infinite;
}

@keyframes lamp-glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.62; transform: scale(1.15); }
}

.lamp-heading {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

.lamp-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
}

.lamp-cta {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .lamp-glow, .lamp-ring, .lamp-ring-outer, .lamp-logo {
    animation: none !important;
  }
  .lamp-ring, .lamp-ring-outer { opacity: 0.7 !important; }
  .lamp-logo {
    transition: none !important;
    clip-path: inset(0% 0 0 0) !important;
  }
  .lamp-reveal-bar {
    transition: none !important;
    display: none !important;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-form label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.97rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn { margin-top: 6px; align-self: flex-start; }

.contact-info h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.contact-info a {
  color: var(--accent);
  font-weight: 600;
}

.contact-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Footer */
.footer {
  padding: 30px 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-top: 2px solid var(--gold);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 960px) {
  .vertical-grid.four-col { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .setup-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .vertical-grid { grid-template-columns: 1fr; }
  .vertical-grid.two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .team-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .setup-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 90px 20px 70px; }
  .section { padding: 60px 20px; }
}
