/* ==========================================================================
   MyanChoice – Coming Soon
   Mobile-first stylesheet. No external dependencies.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #092D68;
  --navy-700: #0B3A85;
  --navy-900: #061F4A;
  --red: #E51B2B;
  --red-600: #C8121F;
  --green: #17A35B;
  --green-soft: #E6F6EE;

  --bg: #FFFFFF;
  --bg-soft: #F4F7FC;
  --bg-tint: #EAF0FA;
  --line: #E2E8F2;

  --text: #0E1B33;
  --text-muted: #55627A;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(9, 45, 104, .06), 0 2px 8px rgba(9, 45, 104, .05);
  --shadow: 0 4px 12px rgba(9, 45, 104, .06), 0 16px 40px rgba(9, 45, 104, .08);
  --shadow-lg: 0 24px 60px rgba(9, 45, 104, .18);

  --container: 1160px;
  --gutter: 20px;
  --header-h: 68px;

  /* Latin glyphs use the system UI font; Burmese glyphs fall through to the
     Unicode "Noto Sans Myanmar" web font (loaded in index.html). */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
          "Noto Sans Myanmar", "Myanmar Text", "Myanmar Sangam MN", "Padauk", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8; /* Burmese stacks marks above & below – needs room */
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
}

/* Burmese line-breaking: browsers break between syllables. Balance headings,
   avoid one-syllable orphans in paragraphs, and keep key words whole. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.nowrap { white-space: nowrap; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.5; color: var(--navy); letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared bits ---------- */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 163, 91, .18);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.badge-soft {
  background: rgba(229, 27, 43, .08);
  color: var(--red);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.eyebrow-plain {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.eyebrow-light {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #9DB8E8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(9, 45, 104, .22);
}
.btn-primary:hover { background: var(--navy-700); transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }

/* ---------- Logo crop ----------
   The supplied logo has generous white padding. We crop it with CSS
   (no image edits) so the mark reads clearly at header size.
   Visible region ≈ x 40–1500, y 90–880 of the 1536×1024 source. */
.logo-crop {
  display: block;
  width: 118px;
  aspect-ratio: 1460 / 790;
  overflow: hidden;
}
.logo-crop img {
  width: 105.2%;
  max-width: none;
  margin: -6.16% 0 0 -2.74%;
}
.logo-crop-sm { width: 104px; }

/* ---------- A. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(9, 45, 104, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: block; border-radius: 6px; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .2s;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-status { display: flex; align-items: center; gap: 16px; }
.status-text {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------- B. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 56px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 30%, var(--bg-tint) 0%, transparent 70%),
    var(--bg-soft);
}
/* Mobile order: headline → app preview → text & buttons,
   so the preview is visible on the first screen. */
.hero-inner {
  display: grid;
  grid-template-areas:
    "head"
    "visual"
    "body";
  gap: 24px;
  align-items: center;
}
.hero-head { grid-area: head; text-align: center; }
.hero-body { grid-area: body; text-align: center; }
.hero-visual { grid-area: visual; }
.hero .eyebrow { margin-bottom: 10px; }

.hero h1 {
  font-size: clamp(1.75rem, 7vw, 3.25rem);
  font-weight: 800;
  line-height: 1.45;
}
.accent { color: var(--red); }

.lead {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--red); width: 18px; height: 18px; }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
}
/* Soft brand-tinted backdrop behind the phone */
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 6%;
  left: 50%;
  width: min(440px, 108vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #DCE6F7 0%, #E9EFFA 55%, transparent 72%);
}
/* Thin red arc echoing the logo swoosh */
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2%;
  left: 50%;
  width: min(400px, 100vw);
  aspect-ratio: 1;
  transform: translateX(-50%) rotate(-20deg);
  border-radius: 50%;
  border: 2px solid rgba(229, 27, 43, .28);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

