/* FPV Toolbox — landing page.
   Same visual language as the tools: cool neutrals, blue system accent,
   frosted-glass surfaces, soft depth shadows, system typography. */

:root {
  --bg: #f2f3f7;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --blur: saturate(180%) blur(20px);

  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: #e4e4ea;

  --accent: #0a84ff;
  --accent-deep: #0060df;
  --accent-soft: #e9f2ff;
  --teal: #199aae;

  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 0.5px 1px rgba(10, 20, 50, 0.04), 0 10px 30px rgba(10, 20, 60, 0.08);
  --shadow-sm: 0 0.5px 1px rgba(10, 20, 50, 0.06), 0 2px 6px rgba(10, 20, 60, 0.05);
  --shadow-lg: 0 1px 2px rgba(10, 20, 50, 0.06), 0 24px 60px rgba(10, 20, 60, 0.14);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', system-ui,
    'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(900px 500px at 82% -8%, #dcebff 0%, rgba(220, 235, 255, 0) 60%),
    radial-gradient(800px 520px at 0% 100%, #e6e9f7 0%, rgba(230, 233, 247, 0) 55%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) 20px 64px;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  text-align: center;
  margin-bottom: clamp(32px, 6vh, 56px);
}
.mark {
  display: inline-flex;
  border-radius: 16px;
  box-shadow: var(--shadow);
  line-height: 0;
  margin-bottom: 18px;
}
.mark svg {
  display: block;
  border-radius: 16px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tagline {
  margin: 14px auto 0;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: clamp(15px, 2.2vw, 17px);
}

/* --- Tiles ---------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 26px 22px;
  text-decoration: none;
  color: inherit;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}
.tile:hover::before {
  opacity: 1;
}
.tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  line-height: 0;
}
.tile-body h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.tile-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 11px;
}

.tile-go {
  margin-top: auto;
  font-weight: 650;
  font-size: 14px;
  color: var(--accent);
}

/* --- Footer --------------------------------------------------------------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}
.foot a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.foot a:hover {
  text-decoration: underline;
}
