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

  * { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --orange: #CC5500;
    --orange-bright: #e06010;
    --orange-glow: rgba(204,85,0,0.25);
    --bg: #080808;
    --bg2: #0d0d0d;
    --card: #111111;
    --card2: #161616;
    --border: rgba(255,255,255,0.07);
    --border-orange: rgba(204,85,0,0.3);
    --text: #e5e5e5;
    --muted: #777;
    --subtle: #444;
    --mono: 'JetBrains Mono', monospace;
  }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

  .grid-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
      linear-gradient(rgba(204,85,0,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(204,85,0,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  }

  /* NAV */
  nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(8,8,8,0.95); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 2.5rem;
  }
  nav::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0.4;
  }
  .nav-logo img { display: block; height: 54px; width: auto; }
  .nav-links { display: flex; align-items: center; gap: 0.25rem; }
  .nav-links a {
    color: #666; text-decoration: none; padding: 0.4rem 0.9rem;
    font-size: 1.23rem; font-family: var(--mono); letter-spacing: 0.04em;
    border-radius: 4px; transition: all 0.2s;
  }
  .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.04); }

  /* HERO */
  #home {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 6rem 2rem 5rem;
    position: relative; overflow: hidden; background: var(--bg);
  }
  .hero-glow {
    position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 400px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(204,85,0,0.2) 0%, transparent 70%);
    pointer-events: none;
  }
  .scanline {
    position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  }
  .hero { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
  .hero-top { display: flex; align-items: center; justify-content: center; gap: 3rem; margin-bottom: 1.75rem; text-align: left; }
  .hero-logo img { display: block; height: 130px; width: auto; }

  .hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 900; line-height: 1.08;
    color: #fff; margin-bottom: 1.5rem; letter-spacing: -0.02em;
  }
  .hero h1 .accent { color: var(--orange); }
  .hero h1 .outline { -webkit-text-stroke: 1px rgba(255,255,255,0.3); color: transparent; }
  .hero-sub {
    color: var(--muted); max-width: 520px; margin: 0 auto 1rem;
    line-height: 1.8; font-family: var(--mono); font-size: 0.88rem;
  }
  .hero-sub .hl { color: #aaa; }
  .hero-divider { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, var(--orange), transparent); margin: 1.75rem auto; }
  .btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
  .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.75rem; border-radius: 4px; font-weight: 700; font-size: 0.85rem; text-decoration: none; transition: all 0.2s; font-family: var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
  .btn-primary { background: var(--orange); color: #fff; border: 1px solid var(--orange); }
  .btn-primary:hover { background: var(--orange-bright); transform: translateY(-2px); box-shadow: 0 8px 30px var(--orange-glow); }
  .btn-outline { border: 1px solid var(--border); color: #888; background: transparent; }
  .btn-outline:hover { border-color: rgba(255,255,255,0.2); color: #fff; background: rgba(255,255,255,0.03); }

  /* SECTIONS */
  section { padding: 6rem 2rem; position: relative; z-index: 1; }
  .container { max-width: 1080px; margin: 0 auto; }
  .section-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--mono); font-size: 0.7rem; color: var(--orange);
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem;
  }
  .section-eyebrow::before { content: '//'; color: var(--subtle); }
  .section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; color: #fff; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
  .section-sub { color: var(--muted); font-size: 0.93rem; line-height: 1.8; max-width: 580px; }
  .divider { width: 40px; height: 2px; background: var(--orange); margin: 1rem 0 2rem; border-radius: 1px; }

  /* ABOUT */
  #about { background: var(--bg2); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3.5rem; }
  .about-text p { color: #777; line-height: 1.9; margin-bottom: 1rem; font-size: 0.94rem; }
  .about-text strong { color: #ccc; }
  .about-highlights { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
  .highlight { background: var(--card); padding: 1.35rem 1.5rem; transition: background 0.2s; position: relative; }
  .highlight:hover { background: var(--card2); }
  .highlight::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--orange); opacity: 0; transition: opacity 0.2s; }
  .highlight:hover::before { opacity: 1; }
  .highlight-num { font-family: var(--mono); font-size: 0.65rem; color: var(--orange); margin-bottom: 0.4rem; letter-spacing: 0.1em; }
  .highlight h4 { color: #ddd; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
  .highlight p { color: var(--muted); font-size: 0.83rem; line-height: 1.65; margin: 0; }

  /* SERVICES */
  #services { background: var(--bg); }
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 3rem; }
  .service-card { background: var(--card); padding: 1.75rem; transition: all 0.25s; position: relative; overflow: hidden; }
  .service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: 0; transition: opacity 0.3s; }
  .service-card:hover { background: #141414; }
  .service-card:hover::before { opacity: 1; }
  .svc-num { font-family: var(--mono); font-size: 0.65rem; color: var(--subtle); margin-bottom: 1rem; letter-spacing: 0.1em; }
  .icon { width: 42px; height: 42px; background: rgba(204,85,0,0.08); border: 1px solid var(--border-orange); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.2rem; }
  .service-card h3 { font-size: 0.98rem; color: #fff; margin-bottom: 0.6rem; font-weight: 700; }
  .service-card p { color: #666; font-size: 0.86rem; line-height: 1.72; margin-bottom: 1rem; }
  .service-card ul { list-style: none; }
  .service-card ul li { color: var(--subtle); font-size: 0.8rem; padding: 0.25rem 0 0.25rem 1rem; position: relative; }
  .service-card ul li::before { content: '›'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

  /* PRODUCTS */
  #products { background: var(--bg2); }
  .product-card { margin-top: 3rem; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 2.25rem; position: relative; overflow: hidden; }
  .product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
  .product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
  .product-name { font-size: 1.6rem; font-weight: 900; color: #fff; letter-spacing: -0.01em; margin: 0.15rem 0 0.4rem; }
  .product-tag { color: #aaa; font-size: 0.95rem; line-height: 1.6; max-width: 620px; }
  .product-desc { color: #777; font-size: 0.9rem; line-height: 1.85; margin-bottom: 1.5rem; max-width: 720px; }
  .product-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; margin-bottom: 1.75rem; }
  .product-features li { color: var(--muted); font-size: 0.84rem; padding-left: 1.1rem; position: relative; }
  .product-features li::before { content: '›'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
  .products-soon { margin-top: 1.75rem; color: var(--subtle); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.03em; }
  .products-soon span { color: var(--muted); }
  @media (max-width: 680px) { .product-features { grid-template-columns: 1fr; } .product-head { flex-direction: column; } }

  /* CONTACT */
  #contact { background: var(--bg2); }
  .contact-box { margin-top: 3rem; max-width: 580px; }
  .contact-box p { color: #666; line-height: 1.85; margin-bottom: 2rem; font-size: 0.93rem; }
  .contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
  .ci { width: 38px; height: 38px; background: rgba(204,85,0,0.08); border: 1px solid var(--border-orange); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
  .contact-item a { color: var(--orange-bright); text-decoration: none; font-family: var(--mono); font-size: 0.85rem; }
  .contact-item a:hover { color: #fff; }

  /* FOOTER */
  footer { background: #050505; border-top: 1px solid var(--border); padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
  .footer-logo img { display: block; height: 35px; width: auto; opacity: 0.3; }
  footer p { color: #2a2a2a; font-size: 0.75rem; font-family: var(--mono); }

  @media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 680px) {
    .nav-links { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
  }

/* ===== APPS & TOOLS (main-page grid) ===== */
#apps { background: var(--bg2); }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 3rem; }
.app-tile { background: var(--card); padding: 2rem 1.75rem; text-decoration: none; display: flex; flex-direction: column; transition: all 0.25s; position: relative; overflow: hidden; min-height: 235px; }
.app-tile::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: 0; transition: opacity 0.3s; }
.app-tile.live:hover { background: #141414; transform: translateY(-3px); }
.app-tile.live:hover::before { opacity: 1; }
.app-tile-icon { width: 54px; height: 54px; border-radius: 10px; background: rgba(204,85,0,0.08); border: 1px solid var(--border-orange); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.5rem; }
.app-tile-icon img { width: 34px; height: 34px; object-fit: contain; }
.app-tile-name { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 0.45rem; }
.app-tile-tag { color: var(--muted); font-size: 0.84rem; line-height: 1.6; flex: 1; }
.app-tile-status { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1.15rem; }
.app-tile.live .app-tile-status { color: var(--orange); }
.app-tile.soon { cursor: default; opacity: 0.55; }
.app-tile.soon .app-tile-status { color: var(--subtle); }
.app-tile.soon .app-tile-icon { filter: grayscale(1); opacity: 0.7; }
/* Two-up variant for the "More from Elevation" block on each app page, which shows
   the other two apps. Needs its own breakpoint rule: .apps-grid.two outranks the
   plain .apps-grid collapse below, so without this it would stay 2-up on phones. */
.apps-grid.two { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) { .apps-grid, .apps-grid.two { grid-template-columns: 1fr; } }

/* ===== RACK DETECTOR PAGE ===== */
.rd-hero { min-height: 84vh; display: flex; align-items: center; padding: 8rem 2rem 4rem; position: relative; overflow: hidden; background: var(--bg); }
.rd-hero-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; position: relative; z-index: 1; }
.rd-logo { max-width: 360px; width: 100%; height: auto; margin-bottom: 1.5rem; }
.rd-tagline { color: #cbcbcb; font-size: 1.08rem; line-height: 1.7; margin-bottom: 1.1rem; max-width: 520px; }
.rd-sub { color: var(--muted); font-family: var(--mono); font-size: 0.84rem; line-height: 1.85; margin-bottom: 2rem; max-width: 500px; }
.rd-elk { width: 100%; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.55); display: block; }
.rd-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.rd-note { color: var(--subtle); font-size: 0.78rem; font-family: var(--mono); margin-top: 1rem; }
.video-wrap { position: relative; width: 100%; max-width: 860px; margin: 3rem auto 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #0a0a0a; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }
.video-placeholder .play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--border-orange); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--orange); padding-left: 4px; }
.rd-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 3rem; }
.price-callout { margin-top: 3rem; background: var(--card); border: 1px solid var(--border-orange); border-radius: 12px; padding: 2.5rem; text-align: center; position: relative; overflow: hidden; }
.price-callout::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.price-big { font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; }
.price-big span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-sub { color: var(--muted); font-size: 0.85rem; margin: 0.85rem 0 1.75rem; font-family: var(--mono); }
@media (max-width: 820px) { .rd-hero-inner { grid-template-columns: 1fr; } .rd-features-grid { grid-template-columns: 1fr; } .rd-elk { max-width: 340px; margin: 0 auto; } }

.rd-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; color: #fff; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1.1rem; }
.rd-title span { color: var(--orange); }

/* ===== APP LANDING PAGES (rack-tracker.html + rack-scorer.html) =====
   The rt-* classes are shared by both mobile-app pages — phone-shaped screenshots,
   the privacy callout, and the screenshot carousel. Kept under the original prefix
   rather than renamed so both pages keep pointing at one set of rules. */
/* Phone screenshots are portrait, so unlike .rd-elk (a landscape photo) they need a
   width cap or they tower over the hero copy beside them. */
.rt-phone { display: block; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.6); }

.rt-privacy { margin-top: 3rem; background: var(--card); border: 1px solid var(--border-orange); border-radius: 12px; padding: 2.5rem; position: relative; overflow: hidden; }
.rt-privacy::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.rt-privacy-lead { color: #cbcbcb; font-size: 1.02rem; line-height: 1.8; }
.rt-privacy-lead strong { color: #fff; }
.rt-privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; margin-top: 2.25rem; }
.rt-privacy-item h4 { color: #fff; font-size: 0.95rem; font-weight: 800; margin-bottom: 0.4rem; }
.rt-privacy-item h4::before { content: '✓ '; color: var(--orange); font-weight: 700; }
.rt-privacy-item p { color: var(--muted); font-size: 0.86rem; line-height: 1.7; }

/* Screenshot carousel. The track is a native scroll-snap scroller so swipe works
   without JS; the buttons/dots below are enhancement. Three slides are visible on
   desktop and one on a phone. */
.rt-carousel { position: relative; margin-top: 3rem; }
.rt-car-track {
  display: flex; gap: 1.75rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  scrollbar-width: none;
}
.rt-car-track::-webkit-scrollbar { display: none; }
.rt-car-track:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; border-radius: 12px; }
.rt-car-slide { flex: 0 0 clamp(220px, 30%, 290px); margin: 0; scroll-snap-align: center; }
.rt-car-slide img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(0,0,0,0.5); background: #0a0a0a; }
.rt-car-slide figcaption { color: var(--muted); font-family: var(--mono); font-size: 0.74rem; line-height: 1.65; margin-top: 0.9rem; text-align: center; }

.rt-car-btn {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(10,10,10,0.85); border: 1px solid var(--border-orange);
  color: var(--orange); font-size: 1.6rem; line-height: 1; padding-bottom: 4px;
  transition: background 0.2s, opacity 0.2s;
}
.rt-car-btn:hover:not(:disabled) { background: var(--orange); color: #fff; }
.rt-car-btn:disabled { opacity: 0.25; cursor: default; }
.rt-car-btn.prev { left: -10px; }
.rt-car-btn.next { right: -10px; }

.rt-car-nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 0.5rem; }
.rt-car-dots { display: flex; gap: 0.5rem; }
.rt-car-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer; border: 1px solid var(--border-orange); background: transparent; transition: background 0.2s, transform 0.2s; }
.rt-car-dot.active { background: var(--orange); transform: scale(1.25); }
.rt-car-count { color: var(--subtle); font-family: var(--mono); font-size: 0.72rem; }

@media (max-width: 900px) {
  .rt-car-slide { flex: 0 0 min(72vw, 300px); }
  .rt-car-btn.prev { left: -4px; }
  .rt-car-btn.next { right: -4px; }
}
@media (max-width: 680px) { .rt-privacy-grid { grid-template-columns: 1fr; } .rt-privacy { padding: 1.75rem; } }

/* ===== LEGAL / POLICY PAGES ===== */
/* Callout for the plain-language summary at the top of a policy page. */
.legal-summary { background: var(--card); border: 1px solid var(--border-orange); border-left-width: 3px; border-radius: 10px; padding: 1.75rem 2rem; margin-bottom: 2.5rem; }
.legal-summary h2 { font-size: 1.05rem; }
.legal-summary ul { margin-bottom: 0; }
.legal-summary li { color: #999; }

.legal { max-width: 780px; margin: 0 auto; padding: 9rem 2rem 5rem; position: relative; z-index: 1; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.legal .updated { color: var(--subtle); font-family: var(--mono); font-size: 0.78rem; margin-bottom: 2.5rem; }
.legal h2 { color: #fff; font-size: 1.15rem; font-weight: 800; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { color: #888; line-height: 1.85; font-size: 0.92rem; }
.legal ul { margin: 0.5rem 0 0.5rem 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--orange-bright); text-decoration: none; }
.legal a:hover { color: #fff; }
.legal strong { color: #ccc; }
.footer-links a { color: #444; text-decoration: none; font-size: 0.75rem; font-family: var(--mono); }
.footer-links a:hover { color: var(--orange-bright); }