/* Device mockup – sized so the whole phone fits on the first screen */
.device {
  position: relative;
  width: clamp(200px, calc((100svh - 260px) / 2.2), 250px);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1B2742, #0A1222);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .08),
    var(--shadow-lg);
}
.device::before { /* side button */
  content: "";
  position: absolute;
  right: -3px;
  top: 120px;
  width: 3px;
  height: 64px;
  border-radius: 0 3px 3px 0;
  background: #1B2742;
}
.device-screen {
  overflow: hidden;
  border-radius: 36px;
  background: #fff;
  aspect-ratio: 711 / 1536;
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-118%);
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.float-card strong { display: block; font-size: 14px; color: var(--navy); line-height: 1.3; }
.float-card small { display: block; font-size: 12px; color: var(--text-muted); }
.float-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(229, 27, 43, .08);
  color: var(--red);
}

.visual-caption {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }

.section-head {
  max-width: 40rem;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 12px; }
.section h2 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
}

/* ---------- C. Categories ---------- */
.card-grid {
  display: grid;
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #CBD7EA;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--bg-tint);
  color: var(--navy);
}
.card-icon .icon { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; font-weight: 700; }
.card p { margin-top: 6px; color: var(--text-muted); }
.card-tag {
  align-self: flex-start;
  margin-top: 20px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.card-more .card-icon { background: rgba(229, 27, 43, .08); color: var(--red); }
.card-more .card-tag { background: var(--green-soft); color: #0E7A42; }

/* ---------- D. Brand message ---------- */
.brand-message {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.brand-message::after { /* subtle swoosh echoing the logo */
  content: "";
  position: absolute;
  right: -180px;
  top: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 2px solid rgba(229, 27, 43, .35);
  border-left-color: transparent;
  border-bottom-color: transparent;
  pointer-events: none;
}
.brand-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}
.brand-message h2 { color: #fff; }
.accent-light { color: #FF5A66; }
.brand-copy p {
  margin-top: 20px;
  max-width: 32rem;
  font-size: 1.0625rem;
  color: #C9D6EE;
}

.pillars { display: grid; gap: 12px; }
.pillars li {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}
.pillar-num {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  color: #FF5A66;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.pillars h3 { color: #fff; font-size: 1.0625rem; font-weight: 700; }
.pillars p { margin-top: 4px; font-size: 15px; color: #B5C5E3; }

/* ---------- E. Coming soon ---------- */
.launch { background: var(--bg-soft); }
.launch-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.launch-card h2 { margin-top: 18px; }
.launch-card > p:not(.launch-domain) {
  max-width: 30rem;
  margin: 16px auto 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
}
.launch-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.launch-domain .icon { color: var(--red); width: 18px; height: 18px; }

/* ---------- F. Footer ---------- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-brand { border-radius: 6px; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Small tablets */
@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .launch-card { padding: 64px 48px; }
}

/* Tablets */
@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .logo-crop { width: 136px; }
  .main-nav { display: block; }
  .section { padding: 96px 0; }
  .float-card { display: flex; }
  .device { width: clamp(220px, calc((100svh - 300px) / 2.2), 280px); }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
  .status-text { display: inline-flex; }

  /* Two columns: text left, preview right – fits within one screen height */
  .hero { padding: 32px 0 56px; }
  .hero-inner {
    grid-template-columns: 1.1fr .9fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "head visual"
      "body visual";
    column-gap: 64px;
    row-gap: 24px;
    min-height: min(calc(100svh - var(--header-h) - 88px), 820px);
  }
  .hero-head { align-self: end; text-align: left; }
  .hero-body { align-self: start; text-align: left; }
  .lead { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-points { justify-content: flex-start; }
  .device { width: clamp(240px, calc((100svh - 190px) / 2.2), 320px); }
  .hero-visual::before { width: 560px; }
  .hero-visual::after { width: 500px; }
  .float-card { transform: translateX(-135%); bottom: 96px; }

  .card-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .card { padding: 28px; }

  .brand-inner { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
