/* BME landing page. Tokens come from the BME Design System artifact
   (brand #0197da, Inter, 10px radius). Light theme only, matching the Figma reference. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #0197da;          /* icons, large accents */
  --brand-btn: #0179b3;      /* buttons and text links: white on it is 4.8:1 */
  --brand-btn-hover: #02669a;
  --brand-tint: #f0f8fd;
  --brand-soft: #cae6ff;
  --navy: #00344e;           /* footer, app section (from Figma) */
  --surface: #ffffff;
  --surface-muted: #f0f1f3;
  --page: #f7fafc;
  --ink: #14181b;
  --ink-2: #4a4e50;          /* secondary text, 8:1 on white */
  --ink-3: #6a6e70;          /* captions, 5:1 on white */
  --line: rgba(0, 0, 0, 0.1);
  --gold: #ffb800;

  --radius-ctl: 10px;        /* buttons */
  --radius-card: 14px;       /* cards and images */
  --radius-pill: 999px;      /* chips */

  --shadow-card: 0 1px 2px rgba(0, 52, 78, 0.06), 0 8px 24px -8px rgba(0, 52, 78, 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul, dl, dd, figure, blockquote { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-ctl);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--brand-btn); outline-offset: 3px; border-radius: 4px; }

/* ---------- Icons (monochrome Phosphor glyphs via mask) ---------- */
.ico { display: inline-block; flex: none; width: 1.25em; height: 1.25em; background: currentColor;
  -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.ico--play  { --g: url("assets/icons/ph-google-play-logo.svg"); }
.ico--star  { --g: url("assets/icons/ph-star-fill.svg"); }
.ico--check { --g: url("assets/icons/ph-check-circle-fill.svg"); }
.ico--phone { --g: url("assets/icons/ph-device-mobile.svg"); }
.ico--remote { --g: url("assets/icons/tb-remote.svg"); color: var(--brand); }
.ico--pack   { --g: url("assets/icons/ph-package.svg"); color: var(--brand); }
.ico--fan    { --g: url("assets/icons/ph-fan.svg"); color: var(--brand); }
.ico--switch { --g: url("assets/icons/ph-toggle-left.svg"); color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 700 15px/1 "Inter", sans-serif; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius-ctl); cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--brand-btn); color: #fff; box-shadow: 0 6px 16px -6px rgba(1, 121, 179, 0.6); }
.btn--primary:hover { background: var(--brand-btn-hover); transform: translateY(-2px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5); }
.btn .ico { width: 20px; height: 20px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__bar { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: none; margin-left: auto; gap: 28px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--brand-btn); }
.nav .btn { margin-left: auto; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav .btn { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 72px) 0 clamp(40px, 6vw, 64px);
  background: linear-gradient(100deg, #e6f2ff 0%, #f4f7fb 55%, #fff1de 100%);
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__tag { display: inline-block; margin-bottom: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600;
  color: var(--brand-btn); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); }
h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; max-width: 14ch; }
.hero__lead { margin-top: 20px; max-width: 46ch; font-size: 17px; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__visual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero__tile { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); transition: transform .3s var(--ease); }
.hero__tile:hover { transform: translateY(-4px); }
.hero__tile > img, .hero__tile > .ico { width: 36px; height: 36px; }
.hero__tile strong { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.stats__item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 14px; color: var(--ink-2); }
.stats__item strong { color: var(--ink); font-weight: 700; }
.stats .ico--star { color: var(--gold); width: 16px; height: 16px; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.section__title { text-align: center; margin-bottom: 40px; }
h3 { font-size: 16px; line-height: 1.35; font-weight: 600; }

/* About */
.about__grid { display: grid; gap: 24px; }
.about__lead { font-size: 20px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; max-width: 36ch; }
.about__body p + p { margin-top: 16px; color: var(--ink-2); max-width: 62ch; }
.about__facts { display: grid; gap: 20px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.about__facts dt { font-size: 13px; color: var(--ink-3); }
.about__facts dd { font-size: 15px; font-weight: 600; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1fr 2fr; gap: 64px; }
  .about__facts { grid-template-columns: repeat(3, 1fr); }
}

/* Categories */
.cats { display: grid; gap: 14px; }
.cat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px; background: var(--surface-muted);
  border-radius: var(--radius-card); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.cat__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; background: #fff; border-radius: 12px;
  box-shadow: 1px 1px 4px -1px rgba(0, 0, 0, 0.25); }
.cat__icon img, .cat__icon .ico { width: 32px; height: 32px; object-fit: contain; }
.cat__name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.cat__desc { font-size: 14px; color: var(--ink-2); max-width: 30ch; }
@media (min-width: 800px) { .cats { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Why us */
.why { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.why__item { padding: 28px; }
.why__item + .why__item { border-top: 1px solid var(--line); }
.why__item img { margin-bottom: 18px; }
.why__item p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 700px) {
  .why { grid-template-columns: repeat(2, 1fr); }
  .why__item:nth-child(2) { border-top: 0; }
  .why__item:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (min-width: 1000px) {
  .why { grid-template-columns: repeat(4, 1fr); }
  .why__item + .why__item { border-top: 0; border-left: 1px solid var(--line); }
}

/* MyBME app */
.section--app { background: var(--navy); color: #fff; }
.app { display: grid; gap: 40px; align-items: center; }
.app__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--gold); }
.app__lead { margin: 16px 0 32px; max-width: 44ch; color: rgba(255, 255, 255, 0.8); font-size: 17px; }
.app__features { display: grid; gap: 14px; }
.app__features li { display: flex; gap: 14px; padding: 18px 20px; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-card); }
.app__features .ico { margin-top: 2px; width: 22px; height: 22px; color: #5ccbff; }
.app__features p { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
@media (min-width: 900px) { .app { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Testimonials */
.quotes { display: grid; gap: 14px; }
.quote { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.quote__stars { display: flex; gap: 2px; color: var(--gold); font-size: 16px; }
.quote blockquote { font-size: 16px; line-height: 1.55; color: var(--ink); }
.quote__by { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; font-size: 13px; }
.quote__by strong { font-weight: 600; }
.quote__by span { color: var(--ink-3); }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 28px; background: var(--navy); color: #fff; }
.footer__top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.footer__brand img { height: 40px; width: auto; background: #fff; padding: 6px 12px; border-radius: 8px; }
.footer__brand p { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.footer__contact { display: grid; gap: 20px; }
.footer__contact li { display: flex; align-items: center; gap: 12px; }
.footer__contact span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.footer__contact a, .footer__contact p { font-size: 14px; color: #fff; text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }
.footer__copy { margin-top: 24px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.72); }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1fr auto; align-items: center; }
  .footer__contact { grid-auto-flow: column; gap: 40px; }
}

/* ---------- Motion: reveal on scroll (hierarchy), off for reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .hero__copy > * { animation: rise .8s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .hero__visual { animation: rise .9s var(--ease) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cat, .hero__tile { transition: none; }
}
