/* TripRank web — shared styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #060504;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hi: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.14);
  --t1: #F5F2EC;
  --t2: rgba(245, 242, 236, 0.62);
  --t3: rgba(245, 242, 236, 0.36);
  --t4: rgba(245, 242, 236, 0.18);
  --accent: #E8921A;
  --accent-dark: #C47A10;
  --accent-glow: rgba(232, 146, 26, 0.40);
  --accent-soft: rgba(232, 146, 26, 0.12);
  --gold: #E8C547;
  --silver: #C0C5CE;
  --bronze: #D08A50;
  --green: #22D3A8;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html, body {
  background: var(--bg);
  color: var(--t1);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow background */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 720px;
}

/* Nav */
nav {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(6, 5, 4, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--t1);
}
.wordmark .accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--t2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--t1); }

/* Hero */
.hero {
  padding: 80px 0 100px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--t3);
  font-weight: 500;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--t2);
  max-width: 540px;
  margin: 0 auto 40px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #1a0f00;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--t1);
  border-color: var(--border-hi);
}
.btn-secondary:hover { background: var(--surface-hi); }

/* Speedometer mock */
.speedometer {
  width: 260px;
  height: 260px;
  margin: 0 auto 40px;
  position: relative;
}
.speedometer svg { width: 100%; height: 100%; }
.speed-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.speed-value .num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--t1);
}
.speed-value .unit {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--t3);
  margin-top: 4px;
}

/* Features grid */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-title p {
  color: var(--t2);
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  border-color: var(--border-hi);
  background: var(--surface-hi);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.card p {
  color: var(--t2);
  font-size: 14px;
  line-height: 1.55;
}

/* Legal / doc pages */
.doc {
  padding: 56px 0 80px;
}
.doc h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 8px;
}
.doc .updated {
  color: var(--t3);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.doc h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
  color: var(--t1);
}
.doc h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--t1);
}
.doc p, .doc li {
  color: var(--t2);
  font-size: 15px;
  margin-bottom: 12px;
}
.doc ul, .doc ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.doc li { margin-bottom: 8px; }
.doc a {
  color: var(--accent);
  text-decoration: none;
}
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--t1); font-weight: 600; }

/* Support page extras */
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--t1);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq[open] summary::after {
  content: '−';
}
.faq p {
  margin-top: 14px;
  color: var(--t2);
  font-size: 15px;
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}
.contact-block h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.contact-block p {
  color: var(--t2);
  margin-bottom: 20px;
}
.contact-block a.email {
  color: var(--accent);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: -0.3px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--t2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--t1); }
.footer-meta {
  color: var(--t3);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 56px 0; }
  .speedometer { width: 200px; height: 200px; }
  .speed-value .num { font-size: 44px; }
}
