/* ==============================
   OnSite — Design Tokens & Base
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
  --bg-dark:       #272525;
  --bg-dark-alt:   #333;
  --bg-blue:       #2B0AFF;
  --text-primary:  #E5E0DF;
  --text-secondary:#999;
  --accent:        #7b66ff;
  --white:         #fff;
  --font:          'Inter', sans-serif;
  --radius-card:   16px;
  --radius-btn:    8px;
  --radius-badge:  20px;
  --radius-phone:  36px;
  --max-width:     1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul { list-style: none; }

/* ==============================
   Typography
   ============================== */

h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-bold {
  color: var(--text-primary);
  font-weight: 700;
}

/* ==============================
   Layout
   ============================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

.two-col {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.two-col > * {
  flex: 1;
}

.text-center {
  text-align: center;
}

/* ==============================
   Sticky Nav
   ============================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(39, 37, 37, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 0;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  display: block;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: #6a55ee;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ==============================
   Buttons
   ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #6a55ee;
  border-color: #6a55ee;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 102, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==============================
   Badges / Pills
   ============================== */

.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-badge);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.badge-purple {
  background: rgba(123, 102, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(123, 102, 255, 0.3);
}

.badge-white {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Feature pills (inline chips) */
.pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.pill {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-badge);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==============================
   Phone Mockup Frame
   ============================== */

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius-phone);
  border: 4px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  line-height: 0;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-frame img,
.phone-frame video {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Trip planning gallery (main image + thumbnail switcher) */
.trip-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.trip-thumbs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trip-thumb {
  width: 60px;
  height: 90px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.trip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trip-thumb:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.trip-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(123, 102, 255, 0.35);
}

.trip-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==============================
   Sections — Backgrounds
   ============================== */

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

/* ==============================
   Hero Section
   ============================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% 0 0 0;
  background: url('../images/hero-bg.png') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(123, 102, 255, 0.25) 0%, transparent 60%),
    radial-gradient(50% 60% at 20% 80%, rgba(43, 10, 255, 0.18) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero headline mask reveal */
.reveal-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.05;
  padding: 0 0.05em;
}

.reveal-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-title.visible .reveal-inner,
.reveal-line.visible .reveal-inner {
  transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.scroll-indicator:hover { opacity: 1; }

.scroll-indicator-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--white);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%   { transform: translate(-50%, 0);   opacity: 1; }
  60%  { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 0);   opacity: 0; }
}

.hero.scrolled-past .scroll-indicator {
  opacity: 0;
  pointer-events: none;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.375rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ==============================
   Platform Section
   ============================== */

.platform {
  padding: 6rem 0;
}

.platform h2 {
  margin-bottom: 1.5rem;
  color: var(--white);
}

.platform p {
  max-width: 700px;
  font-size: 1.125rem;
}

/* ==============================
   Team Management — White Card
   ============================== */

.team-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 3.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.team-card h2 {
  color: #1a1a1a;
}

.team-card p {
  color: #555;
}

.team-card .badge {
  background: rgba(123, 102, 255, 0.1);
  color: var(--accent);
  border-color: rgba(123, 102, 255, 0.25);
}

/* ==============================
   Assessments / Alert / Emergency
   ============================== */

.section-blue {
  color: var(--white);
}

.section-blue h2 {
  color: var(--white);
}

.section-blue p {
  color: rgba(255, 255, 255, 0.75);
}

.section-blue .pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Alert system centered phone */
.alert-phone {
  max-width: 320px;
  margin: 3rem auto 0;
}

/* ==============================
   Trip Planning (dark bg, reversed)
   ============================== */

.trips .two-col {
  flex-direction: row-reverse;
}

/* ==============================
   About Section — Dark Card Inset
   ============================== */

.about-card {
  background: var(--bg-dark);
  border-radius: var(--radius-card);
  padding: 3.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.about-card blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==============================
   Investors — Icon Grid
   ============================== */

.investor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 3rem 0;
}

.investor-item {
  text-align: center;
}

.investor-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: rgba(123, 102, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.investor-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.investor-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.investor-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==============================
   CTA / Waitlist Section
   ============================== */

.cta-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cta-image img {
  width: 100%;
  display: block;
}

.waitlist-form h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.waitlist-form p {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input::placeholder {
  color: var(--text-secondary);
}

.form-group input:focus {
  border-color: var(--accent);
}

.form-submit {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.form-submit:hover {
  background: #6a55ee;
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.5em;
}

.form-message.success { color: #4ade80; }
.form-message.error   { color: #f87171; }

/* ==============================
   FAQ Section
   ============================== */

.faq-section {
  padding: 6rem 0;
}

.faq-header {
  margin-bottom: 3.5rem;
}

.faq-header h2 {
  color: var(--white);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(123, 102, 255, 0.35);
}

.faq-item[open] {
  background: rgba(123, 102, 255, 0.06);
  border-color: rgba(123, 102, 255, 0.45);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-body {
  padding: 0 1.5rem 1.4rem 1.5rem;
}

.faq-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==============================
   Footer
   ============================== */

.footer {
  padding: 4rem 0 2rem;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-logo img {
  border-radius: 8px;
  display: block;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--white);
  background: rgba(123, 102, 255, 0.18);
  border-color: rgba(123, 102, 255, 0.45);
  transform: translateY(-1px);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-meta {
  letter-spacing: 0.04em;
}
