:root {
  --navy-0: #050a18;
  --navy-1: #0a1430;
  --navy-2: #0f1d4a;
  --blue-1: #1a3a8a;
  --blue-2: #2862c8;
  --blue-3: #4a8cf0;
  --ink:    #0c1226;
  --ink-2:  #2a3550;
  --mute:   #6b7592;
  --line:   #e6eaf2;
  --line-2: #eef1f7;
  --paper:  #ffffff;
  --bg-soft:#f5f7fb;
  --green:  #2ecc71;
  --green-d:#1ea85b;
  --red:    #e8494e;
  --orange: #ff9a3c;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: #fff;
  background:
    radial-gradient(120% 80% at 50% -10%, #1d3782 0%, #0a1430 55%, #050a18 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue-3); color: #fff; }

/* ============ Layout ============ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ============ Topbar ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(180deg, rgba(10,20,48,0.7), rgba(10,20,48,0.3));
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .icon { width: 36px; height: 36px; border-radius: 10px; }
.brand .name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand .name span { color: rgba(255,255,255,0.55); font-weight: 500; margin-left: 6px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 14px; color: rgba(255,255,255,0.78); font-weight: 500; }
.nav a:hover { color: #fff; }
.nav .cta {
  padding: 10px 18px; background: #fff; color: var(--ink);
  border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: 150ms;
}
.nav .cta:hover { background: var(--blue-3); color: #fff; }

/* ============ App Icon ============ */
.app-icon {
  border-radius: 22%;
  background:
    radial-gradient(120% 80% at 50% 0%, #4a8cf0 0%, #2862c8 35%, #1a3a8a 75%, #0f2470 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -8px 18px rgba(0,0,0,0.25),
    0 8px 28px rgba(15,30,90,0.55);
  position: relative;
  overflow: hidden;
}
.app-icon::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 35%);
  border-radius: inherit;
  pointer-events: none;
}
.app-icon svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============ Hero ============ */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; left: 50%; top: 30%;
  width: 700px; height: 700px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(74,140,240,0.25) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-icon {
  width: 132px; height: 132px;
  margin: 0 auto 36px;
  position: relative;
}
h1.title {
  font-weight: 800;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  background: linear-gradient(180deg, #fff 0%, #c8d4ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 40px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-sub strong { color: #fff; font-weight: 700; }
.hero-cta { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: 150ms;
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: #fff; color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--blue-3); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.32); }
.btn .arrow { transition: transform 180ms; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-meta {
  margin-top: 28px;
  display: inline-flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; margin-right: 8px; box-shadow: 0 0 12px var(--green); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* ============ Phones row ============ */
.phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 40px 0 120px;
  align-items: end;
}
.phone-cell { text-align: left; }
.phone-cell .caption {
  text-align: center;
  font-size: 22px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2;
  margin-bottom: 28px; min-height: 54px;
}
.phone-cell .caption span { color: var(--blue-3); }

.phone {
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #1a1a1a;
  border-radius: 42px;
  padding: 10px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 -1px 0 rgba(0,0,0,0.5) inset,
    0 30px 60px -10px rgba(0,0,0,0.55),
    0 80px 100px -40px rgba(74,140,240,0.18);
  position: relative;
}
.phone::after {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 28px; background: #000; border-radius: 16px; z-index: 5;
}
.screen {
  width: 100%; height: 100%;
  background: #f5f6fa;
  border-radius: 32px;
  overflow: hidden;
  color: var(--ink);
  display: flex; flex-direction: column;
  font-size: 11px;
  position: relative;
}
.stbar {
  height: 50px;
  padding: 18px 24px 0;
  display: flex; justify-content: space-between; align-items: start;
  font-weight: 700; font-size: 12px; letter-spacing: -0.01em;
}
.stbar .right { display: flex; gap: 5px; align-items: center; }
.stbar .bars { display: inline-flex; gap: 2px; align-items: end; }
.stbar .bars i { display: block; width: 3px; background: var(--ink); border-radius: 1px; }
.stbar .bars i:nth-child(1) { height: 4px; }
.stbar .bars i:nth-child(2) { height: 6px; }
.stbar .bars i:nth-child(3) { height: 8px; }
.stbar .bars i:nth-child(4) { height: 10px; }
.stbar .wifi { width: 14px; height: 10px; position: relative; }
.stbar .wifi::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; border: 2px solid var(--ink); border-bottom: none; }
.stbar .batt {
  width: 24px; height: 11px; border: 1px solid var(--ink); border-radius: 3px;
  position: relative; padding: 1px;
}
.stbar .batt::after { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 4px; background: var(--ink); border-radius: 0 1px 1px 0; }
.stbar .batt i { display: block; width: 75%; height: 100%; background: var(--ink); border-radius: 1px; }

/* --- Phone 1 (Locations list) --- */
.nav-row {
  padding: 10px 18px 4px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-row h2 { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.nav-row .iconbtn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-2); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.search {
  margin: 8px 14px 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 6px;
  color: var(--mute); font-size: 13px;
}
.search::before { content: "⌕"; font-size: 14px; }
.filter-row { padding: 0 14px 10px; display: flex; gap: 6px; overflow: hidden; }
.pill {
  padding: 6px 11px; border-radius: 999px;
  background: #fff; color: var(--ink-2);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line);
}
.pill.on { background: var(--blue-2); color: #fff; border-color: var(--blue-2); }
.list { background: #fff; margin: 0 12px; border-radius: 14px; overflow: hidden; }
.list-row { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.list-row .thumb {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, #c4d2eb, #6e8db8);
  position: relative; overflow: hidden;
}
.list-row .thumb.t2 { background: linear-gradient(135deg, #d4b896, #8a6e4a); }
.list-row .thumb.t3 { background: linear-gradient(135deg, #b8d8b8, #4e8a5a); }
.list-row .thumb.t4 { background: linear-gradient(135deg, #e8c4a8, #b87850); }
.list-row .thumb.t5 { background: linear-gradient(135deg, #f0d49a, #c89548); }
.list-row .thumb.t6 { background: linear-gradient(135deg, #d8c0d8, #8a5e8a); }
.list-row .name-l { font-weight: 700; font-size: 13px; letter-spacing: -0.01em; }
.list-row .gdot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px rgba(46,204,113,0.18);
}
.list-row .rdot { background: var(--red); box-shadow: 0 0 0 2px rgba(232,73,78,0.18); }
.list-row .chev { color: var(--mute); font-size: 14px; }

/* --- Phone 2 (Menu detail) --- */
.top-back {
  padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.top-back .back { color: var(--blue-2); font-weight: 600; display: flex; align-items: center; gap: 2px; }
.top-back .ttl { font-weight: 700; font-size: 14px; }
.top-back .share { color: var(--blue-2); font-size: 16px; }
.addr-card { background: #fff; margin: 6px 12px; border-radius: 14px; padding: 10px; display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center; }
.addr-card .map {
  width: 50px; height: 50px; border-radius: 10px;
  background: linear-gradient(135deg, #d4e0f0, #b8c8e0);
  position: relative; overflow: hidden;
}
.addr-card .map::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 12px 12px;
}
.addr-card .map::after {
  content: "●"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--red); font-size: 12px;
}
.addr-card .addr-text { font-size: 11px; line-height: 1.4; color: var(--ink-2); }
.addr-card .addr-text b { font-size: 12px; color: var(--ink); display: block; }
.day-row { background: #fff; margin: 6px 12px 0; border-radius: 14px 14px 0 0; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.day-row .picker { color: var(--blue-2); }
.section-label {
  background: #fff; margin: 0 12px; padding: 8px 12px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--mute); text-transform: uppercase;
  border-bottom: 1px solid var(--line-2);
}
.menu-item {
  background: #fff; margin: 0 12px;
  padding: 10px 12px;
  display: grid; grid-template-columns: 1fr 40px;
  gap: 8px;
  border-bottom: 1px solid var(--line-2);
}
.menu-item:last-of-type { border-radius: 0 0 14px 14px; }
.mi-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.mi-station { font-weight: 700; font-size: 11px; }
.mi-station .leaf { color: var(--green); font-size: 10px; }
.mi-station .meat { color: var(--orange); font-size: 10px; }
.mi-prices { font-family: var(--mono); font-size: 9px; color: var(--mute); white-space: nowrap; }
.mi-name { font-weight: 800; font-size: 11px; letter-spacing: -0.005em; line-height: 1.2; margin: 4px 0 3px; }
.mi-desc { font-size: 10px; color: var(--mute); line-height: 1.35; }
.menu-item .mi-img {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, #f4d088, #c46420);
  grid-column: 2; grid-row: 1;
}
.menu-item .mi-img.alt2 { background: linear-gradient(135deg, #d8e8b4, #688a3c); }
.menu-item .mi-img.alt3 { background: linear-gradient(135deg, #f0c8a0, #c87848); }
.menu-item .mi-img.alt4 { background: linear-gradient(135deg, #e8d4a8, #a8804c); }

/* --- Phone 3 (Settings) --- */
.settings-bar {
  padding: 14px 14px 8px;
  display: flex; justify-content: space-between; align-items: center;
}
.settings-bar .close { color: var(--blue-2); font-weight: 600; font-size: 13px; }
.settings-bar .ttl { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.settings-bar .spacer { width: 36px; }
.grp-label { padding: 12px 26px 4px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--mute); text-transform: uppercase; }
.grp { background: #fff; margin: 0 12px; border-radius: 14px; overflow: hidden; }
.grp-row { padding: 10px 12px; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line-2); }
.grp-row:last-child { border-bottom: 0; }
.grp-row .gi {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700;
}
.gi.b1 { background: var(--blue-2); }
.gi.b2 { background: var(--red); }
.gi.b3 { background: var(--orange); }
.gi.b4 { background: var(--green-d); }
.gi.b5 { background: #8a6ed3; }
.gi.b6 { background: #1d9eaa; }
.grp-row .lbl { font-size: 12px; font-weight: 600; }
.toggle {
  width: 32px; height: 18px; border-radius: 999px; background: var(--green);
  position: relative; box-shadow: inset 0 1px 2px rgba(0,0,0,0.18);
}
.toggle::after {
  content: ""; position: absolute; top: 1.5px; right: 1.5px;
  width: 15px; height: 15px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle.off { background: #c8ccd6; }
.toggle.off::after { left: 1.5px; right: auto; }
.grp-row .val { font-size: 11px; color: var(--mute); font-weight: 500; }
.grp-row .val::after { content: " ⌃⌄"; font-family: var(--mono); }

/* ============ Section ============ */
.section { padding: 100px 0; position: relative; }
.section.alt {
  background: #fff;
  color: var(--ink);
  border-radius: 36px 36px 0 0;
  margin-top: 60px;
}
.section.alt-tail { background: #fff; color: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--blue-3); text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--blue-3); border-radius: 50%; }
.alt .eyebrow { color: var(--blue-2); }
.alt .eyebrow::before { background: var(--blue-2); }
.h2 {
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 20px;
  max-width: 18ch;
}
.h2 span { color: var(--blue-3); }
.alt .h2 span { color: var(--blue-2); }
.lede {
  font-size: 18px; line-height: 1.55; max-width: 620px;
  color: rgba(255,255,255,0.72);
}
.alt .lede, .alt-tail .lede { color: var(--ink-2); }

/* ============ Feature grid ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.feat {
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  transition: 200ms;
  min-height: 220px;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -16px rgba(20,40,90,0.14); border-color: var(--blue-3); }
.feat .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-2), var(--blue-1));
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 16px rgba(40,98,200,0.32), inset 0 1px 0 rgba(255,255,255,0.35);
}
.feat .ico.g { background: linear-gradient(135deg, var(--green), var(--green-d)); box-shadow: 0 6px 16px rgba(30,168,91,0.32), inset 0 1px 0 rgba(255,255,255,0.35);}
.feat .ico.o { background: linear-gradient(135deg, var(--orange), #d8731c); box-shadow: 0 6px 16px rgba(216,115,28,0.32), inset 0 1px 0 rgba(255,255,255,0.35);}
.feat .ico.r { background: linear-gradient(135deg, var(--red), #b83438); box-shadow: 0 6px 16px rgba(184,52,56,0.32), inset 0 1px 0 rgba(255,255,255,0.35);}
.feat .ico.p { background: linear-gradient(135deg, #8a6ed3, #5a4a9c); box-shadow: 0 6px 16px rgba(90,74,156,0.32), inset 0 1px 0 rgba(255,255,255,0.35);}
.feat .ico.t { background: linear-gradient(135deg, #1d9eaa, #0e6e78); box-shadow: 0 6px 16px rgba(14,110,120,0.32), inset 0 1px 0 rgba(255,255,255,0.35);}
.feat h3 { font-weight: 800; font-size: 19px; letter-spacing: -0.015em; margin: 4px 0 0; line-height: 1.2; }
.feat p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* ============ Download ============ */
.download {
  margin: 0 -28px;
  padding: 100px 28px 120px;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(74,140,240,0.4) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-1), var(--navy-0));
  color: #fff;
  text-align: center;
}
.download .h2 {
  margin: 0 auto 20px;
  background: linear-gradient(180deg, #fff, #c8d4ee);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.download .h2 span { -webkit-text-fill-color: var(--blue-3); }
.download .lede { margin: 0 auto 40px; }
.platforms {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; max-width: 1080px; margin: 0 auto;
}
.platform {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border-radius: 14px; padding: 18px 16px; text-align: center;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center;
  transition: 160ms;
  cursor: pointer;
}
.platform:hover { background: rgba(74,140,240,0.18); border-color: var(--blue-3); transform: translateY(-2px); }
.platform .pname { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.platform .psub { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.55); }
.platform .gl {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(135deg, var(--blue-3), var(--blue-1));
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ============ Footer ============ */
footer {
  padding: 48px 0 32px;
  background: var(--navy-0);
  color: rgba(255,255,255,0.6);
}
footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
footer h5 { font-weight: 700; font-size: 13px; color: #fff; margin: 0 0 14px; letter-spacing: -0.005em; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
footer ul a:hover { color: var(--blue-3); }
footer .colophon { font-size: 13px; line-height: 1.55; max-width: 34ch; }
footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px; margin-top: 24px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4);
}
footer .brand-mini { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
footer .brand-mini .icon { width: 32px; height: 32px; border-radius: 9px; }
footer .brand-mini .name { font-weight: 800; color: #fff; font-size: 16px; }

@media (max-width: 980px) {
  .phones { grid-template-columns: 1fr; gap: 80px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav .links { display: none; }
  .feat-grid, .platforms { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
html { scroll-behavior: smooth; }
