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

:root {
  --ink: #020617;
  --ink-2: #0B1220;
  --bg: #F5F5F2;
  --surface: #FFFFFF;
  --text: #101828;
  --text-muted: #5B6472;
  --brand: #38BDF8;
  --brand-strong: #0EA5E9;
  --brand-ink: #1D3557;
  --violet: #7C3AED;
  --border: #E4E4E0;
  --primary: #E63946;
  --primary-dark: #C1121F;
  --primary-light: #FF6B6B;
  --primary-ghost: rgba(230, 57, 70, 0.06);
  --primary-soft: rgba(230, 57, 70, 0.12);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-red: 0 8px 30px rgba(230, 57, 70, 0.15);
  --shadow-brand: 0 8px 30px rgba(56, 189, 248, 0.18);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --max-width: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-top: 0.75rem;
}

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

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

section { padding: 5rem 0; }

@media (min-width: 768px) {
  section { padding: 6rem 0; }
  .container { padding: 0 2rem; }
}

/* NAV */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 235, 220, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { height: 72px; width: 120px; }

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
}

.nav-hamburger {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.nav-hamburger:hover { background: var(--primary-ghost); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 88px;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.45);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-ghost);
}

.btn-ghost {
  background: var(--primary-ghost);
  color: var(--primary);
  border: 1.5px solid transparent;
}

.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.btn-apk {
  background: var(--primary);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-apk::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.btn-apk:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(230, 57, 70, 0.5);
}

.btn-apk .icon { font-size: 1.25rem; }

.btn-apk-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* CARDS */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-red);
  border-color: rgba(230, 57, 70, 0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-ghost);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.badge-red { background: var(--primary-ghost); color: var(--primary); }
.badge-green { background: #DCFCE7; color: #166534; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }
.badge-purple { background: #F3E8FF; color: #7C3AED; }

/* STATS */
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* GRIDS */
.grid-2 { display: grid; gap: 2rem; }
.grid-3 { display: grid; gap: 2rem; }
.grid-4 { display: grid; gap: 2rem; }

@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* FOOTER */
.site-footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 300px;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-xure {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ANIMATIONS */
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(230, 57, 70, 0); }
}

.pulse-ring { animation: pulse-red 2s infinite; }

/* HERO */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-ghost);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--primary-soft);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 1.25rem auto 0;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* SECTION HEADER */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* FEATURE LIST */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* INVESTOR CTA */
.investor-cta {
  background: var(--surface);
  border: 2px solid var(--primary-soft);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.investor-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-ghost) 0%, transparent 70%);
  opacity: 0.5;
}

.investor-cta > * { position: relative; z-index: 1; }

/* ACCENT LINE */
.accent-line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 1rem 0;
}

/* TEAM */
.team-card { text-align: center; }

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary-ghost);
  border: 3px solid var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  transition: all 0.3s;
}

.team-card:hover .team-avatar {
  border-color: var(--primary);
  transform: scale(1.05);
}

.team-name { font-size: 1.125rem; font-weight: 800; color: var(--text); }
.team-role { font-size: 0.875rem; color: var(--primary); font-weight: 600; margin-top: 0.25rem; }

/* TIMELINE */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item { position: relative; padding-bottom: 2.5rem; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
}

.timeline-item.done::before { background: var(--primary); }
.timeline-item.active::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.timeline-date {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-title { font-size: 1.125rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.9375rem; color: var(--text-muted); }

/* CONTACT CARDS */
.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all 0.3s;
}

.contact-card:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-red);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-ghost);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* STATUS GRID */
.status-grid { display: grid; gap: 1rem; }

@media (min-width: 640px) { .status-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .status-grid { grid-template-columns: repeat(3, 1fr); } }

.status-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  flex-shrink: 0;
}

.status-label { font-weight: 700; font-size: 0.9375rem; color: var(--text); }
.status-meta { font-size: 0.8125rem; color: var(--text-muted); }

/* RESPONSIVE HELPERS */
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .show-mobile { display: none !important; } }

/* ===== Xure Labs rebrand utilities ===== */
.dark-section { background: var(--ink); color: #E8EEF6; }
.dark-section .section-title { color: #FFFFFF; }
.dark-section p { color: #A8B8CC; }
.btn-brand { display:inline-flex; align-items:center; gap:.5rem; background:var(--brand); color:#02131F; font-weight:700; padding:.9rem 2rem; border-radius:999px; text-decoration:none; transition:transform .15s ease, box-shadow .15s ease; }
.btn-brand:hover { transform:translateY(-2px); box-shadow:var(--shadow-brand); }
.btn-outline-light { display:inline-flex; align-items:center; gap:.5rem; border:2px solid rgba(255,255,255,.35); color:#fff; font-weight:600; padding:.9rem 2rem; border-radius:999px; text-decoration:none; }
.btn-outline-light:hover { border-color:#fff; }

/* ===== Xure Labs dark nav + mobile menu fix ===== */
.nav-bar { background: var(--ink); border-bottom: 1px solid rgba(56,189,248,0.15); }
.nav-bar a, .nav-links a, .nav-logo span { color: #D8E6F3 !important; }
.nav-links a.active { color: var(--brand) !important; }
.nav-links a:hover { color: var(--brand) !important; }
.nav-hamburger { color: #FFFFFF; }
.mobile-menu { background: var(--ink-2); }
.mobile-menu a { color: #D8E6F3 !important; border-color: rgba(56,189,248,0.12); }
