:root {
  --md-navy: #0D1B2A;
  --md-navy-2: #17345C;
  --md-gold: #D2A136;
  --md-gold-light: #E8C463;
  --md-cream: #F4F1EA;
  --md-paper: #FBFAF6;
  --md-sky: #9FB0C0;
  --md-ink: #16273C;
  --md-soft: #526276;
  --md-line: rgba(159, 176, 192, .22);
  --md-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --md-sans: "Avenir Next", "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--md-ink); background: var(--md-paper); font-family: var(--md-sans); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }

.md-page { overflow: hidden; }
.md-hero {
  min-height: 900px;
  padding: clamp(7rem, 11vw, 9.5rem) 0 clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(95% 80% at 78% 8%, rgba(232, 196, 99, .2), transparent 55%),
    linear-gradient(135deg, #FBFAF6 0%, #F4F1EA 50%, #E7EBF0 100%);
}
.md-wrap { width: min(1160px, calc(100% - 44px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.md-copy { max-width: 650px; }
.md-eyebrow { margin: 0; color: #A77717; font-size: .7rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.md-copy h1 { margin: 1.2rem 0 0; color: var(--md-navy); font-family: var(--md-serif); font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.md-copy h1 em { color: #A77717; font-weight: 500; }
.md-lede { max-width: 37rem; margin: 1.8rem 0 0; color: var(--md-soft); font-family: var(--md-serif); font-size: clamp(1.18rem, 2vw, 1.45rem); font-style: italic; line-height: 1.55; }
.md-steps { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.md-steps span { padding: .48rem .8rem; border: 1px solid rgba(176, 128, 31, .3); border-radius: 999px; color: var(--md-navy-2); background: rgba(255, 255, 255, .55); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.md-guardrail { max-width: 36rem; margin: 1.5rem 0 0; padding: 1rem 1.1rem; border-left: 3px solid var(--md-gold); color: var(--md-soft); background: rgba(255, 255, 255, .55); font-size: .9rem; line-height: 1.55; }
.md-guardrail strong { color: var(--md-navy); }
.md-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.md-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .7rem 1.35rem; border: 1px solid var(--md-navy-2); border-radius: 999px; color: #fff; background: var(--md-navy-2); font-size: .82rem; font-weight: 800; text-decoration: none; }
.md-button--ghost { color: var(--md-navy-2); background: transparent; }
.md-button:hover { transform: translateY(-1px); }
.md-button:focus-visible { outline: 3px solid var(--md-gold); outline-offset: 3px; }

.md-demo-wrap { justify-self: center; }
.md-instruction { margin: 0 0 .75rem; color: var(--md-soft); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.md-phone { width: 350px; max-width: 100%; height: 720px; padding: 12px; border-radius: 51px; background: #050607; box-shadow: 0 48px 90px -26px rgba(15, 39, 67, .55), 0 12px 30px rgba(13, 27, 42, .16); }
.md-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 40px; background: var(--md-navy); color: #fff; }
.md-notch { position: absolute; z-index: 20; top: 0; left: 50%; width: 145px; height: 27px; transform: translateX(-50%); border-radius: 0 0 18px 18px; background: #050607; }
.md-status { height: 42px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 6px; color: var(--md-cream); font-size: .68rem; font-weight: 800; }
.md-app-head { padding: 5px 18px 10px; text-align: center; }
.md-app-head img { width: 170px; height: 34px; object-fit: contain; }
.md-app-head h2 { margin: 5px 0 1px; color: #fff; font: 700 1.02rem/1.2 var(--md-sans); letter-spacing: 0; }
.md-app-head p { margin: 0; color: var(--md-sky); font-size: .7rem; }
.md-app-body { height: calc(100% - 152px); overflow-y: auto; scrollbar-width: none; padding: 7px 16px 80px; }
.md-app-body::-webkit-scrollbar { display: none; }
.md-view { animation: md-fade .25s ease; }
.md-view[hidden] { display: none; }
@keyframes md-fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.md-photo-stage { position: relative; height: 205px; overflow: hidden; border-radius: 18px; background: rgba(255, 255, 255, .06); }
.md-photo-stage img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.md-photo-stage::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(13, 27, 42, .9)); }
.md-stage-copy { position: absolute; z-index: 2; right: 13px; bottom: 11px; left: 13px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.md-stage-copy strong, .md-stage-copy small { display: block; }
.md-stage-copy strong { font-size: .84rem; }
.md-stage-copy small { color: #DCE7F2; font-size: .61rem; }
.md-stage-copy > span { flex: none; padding: 3px 6px; border-radius: 10px; color: #1A1205; background: var(--md-gold-light); font-size: .5rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.md-photo-actions { display: flex; gap: 7px; margin-top: 8px; }
.md-photo-actions button { flex: 1; min-height: 39px; border: 1px solid rgba(244, 241, 234, .28); border-radius: 11px; color: var(--md-cream); background: transparent; font: 700 .7rem var(--md-sans); cursor: pointer; }
.md-photo-actions button:first-child { color: var(--md-navy-2); background: var(--md-cream); }
.md-signal-label { margin: 13px 0 7px; color: var(--md-sky); font: 800 .62rem/1 var(--md-sans); letter-spacing: .06em; text-transform: uppercase; }
.md-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.md-chips button, .md-regions button { border: 1px solid rgba(244, 241, 234, .25); border-radius: 999px; color: var(--md-cream); background: transparent; font-family: var(--md-sans); cursor: pointer; }
.md-chips button { padding: 6px 10px; font-size: .7rem; }
.md-chips button.is-selected, .md-regions button.is-selected { border-color: var(--md-gold); color: #1A1205; background: var(--md-gold); font-weight: 800; }
.md-primary-action { width: 100%; min-height: 46px; margin-top: 13px; border: 0; border-radius: 14px; color: var(--md-navy-2); background: var(--md-cream); font: 800 .84rem var(--md-sans); cursor: pointer; }
.md-primary-action--ghost { border: 1px solid rgba(244, 241, 234, .3); color: var(--md-cream); background: transparent; }
.md-privacy { margin: 10px 5px 0; color: var(--md-sky); font-size: .64rem; line-height: 1.45; text-align: center; }
.md-recent-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 7px; }
.md-recent-head strong { font-size: .73rem; }
.md-recent-head span { color: var(--md-sky); font-size: .57rem; }
.md-recent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.md-recent-grid article { overflow: hidden; border: 1px solid rgba(244, 241, 234, .14); border-radius: 11px; background: rgba(255, 255, 255, .06); }
.md-recent-grid img { width: 100%; height: 75px; object-fit: cover; }
.md-recent-grid article:nth-child(2) img { object-position: right; }
.md-recent-grid div { padding: 6px 8px 8px; }
.md-recent-grid b, .md-recent-grid small { display: block; }
.md-recent-grid b { color: var(--md-gold-light); font-size: .62rem; }
.md-recent-grid small { margin-top: 2px; font-size: .58rem; line-height: 1.3; }

.md-card, .md-regions article { margin-bottom: 10px; padding: 12px 13px; border: 1px solid rgba(244, 241, 234, .14); border-radius: 13px; background: rgba(255, 255, 255, .06); }
.md-card > span { color: var(--md-gold); font-size: .57rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.md-card h3 { margin: 5px 0 4px; color: #fff; font: 700 .88rem/1.3 var(--md-sans); }
.md-card h3.md-quote { font-weight: 500; }
.md-card p { margin: 0; color: var(--md-sky); font-size: .72rem; line-height: 1.45; }
.md-regions article h3 { margin: 0 0 7px; color: #fff; font: 700 .8rem/1.2 var(--md-sans); }
.md-regions article div { display: flex; flex-wrap: wrap; gap: 5px; }
.md-regions button { padding: 5px 8px; color: var(--md-sky); font-size: .62rem; line-height: 1.25; }

.md-toast { position: absolute; z-index: 30; bottom: 86px; left: 50%; max-width: 85%; padding: 9px 15px; border-radius: 999px; color: var(--md-navy-2); background: var(--md-cream); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: .7rem; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; text-align: center; }
.md-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.md-tabbar { position: absolute; z-index: 25; right: 0; bottom: 0; left: 0; height: 70px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #D8D2C4; background: var(--md-cream); }
.md-tabbar button { border: 0; color: #8C8575; background: transparent; font: 700 .58rem/1.1 var(--md-sans); cursor: pointer; }
.md-tabbar button i { display: block; margin-bottom: 3px; font-style: normal; font-size: 1.05rem; }
.md-tabbar button.is-active { color: var(--md-navy-2); }
.md-tabbar button:focus-visible, .md-photo-actions button:focus-visible, .md-chips button:focus-visible, .md-regions button:focus-visible, .md-primary-action:focus-visible { outline: 2px solid var(--md-gold-light); outline-offset: -2px; }

.md-principles { padding: clamp(5rem, 9vw, 8rem) 0; color: var(--md-cream); background: radial-gradient(100% 100% at 80% 0%, #17345C, #0D1B2A 58%, #0A1622); }
.md-principles-wrap { width: min(1040px, calc(100% - 44px)); margin: 0 auto; }
.md-principles .md-eyebrow { color: var(--md-gold-light); }
.md-principles h2 { max-width: 12ch; margin: 1rem 0 0; color: #fff; font: 600 clamp(2.5rem, 5vw, 4.2rem)/1.02 var(--md-serif); }
.md-principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; overflow: hidden; border: 1px solid rgba(210, 161, 54, .2); border-radius: 18px; background: rgba(210, 161, 54, .2); }
.md-principles-grid article { padding: 2rem; background: rgba(13, 27, 42, .88); }
.md-principles-grid span { color: var(--md-gold); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.md-principles-grid h3 { margin: .8rem 0 .5rem; color: #fff; font: 600 1.35rem/1.2 var(--md-serif); }
.md-principles-grid p { margin: 0; color: var(--md-sky); font-size: .9rem; line-height: 1.55; }

@media (max-width: 900px) {
  .md-wrap { grid-template-columns: 1fr; }
  .md-copy { margin: 0 auto; text-align: center; }
  .md-lede, .md-guardrail { margin-right: auto; margin-left: auto; }
  .md-steps, .md-actions { justify-content: center; }
  .md-guardrail { border-left: 0; border-top: 3px solid var(--md-gold); }
}
@media (max-width: 720px) {
  .md-principles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .md-wrap, .md-principles-wrap { width: min(100% - 24px, 1160px); }
  .md-phone { width: 332px; height: 690px; border-radius: 45px; }
  .md-screen { border-radius: 35px; }
  .md-actions, .md-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
