/* Full-screen Lethela landing page. The WiFi request form keeps style.css. */
:root {
  --navy: #080b27;
  --ink: #03060d;
  --red: #b5001b;
  /* Lethela's lifted red for text on navy: #b5001b is too dark to read there. */
  --red-bright: #ff4d5e;
  --line: rgba(255, 255, 255, 0.12);
  --muted: rgba(255, 255, 255, 0.72);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: 20px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 0;
  animation: settle 2.4s var(--ease) both;
}

/* Cinematic grade: a dark top for the logo and a soft vignette */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 6, 13, 0.72) 0%, rgba(3, 6, 13, 0) 20%),
    radial-gradient(130% 100% at 65% 35%, rgba(3, 6, 13, 0) 50%, rgba(3, 6, 13, 0.5) 100%);
}

/* Fine film grain */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* Top bar */
.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(18px, env(safe-area-inset-top)) var(--pad) 0;
  animation: fade 1.2s var(--ease) 0.1s both;
}
.logo img { display: block; width: 118px; height: auto; }
.topnav { display: flex; align-items: center; gap: 8px; }

.site-link {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease, background 0.25s ease;
}
.site-link svg { width: 14px; height: 14px; opacity: 0.7; transition: transform 0.3s var(--ease); }
.site-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-link:hover svg { transform: translate(2px, -2px); }

.wifi-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 11, 39, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}
.wifi-pill:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.32); background: rgba(8, 11, 39, 0.6); }
.wifi-pill svg { width: 17px; height: 17px; color: var(--red-bright); }

/* Pitch */
.pitch {
  position: relative;
  z-index: 0;
  margin-top: auto;
  padding: 18px var(--pad) max(22px, env(safe-area-inset-bottom));
  max-width: 660px;
}
/* On phones and tablets a scrim follows the text up the photo, whatever the screen height */
.pitch::before {
  content: '';
  position: absolute;
  top: -170px;
  bottom: 0;
  left: 0;
  right: -100vw;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(3, 6, 13, 0) 0,
    rgba(3, 6, 13, 0.82) 170px,
    rgba(3, 6, 13, 0.95) 320px,
    var(--ink) 100%);
}
/* A slow red glow behind the join buttons */
.pitch::after {
  content: '';
  position: absolute;
  left: -45%;
  bottom: -55%;
  z-index: -1;
  width: 130%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(181, 0, 27, 0.24), rgba(181, 0, 27, 0));
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite alternate;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
}
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); }
.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--red-bright);
  border-radius: 50%;
  animation: ping 2.4s var(--ease) infinite;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 11.4vw, 68px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
/* Instrument Serif italic sits smaller than Outfit, so it is set a touch larger */
h1 em {
  display: block;
  width: fit-content;
  padding: 0 0.08em 0.04em 0;
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-size: 1.14em;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--red-bright);
  background: linear-gradient(100deg, #ff8792 0%, #ff4d5e 45%, #e3173a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub {
  max-width: 31em;
  margin: 16px 0 24px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
  text-wrap: pretty;
}
.sub strong { color: #fff; font-weight: 600; }

.cta-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.cta-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

/* Join tiles: customers first in Lethela red, vendors and drivers in glass */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; }
.tile-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 77, 94, 0.14);
  color: var(--red-bright);
}
.tile-icon svg { width: 18px; height: 18px; }
.tile-arrow { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.5); transition: transform 0.35s var(--ease), color 0.35s ease; }
.tile:hover .tile-arrow { transform: translate(3px, -3px); color: #fff; }
.tile-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.15; }
.tile-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.tile-text strong { font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; text-wrap: balance; }

.tile.primary {
  border-color: rgba(255, 135, 146, 0.38);
  background: linear-gradient(150deg, #d8132f 0%, #b5001b 48%, #7a0012 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 14px 36px rgba(181, 0, 27, 0.42);
}
.tile.primary:hover { border-color: rgba(255, 170, 178, 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 20px 44px rgba(181, 0, 27, 0.55); }
.tile.primary .tile-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tile.primary .tile-arrow { color: #fff; }
.tile.primary .tile-text small { color: rgba(255, 255, 255, 0.8); }
/* A sheen crosses the red tile once after load, and again on hover */
.tile.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.2) 48%, rgba(255, 255, 255, 0) 66%);
  transform: translateX(-120%);
  animation: sheen 1.3s var(--ease) 1.3s;
  pointer-events: none;
}
.tile.primary:hover::after { transform: translateX(120%); transition: transform 0.9s var(--ease); }

