/* MobileRider AI Inference — Enterprise Design System */
:root {
  --navy: #0d2755;
  --navy-deep: #06122a;
  --navy-light: #16366f;
  --ink: #334155;
  --ink-dark: #0f172a;
  --blue: #009cde;
  --link: #0077a8;
  --orange: #f7981d;
  --orange-dark: #d67a0b;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --max: 1200px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-md: 8px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--navy-deep); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--navy); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; width: 100%; }

/* Scroll Reveal Animations */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Header */
.site-header { 
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); 
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img.mr { height: 40px; width: auto; }
.brand .partner-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); border-left: 2px solid var(--border); padding-left: 16px; line-height: 1.4;
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: var(--ink-dark); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.site-nav a:hover { color: var(--orange); }
.site-nav a.cta {
  background: var(--navy); color: var(--white); padding: 12px 24px; border-radius: var(--radius-md); 
  font-size: 14px; font-weight: 700; transition: all 0.2s ease; box-shadow: var(--shadow-sm);
}
.site-nav a.cta:hover { background: var(--orange); color: var(--navy-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Buttons */
.btn-row { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; margin-top: 40px; }
.btn-row.center { justify-content: center; }
.btn-orange {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: var(--navy-deep);
  font-weight: 700; font-size: 16px; padding: 16px 32px; border-radius: var(--radius-md);
  transition: all 0.2s ease; box-shadow: var(--shadow-md);
}
.btn-orange:hover { background: #ffaa33; transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--navy-deep); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.3); color: var(--white);
  font-weight: 700; font-size: 16px; padding: 14px 32px; border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.05); color: var(--white); }

.btn-ghost-dark {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--border-dark); color: var(--navy);
  font-weight: 700; font-size: 16px; padding: 14px 32px; border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.btn-ghost-dark:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-alt); }


/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  border-bottom: 4px solid var(--orange);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px; opacity: 0.5;
}
.hero .wrap { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero .pilot-badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(247, 152, 29, 0.1);
  border: 1px solid rgba(247, 152, 29, 0.3); border-radius: 100px; padding: 8px 20px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); margin-bottom: 32px;
}
.hero .pilot-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.hero h1 { font-size: 56px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero p.sub { font-size: 20px; line-height: 1.6; color: rgba(255,255,255,0.8); }

.hero-visual { position: relative; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35); }
.hero-visual img { display: block; width: 100%; opacity: 1; }
.hero-visual::after { content: none; }

/* Panels */
.panel { padding: 96px 0; background: var(--white); position: relative; }
.panel.alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.panel.navy { background: var(--navy); color: var(--white); }
h2 { color: var(--ink-dark); font-size: 40px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 24px; line-height: 1.15; }
.panel.navy h2 { color: var(--white); }
h3 { color: var(--ink-dark); font-size: 24px; font-weight: 700; margin: 0 0 12px; }
.panel.navy h3 { color: var(--white); }
.panel p { margin-bottom: 24px; font-size: 18px; color: var(--ink); }
.panel.navy p { color: rgba(255,255,255,0.8); }
.section-header { max-width: 800px; margin-bottom: 64px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow { 
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; 
  text-transform: uppercase; padding: 6px 16px; border-radius: 4px; margin-bottom: 20px; 
}
.eyebrow.problem { background: #fee2e2; color: #b91c1c; }
.eyebrow.solution { background: rgba(247,152,29,0.15); color: var(--orange-dark); }
.eyebrow.navy { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }

/* Crisis Grid (The Problem) */
.crisis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.crisis { 
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); 
  padding: 32px; box-shadow: var(--shadow-md); transition: all 0.3s ease; position: relative;
  overflow: hidden;
}
.crisis::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #ef4444; }
.crisis:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.crisis .big { font-size: 32px; font-weight: 800; color: #b91c1c; line-height: 1.1; margin-bottom: 12px; }
.crisis .what { font-weight: 800; color: var(--ink-dark); margin-bottom: 12px; font-size: 18px; }
.crisis p { font-size: 15px; margin-bottom: 0; color: var(--ink); line-height: 1.5; }

/* Stats Band */
.stats-band { background: var(--navy-deep); color: var(--white); border-top: 1px solid rgba(255,255,255,0.1); }
.stats-band .wrap { padding: 80px 24px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: left; }
.stat { padding-left: 24px; border-left: 2px solid var(--orange); }
.stat .num { display: block; font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.stat .lbl { display: block; font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* Diagram */
.diagram-wrap { 
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); 
  padding: 40px; box-shadow: var(--shadow-lg); margin-bottom: 40px;
}
.diagram-cap { text-align: center; font-size: 14px; color: var(--ink); font-weight: 500; }

/* Tri Grid */
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tri { 
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); 
  padding: 40px 32px; transition: all 0.3s ease;
}
.panel.white .tri { background: var(--white); box-shadow: var(--shadow-md); border-color: var(--border); }
.tri:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-dark); }
.tri h3 { font-size: 22px; }
.tri p { font-size: 16px; margin: 0; }

