/* Trailo landing page — single-file responsive styles. No frameworks, no fixed widths. */

:root {
  --bg: #0b1220;
  --bg-alt: #0f1830;
  --card: #131e36;
  --card-border: #22304f;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --radius: 14px;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

img, svg { max-width: 100%; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; text-wrap: balance; }
p { margin: 0 0 1em; }

a { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--card-border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-large { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand-mark { width: 34px; height: 34px; display: block; }
.brand-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.mobile-menu { display: none; }

@media (max-width: 720px) {
  .site-nav, .header-inner > .btn { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 1.25rem 1.25rem;
    border-top: 1px solid var(--card-border);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a:not(.btn) {
    color: var(--text);
    text-decoration: none;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--card-border);
  }
  .mobile-menu .btn { margin-top: 0.9rem; text-align: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  text-align: center;
  overflow: clip;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw + 1rem, 4.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw + 0.8rem, 1.3rem);
  color: var(--muted);
  max-width: 44rem;
  margin: 0 auto 2.2rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.hero-stats div { text-align: center; }
.hero-stats dt {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
}
.hero-stats dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 60%;
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(14, 165, 233, 0.16), transparent 70%);
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
  font-size: clamp(1.7rem, 3.5vw + 0.8rem, 2.5rem);
  letter-spacing: -0.015em;
  text-align: center;
}
.section .eyebrow { display: block; text-align: center; }
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 3rem;
  font-size: 1.08rem;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.7rem;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 46rem; }
.contact .btn-large { margin-top: 1rem; }
.contact-email { margin-top: 1.4rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 1.6rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.footer-inner a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.footer-inner a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
