/* ═══════════════════════════════════════════════════════════════
   ROAM Software — Stylesheet v12
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:        #2797FF;
  --secondary:      #0b67bc;
  --tertiary:       #069e6e;
  --alternate:      #f0f4f8;
  --bg-primary:     #ffffff;
  --bg-secondary:   #f5f8fc;
  --text-primary:   #0d1b2e;
  --text-secondary: #5a6a7e;
  --accent2:        #e8f1fb;
  --warning:        #fc964d;
  --border:         rgba(39,151,255,0.18);
  --border-subtle:  rgba(13,27,46,0.08);
  --radius:         10px;
  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 64px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 2px 24px rgba(13,27,46,0.1); }
.nav-logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.nav-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.55rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-primary);
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
  padding: 0.4rem 1rem; border-radius: 100px;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(13,27,46,0.04); }
.nav-links a.nav-active { color: #fff !important; background: var(--primary); }
.nav-links a.nav-active:hover { background: #3aa3ff; color: #fff !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem; border-radius: 100px;
  font-family: 'Barlow', sans-serif; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; text-decoration: none; border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #3aa3ff; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(39,151,255,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: rgba(39,151,255,0.08); }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 8rem 5% 5rem; gap: 5rem;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center center; background-repeat: no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(5,15,30,0.75) 0%, rgba(10,22,42,0.50) 40%, rgba(13,27,46,0.15) 100%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #2797FF; background: rgba(255,255,255,0.08); border: 1px solid rgba(39,151,255,0.35);
  border-radius: 100px; padding: 0.35rem 0.9rem; margin-bottom: 1.5rem;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 5.5vw, 4.8rem); font-weight: 700;
  line-height: 1.0; letter-spacing: 0.02em; text-transform: uppercase;
  color: #ffffff !important; margin-bottom: 1.5rem;
}
.hero .accent { color: var(--primary); }
.hero-sub { font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,0.82); margin-bottom: 2.5rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-panel {
  background: rgba(13,27,46,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.75rem;
}
.panel-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.25rem; }
.mod-chip {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(39,151,255,0.12); border: 1px solid rgba(39,151,255,0.25);
  border-radius: 8px; padding: 0.5rem 0.75rem;
  font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.9);
  transition: background 0.2s;
}
.mod-chip:hover { background: rgba(39,151,255,0.2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.dot.green { background: var(--tertiary); }
.panel-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.panel-stat { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 1rem; }
.num { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.lbl { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 0.3rem; line-height: 1.3; }

/* ── MODULES SECTION ─────────────────────────────────────────── */
.modules-section { padding: 6rem 5%; background: var(--bg-secondary); }
.section-eyebrow { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 0.9rem; max-width: 620px; line-height: 1.05; }
.section-sub { color: var(--text-secondary); font-size: 1rem; max-width: 560px; line-height: 1.7; margin-bottom: 3rem; }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius); overflow: hidden; }
.module-card { background: var(--bg-primary); padding: 2rem; transition: background 0.2s; }
.module-card:hover { background: #eaf3ff; }
.mod-icon { width: 40px; height: 40px; background: var(--accent2); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 1rem; }
.module-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.module-card p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.6; }