/* Feature Grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.f { 
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); 
  border-radius: var(--radius-lg); padding: 32px; transition: all 0.3s ease;
}
.f:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.f h3 { color: var(--white); font-size: 20px; }
.f p { color: rgba(255,255,255,0.7); font-size: 15px; margin: 0; }

/* Phase Grid */
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.phase { 
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); 
  padding: 40px 32px; box-shadow: var(--shadow-sm); transition: all 0.3s ease; position: relative;
}
.phase:hover { box-shadow: var(--shadow-md); border-color: var(--border-dark); }
.phase .num { 
  display: inline-block; background: var(--bg-alt); color: var(--navy); 
  font-family: monospace; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; 
  padding: 6px 12px; border-radius: 4px; margin-bottom: 20px; border: 1px solid var(--border);
}
.phase h3 { font-size: 22px; margin-bottom: 16px; }
.phase p { font-size: 16px; margin: 0; }

/* Rollout grid */
.rollout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* Video */
.video-wrap { 
  position: relative; width: 100%; max-width: 1000px; margin: 0 auto; aspect-ratio: 16/9; 
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); 
  background: var(--navy-deep); border: 1px solid var(--border);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Two-column layout */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* Form card */
.form-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-xl);
}
.form-card h3 { margin-bottom: 24px; font-size: 24px; }
.form-card label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-dark); margin: 0 0 8px; }
.form-group { margin-bottom: 20px; }
.form-card input, .form-card select {
  width: 100%; padding: 14px 16px; font-size: 16px; border: 2px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg-alt); color: var(--ink-dark); font-family: inherit;
  transition: all 0.2s ease;
}
.form-card input:focus, .form-card select:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 156, 222, 0.1); }
.form-card button {
  width: 100%; margin-top: 12px; padding: 18px; font-size: 18px; font-weight: 800;
  color: var(--navy-deep); background: var(--orange); border: 0; border-radius: var(--radius-md); 
  cursor: pointer; font-family: inherit; transition: all 0.2s ease; box-shadow: var(--shadow-md);
}
.form-card button:hover { background: #ffaa33; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.form-card .fine { font-size: 13px; color: var(--ink); margin-top: 16px; text-align: center; }
.form-msg { margin-top: 16px; font-size: 16px; font-weight: 600; display: none; padding: 16px; border-radius: var(--radius-md); }
.form-msg.ok { color: #065f46; background: #d1fae5; border: 1px solid #34d399; display: block; }
.form-msg.err { color: #991b1b; background: #fee2e2; border: 1px solid #f87171; display: block; }

/* Checklist */
.check-list { list-style: none; margin: 0 0 32px 0; padding: 0; }
.check-list li { 
  position: relative; padding-left: 36px; margin-bottom: 16px; font-size: 18px; 
  color: var(--ink-dark); font-weight: 500;
}
.check-list li::before { 
  content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7981d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

/* CTA band */
.cta-band { background: var(--navy-deep); color: var(--white); text-align: center; border-bottom: 1px solid #1e293b; padding: 120px 0; position: relative;}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(247,152,29,0.1) 1px, transparent 1px);
  background-size: 32px 32px; opacity: 0.5;
}
.cta-band .wrap { position: relative; z-index: 10; max-width: 800px; }
.cta-band h2 { color: var(--white); font-size: 48px; margin-bottom: 24px;}
.cta-band p { font-size: 20px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }

/* Footer */
.fine-print { font-size: 13px; color: var(--ink); text-align: center; padding: 24px; border-bottom: 1px solid var(--border); background: var(--white); }
.site-footer { background: var(--white); color: var(--ink); padding: 80px 0 0; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 64px; margin-bottom: 64px; }
.site-footer h4 { color: var(--ink-dark); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; font-weight: 800; }
.site-footer a { color: var(--ink); display: block; margin-bottom: 12px; font-weight: 500; }
.site-footer a:hover { color: var(--orange); }
.site-footer img.mr { height: 36px; margin-bottom: 24px; }
.footer-bottom { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-bottom .wrap { padding: 24px; font-size: 14px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-visual { max-width: 700px; margin: 0 auto; }
  .btn-row { justify-content: center; }
  .cols { grid-template-columns: 1fr; gap: 48px; }
  .crisis-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .phase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .site-header .wrap { flex-direction: column; height: auto; padding: 16px 24px; gap: 16px; }
  .site-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .tri-grid, .feature-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom .wrap { flex-direction: column; text-align: center; gap: 16px; }
  .panel { padding: 64px 0; }
}