/* WiFi line */
.wifi-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 2px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}
.wifi-line svg { flex: none; width: 17px; height: 17px; color: var(--red-bright); }
.wifi-line b {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.wifi-line:hover b { background-size: 100% 1px; }
.wifi-line .arrow { margin-left: auto; color: rgba(255, 255, 255, 0.7); transition: transform 0.3s var(--ease); }
.wifi-line:hover .arrow { transform: translateX(3px); }

.tagline { display: none; }

/* Entrance */
.pitch > * { animation: rise 1s var(--ease) both; }
.pitch > :nth-child(2) { animation-delay: 0.08s; }
.pitch > :nth-child(3) { animation-delay: 0.16s; }
.pitch > :nth-child(4) { animation-delay: 0.24s; }
.pitch > :nth-child(5) { animation-delay: 0.3s; }
.pitch > :nth-child(6) { animation-delay: 0.36s; }

@keyframes settle { from { transform: scale(1.08); opacity: 0.4; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { from { opacity: 0.6; transform: scale(0.94); } to { opacity: 1; transform: scale(1.04); } }
@keyframes ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

/* Tablets and wide phones */
@media (min-width: 640px) {
  :root { --pad: 32px; }
  .logo img { width: 140px; }
  .site-link { display: inline-flex; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.2em; }
  .tiles { gap: 10px; }
  .tile { padding: 16px; gap: 20px; }
  .tile-text strong { font-size: 15.5px; }
}

/* Desktop: text on the dark side of the photo, rider and box on the right */
@media (min-width: 1100px) and (min-aspect-ratio: 7/5) {
  :root { --pad: clamp(44px, 5.2vw, 96px); }
  body { padding: 12px; }
  .hero {
    min-height: calc(100vh - 24px);
    min-height: calc(100svh - 24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
  }
  .hero-photo { object-position: 40% 50%; }
  .pitch::before { display: none; }
  .hero-shade {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(3, 6, 13, 0.92) 28%, rgba(3, 6, 13, 0.55) 44%, rgba(3, 6, 13, 0) 58%),
      linear-gradient(0deg, rgba(3, 6, 13, 0.6) 0%, rgba(3, 6, 13, 0) 26%),
      linear-gradient(180deg, rgba(3, 6, 13, 0.55) 0%, rgba(3, 6, 13, 0) 18%);
  }
  .topbar { padding-top: 34px; }
  .logo img { width: 156px; }
  .wifi-pill { padding: 11px 18px 11px 16px; font-size: 14.5px; }
  .pitch {
    width: calc(var(--pad) + clamp(480px, 41vw, 630px));
    max-width: none;
    margin: auto 0;
    padding: 0 0 48px var(--pad);
  }
  .eyebrow { margin-bottom: 26px; }
  h1 { font-size: clamp(52px, min(5.4vw, 9vh), 104px); }
  .sub { margin: 24px 0 34px; font-size: 18.5px; }
  .tiles { gap: 12px; }
  .tile {
    padding: 18px;
    gap: 24px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }
  .tile-icon { width: 38px; height: 38px; border-radius: 12px; }
  .tile-icon svg { width: 20px; height: 20px; }
  .tile-text strong { font-size: 16px; }
  .wifi-line { margin-top: 22px; padding-top: 18px; font-size: 15px; }
  .tagline {
    display: flex;
    align-items: center;
    gap: 16px;
    position: absolute;
    top: 50%;
    left: clamp(14px, 1.5vw, 26px);
    z-index: 1;
    margin: 0;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.42);
    animation: fade 1.6s var(--ease) 0.6s both;
  }
  .tagline::before, .tagline::after { content: ''; width: 1px; height: 44px; background: rgba(255, 255, 255, 0.16); }
}

/* Big screens: the copy and buttons grow with the headline */
@media (min-width: 1700px) and (min-aspect-ratio: 7/5) and (min-height: 950px) {
  .pitch { width: calc(var(--pad) + 700px); }
  .sub { font-size: 20.5px; }
  .tile { padding: 20px; }
  .tile-text small { font-size: 11px; }
  .tile-text strong { font-size: 17.5px; }
  .wifi-line { font-size: 16px; }
}

/* Short phones: a smaller headline leaves more of the photo in view */
@media (max-width: 639px) and (max-height: 700px) {
  .topbar { padding-top: max(14px, env(safe-area-inset-top)); }
  .eyebrow { margin-bottom: 12px; }
  h1 { font-size: clamp(34px, 9.6vw, 40px); }
  .sub { margin: 12px 0 18px; font-size: 15px; }
  .cta-label { margin-bottom: 10px; }
  .tile { gap: 12px; padding: 11px; }
  .wifi-line { margin-top: 12px; padding-top: 12px; }
}

/* Short laptop screens: tighten the vertical rhythm so everything fits on one screen */
@media (min-width: 1100px) and (min-aspect-ratio: 7/5) and (max-height: 820px) {
  .topbar { padding-top: 24px; }
  .pitch { padding-top: 12px; padding-bottom: 26px; }
  .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(46px, min(5vw, 8.2vh), 88px); }
  .sub { margin: 16px 0 22px; font-size: 17px; }
  .tile { padding: 14px 16px; gap: 14px; }
  .tile-icon { width: 34px; height: 34px; }
  .tile-icon svg { width: 18px; height: 18px; }
  .wifi-line { margin-top: 16px; padding-top: 14px; }
}

/* Last, so it also stills the animations set inside the layouts above */
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .topbar, .pitch > *, .pitch::after, .pulse::after, .tile.primary::after, .tagline { animation: none; }
  .tile, .tile-arrow, .wifi-pill, .tile.primary:hover::after { transition: none; }
}