/* ── HOW IT WORKS ────────────────────────────────────────────── */
.hiw-section { padding: 6rem 5%; background: var(--bg-primary); }
.hiw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.steps { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 700; color: var(--primary); opacity: 0.35; line-height: 1; min-width: 40px; }
.step h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; }
.step p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.workflow { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 2rem; }
.wf-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1.5rem; }
.wf-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }
.wf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.wf-dot.amber { background: var(--warning); }
.wf-dot.green { background: var(--tertiary); }
.wf-connector { width: 2px; height: 20px; background: var(--border-subtle); margin-left: 4px; }
.wf-note { margin-top: 1.25rem; padding: 0.85rem 1rem; background: var(--accent2); border-radius: 8px; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ── SAFETY ──────────────────────────────────────────────────── */
.safety-section { padding: 6rem 5%; background: var(--bg-secondary); }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.safety-points { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.sp { display: flex; gap: 1rem; align-items: flex-start; }
.sp-icon { width: 44px; height: 44px; min-width: 44px; background: var(--accent2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.sp-icon.green { background: rgba(6,158,110,0.1); color: var(--tertiary); }
.sp h4 { font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; font-size: 0.93rem; }
.sp p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.stats-panel { background: #0d1b2e; border-radius: 16px; padding: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }
.stat-item { border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 2rem; }
.stat-item:last-child { border-bottom: none; padding-bottom: 0; }
.big-num { font-family: 'Barlow Condensed', sans-serif; font-size: 3.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.big-num sup { font-size: 1.4rem; }
.desc { font-size: 0.88rem; color: #919bab; line-height: 1.55; margin-top: 0.5rem; }

/* ── CTA SECTION ─────────────────────────────────────────────── */
.cta-section { background: #0d1b2e; text-align: center; padding: 8rem 5%; position: relative; overflow: hidden; }
.cta-section::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at center,rgba(39,151,255,0.12) 0%,transparent 70%); }
.cta-section > * { position:relative; z-index:1; }
.cta-section h2 { font-family:'Barlow Condensed',sans-serif; font-size:clamp(2.2rem,4vw,3.2rem); font-weight:700; color:#fff; margin-bottom:1rem; letter-spacing:0.03em; text-transform:uppercase; }
.cta-section p { color:#919bab; font-size:1.05rem; max-width:520px; margin:0 auto 2.5rem; line-height:1.7; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer { background: #0d1b2e; border-top: 1px solid rgba(255,255,255,0.07); padding: 2.5rem 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.footer-wordmark { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
footer ul { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
footer ul a { color: #919bab; text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
footer ul a:hover { color: #fff; }
.footer-copy { font-size: 0.82rem; color: #5a6a7e; }

/* ═══════════════════════════════════════════════════════════════
   INNER PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.page-hero {
  background: linear-gradient(135deg, #0d1b2e 0%, #142144 100%);
  padding: 7rem 2rem 4rem; text-align: center; color: #fff;
}
.page-hero .eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #2797FF; margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700;
  line-height: 1.1; margin-bottom: 1.2rem; color: #fff;
}
.page-hero p { font-size: 1.1rem; color: #919bab; max-width: 600px; margin: 0 auto 2rem; line-height: 1.7; }
.page-content { max-width: 1140px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.inner-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: #0d1b2e; margin-bottom: 0.75rem; }
.inner-sub { color: #5a6a7e; line-height: 1.7; margin-bottom: 2.5rem; max-width: 640px; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-card { background: #f5f8fc; border: 1px solid rgba(13,27,46,0.08); border-radius: 16px; padding: 2.5rem 2rem; max-width: 680px; margin: 0 auto; }
.form-card h2 { font-size: 1.5rem; font-weight: 700; color: #0d1b2e; margin-bottom: 0.4rem; }
.form-card .form-sub { color: #5a6a7e; margin-bottom: 2rem; font-size: 0.97rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.87rem; font-weight: 600; color: #0d1b2e; margin-bottom: 0.4rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid rgba(13,27,46,0.15); border-radius: 8px;
  font-family: 'Barlow', sans-serif; font-size: 0.97rem; color: #0d1b2e;
  background: #fff; transition: border-color 0.2s; outline: none; box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: #2797FF; box-shadow: 0 0 0 3px rgba(39,151,255,0.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; margin-top: 0.5rem; font-size: 1rem; padding: 0.9rem; cursor: pointer; }
.form-note { text-align: center; font-size: 0.82rem; color: #5a6a7e; margin-top: 1rem; }
.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success .check { width: 56px; height: 56px; background: #e6f9f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; }
.form-success h3 { font-size: 1.4rem; color: #0d1b2e; margin-bottom: 0.5rem; }
.form-success p { color: #5a6a7e; }

/* ── Platform module cards ───────────────────────────────────── */
.module-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; margin-bottom: 3rem; }
.md-card { background: #fff; border: 1.5px solid rgba(13,27,46,0.08); border-radius: 16px; padding: 2rem; transition: border-color 0.2s, box-shadow 0.2s; }
.md-card:hover { border-color: #2797FF; box-shadow: 0 4px 24px rgba(39,151,255,0.1); }
.md-card .md-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.md-card .md-icon { width: 46px; height: 46px; min-width: 46px; background: #e8f1fb; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #2797FF; }
.md-card .md-icon.green { background: #e6f9f0; color: #069e6e; }
.md-card h3 { font-size: 1.05rem; font-weight: 700; color: #0d1b2e; }
.md-card p { font-size: 0.9rem; color: #5a6a7e; line-height: 1.65; margin-bottom: 1rem; }
.md-card ul { padding-left: 1.1rem; }
.md-card ul li { font-size: 0.88rem; color: #5a6a7e; line-height: 1.7; }
.platform-cta { background: linear-gradient(135deg, #0d1b2e 0%, #142144 100%); border-radius: 20px; padding: 3rem 2rem; text-align: center; color: #fff; margin-top: 2rem; }
.platform-cta h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.platform-cta p { color: #919bab; margin-bottom: 1.75rem; }

/* ── About page ──────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.about-grid h2 { font-size: 2rem; font-weight: 700; color: #0d1b2e; margin-bottom: 1rem; }
.about-grid p { color: #5a6a7e; line-height: 1.75; margin-bottom: 1rem; }
.about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 5rem; }
.value-card { background: #f5f8fc; border: 1px solid rgba(13,27,46,0.08); border-radius: 14px; padding: 1.75rem; }
.value-card .vi { width: 44px; height: 44px; background: #e8f1fb; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: #2797FF; }
.value-card h4 { font-size: 1rem; font-weight: 700; color: #0d1b2e; margin-bottom: 0.4rem; }
.value-card p { font-size: 0.9rem; color: #5a6a7e; line-height: 1.6; }

/* ── Safety: inner page content always visible ───────────────── */
.page-hero .fade-up,
.page-content .fade-up { opacity: 1 !important; transform: none !important; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .hero { padding: 7rem 4% 4rem; gap: 3rem; }
  .hiw-grid { gap: 3rem; }
  .safety-grid { gap: 3rem; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    flex-direction: column; align-items: stretch;
    padding: 1rem 5% 1.5rem; gap: 0.25rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 8px 24px rgba(13,27,46,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.65rem 1rem; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 6rem 5% 4rem; gap: 2.5rem; }
  .hero-panel { max-width: 100%; }
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .hiw-grid { grid-template-columns: 1fr; gap: 3rem; }
  .safety-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-hero { padding: 6rem 1.5rem 3rem; }
  .page-content { padding: 3rem 1.5rem 4rem; }
  .page-content > div[style*="grid-template-columns:1fr 1fr"],
  .page-content > div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .form-card { margin: 0 !important; }
}

@media (max-width: 600px) {
  .nav-wordmark { font-size: 1.3rem; }
  .hero { padding: 5.5rem 4% 3rem; gap: 2rem; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.2rem) !important; }
  .hero-sub { font-size: 0.97rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-panel { padding: 1.25rem; }
  .module-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .panel-stat-row { flex-direction: column; gap: 1rem; }
  .modules-grid { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .modules-section { padding: 4rem 4%; }
  .hiw-section { padding: 4rem 4%; }
  .workflow { padding: 1.5rem; }
  .safety-section { padding: 4rem 4%; }
  .stats-panel { padding: 1.5rem; }
  .big-num { font-size: 2.8rem !important; }
  .cta-section { padding: 5rem 5%; }
  .cta-section h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .cta-section .btn { width: 100%; justify-content: center; }
  footer { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 2rem 5%; }
  footer ul { flex-direction: column; gap: 0.5rem; }
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .page-hero p { font-size: 0.97rem; }
  .module-detail { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .inner-title { font-size: 1.5rem; }
  .platform-cta { padding: 2.5rem 1.25rem; }
  .platform-cta h2 { font-size: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.75rem 1.25rem; }
}

@media (max-width: 400px) {
  .hero { padding: 5rem 4% 3rem; }
  .hero-title { font-size: 2.2rem !important; }
  .nav-wordmark { display: none; }
  .page-content { padding: 2.5rem 1rem 3rem; }
  .form-card { padding: 1.5rem 1rem; }
}
