:root {
  --navy: #0b192c;
  --navy-2: #101d3a;
  --orange: #f97316;
  --amber: #f59e0b;
  --slate: #475569;
  --line: #e2e8f0;
  --muted-line: #cbd5e1;
  --soft: #f8fafc;
  --shell: 1614px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: #fff;
  color: var(--navy);
  font-family: Inter, "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  padding: 10px 14px; border-radius: 7px; background: var(--navy); color: #fff;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  height: 68px;
  border-bottom: 1px solid #e7eaf0;
  background: #fff;
  position: relative;
  z-index: 20;
}
.header-inner {
  width: calc(100% - 132px); max-width: 1540px; height: 100%;
  margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; min-width: 0; }
.brand-mark { width: 42px; height: 42px; display: block; flex: 0 0 auto; object-fit: contain; }
.brand-name { color: var(--navy); font-weight: 800; font-size: 22px; letter-spacing: -.7px; white-space: nowrap; }
.primary-nav { height: 100%; display: flex; align-items: center; gap: 42px; }
.nav-link {
  position: relative; height: 100%; display: inline-flex; align-items: center;
  border: 0; padding: 0 0 1px; background: transparent; text-decoration: none;
  color: var(--navy); font-size: 15px; font-weight: 650; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 15px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .16s ease;
}
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-button { cursor: pointer; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 9px; }
.menu-toggle span { width: 23px; height: 2px; margin: 5px 0; background: var(--navy); display: block; }

/* Buttons */
.button {
  border: 0; border-radius: 10px; display: inline-flex; justify-content: center; align-items: center;
  gap: 11px; text-decoration: none; font-weight: 700; line-height: 1;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .nav-link:focus-visible, .footer-links button:focus-visible, .footer-links a:focus-visible, .menu-toggle:focus-visible {
  outline: 3px solid rgba(249,115,22,.35); outline-offset: 3px;
}
.button svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: linear-gradient(100deg, var(--amber), var(--orange)); color: var(--navy); }
.button-primary:hover { background: #fb9a1b; box-shadow: 0 5px 14px rgba(242,139,22,.18); }
.button-outline {
  height: 40px; padding: 0 14px; background: #fff; border: 1.5px solid var(--orange);
  color: var(--navy); font-size: 13px; font-weight: 650;
}
.external-icon { width: 15px !important; height: 15px !important; stroke: var(--orange) !important; stroke-width: 1.8 !important; }

/* Hero */
.hero {
  width: calc(100% - 58px); max-width: var(--shell); height: 354px; margin: 0 auto;
  display: grid; grid-template-columns: 47.6% 52.4%; position: relative;
  background: linear-gradient(105deg, #fff 0%, #fff 47%, #f8fafc 100%);
}
.hero-copy { padding: 27px 0 0 38px; min-width: 0; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 9px; color: var(--orange); font-size: 18px; line-height: 1.15; font-weight: 800; letter-spacing: -.3px; }
h1 {
  margin: 0; color: var(--navy); font-size: clamp(48px, 3.92vw, 64px);
  line-height: .99; letter-spacing: -2.6px; font-weight: 800; white-space: nowrap;
}
h1 span { color: var(--orange); }
.hero-description { max-width: 670px; margin: 12px 0 18px; color: var(--navy); font-size: 19px; line-height: 1.38; letter-spacing: -.25px; }
.hero-download { height: 52px; min-width: 280px; padding: 0 22px; border-radius: 11px; font-size: 16px; }
.hero-download svg { width: 25px; height: 25px; }
.device-stage {
  min-width: 0;
  height: 354px;
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.device-laptop,
.device-phone {
  display: block;
  position: absolute;
  height: auto;
  object-fit: contain;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 7px 7px rgba(17,29,57,.08));
}
.device-laptop {
  width: min(82%, 705px);
  left: 0;
  top: 0;
  z-index: 1;
}
.device-phone {
  width: min(24%, 205px);
  right: 0;
  top: 14px;
  z-index: 2;
}

/* Community / video announcement */
.community {
  width: calc(100% - 58px); max-width: var(--shell); min-height: 248px; margin: 13px auto 0;
  border: 1px solid var(--muted-line); border-radius: 17px; display: grid;
  grid-template-columns: 30.3% minmax(0,1fr); background: #fff; position: relative;
}
.portrait-column { padding: 0 0 0 12px; position: relative; min-width: 0; }
.portrait-panel { width: calc(100% - 35px); height: 205px; overflow: hidden; position: relative; margin-top: 0; background: #dce0e4; }
.portrait-video-panel { isolation: isolate; overflow: hidden; background: #d8d8d8; }
.video-mirror {
  position: absolute; z-index: 0; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px);
  display: block; object-fit: cover; object-position: center; transform: scaleX(-1) scale(1.035); filter: blur(.25px); opacity: .98;
}
.portrait-video {
  position: absolute; z-index: 1; top: 0; left: 50%; transform: translateX(-50%);
  display: block; height: 100%; width: auto; max-width: 36%; object-fit: contain; background: #111; cursor: pointer;
}
.video-play-button {
  position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; padding: 0 0 0 4px; border: 2px solid rgba(255,255,255,.98);
  border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(11,25,44,.88);
  box-shadow: 0 2px 9px rgba(0,0,0,.24); cursor: pointer;
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}
.video-play-button:hover { background: rgba(11,25,44,.98); transform: translate(-50%, -50%) scale(1.06); }
.video-play-button:focus-visible { outline: 3px solid rgba(249,115,22,.65); outline-offset: 4px; }
.play-triangle { display: block; width: 0; height: 0; margin-left: 3px; border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 18px solid #fff; }
.portrait-video-panel.is-playing .video-play-button { opacity: 0; pointer-events: none; }
.portrait-video-panel.is-paused .video-play-button { opacity: 1; pointer-events: auto; }
.portrait-caption {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); min-width: 205px;
  padding: 0 10px 1px; background: #fff; color: var(--navy); display: flex; flex-direction: column;
  align-items: center; text-align: center; white-space: nowrap;
}
.portrait-caption strong { font-family: Caveat, "Segoe Script", cursive; font-size: 34px; line-height: 1.02; font-weight: 600; }
.portrait-caption span { color: var(--slate); font-size: 11px; line-height: 1.35; }
.community-copy { min-width: 0; margin: 18px 0; border-left: 1px solid var(--slate); padding: 0 36px; align-self: stretch; }
.community-copy h2 { margin: -2px 0 10px; font-size: 22px; line-height: 1.25; letter-spacing: -.45px; font-weight: 750; color: var(--navy); }
.community-copy h2 span { color: var(--orange); }
.community-copy p { margin: 0 0 10px; color: var(--navy); font-size: 15px; line-height: 1.48; letter-spacing: -.1px; }
.community-copy .gratitude { margin-bottom: 0; }

/* Downloads */
.download-section { width: calc(100% - 58px); max-width: var(--shell); margin: 12px auto 18px; }
.section-heading { display: flex; align-items: center; justify-content: center; gap: 21px; height: 37px; margin-bottom: 5px; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: 19px; line-height: 1; font-weight: 750; letter-spacing: -.3px; white-space: nowrap; }
.heading-rule { display: block; height: 2px; flex: 1 1 auto; background: var(--orange); min-width: 24px; }
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.platform-card {
  height: 128px; padding: 8px 16px 10px; border: 1px solid var(--line); border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; background: #fff;
}
.platform-icon { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; }
.platform-icon svg { width: 100%; height: 100%; display: block; }
.windows-icon { color: #1599df; }.windows-icon svg { fill: currentColor; }
.android-icon { color: #79bd32; }.android-icon svg { fill: currentColor; }
.apple-icon { color: #050505; }.apple-icon svg { fill: currentColor; }
.platform-card h3 { margin: 0 0 9px; color: var(--navy); font-size: 16px; line-height: 1.1; font-weight: 750; }
.platform-button, .status-button { width: 100%; max-width: 290px; min-height: 39px; border-radius: 999px; font-size: 15px; }
.platform-button svg { width: 22px; height: 22px; }
.status-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--line); color: var(--navy); font-weight: 650; text-align: center;
}
.status-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-main {
  width: calc(100% - 132px); max-width: 1540px; min-height: 62px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.footer-brand { gap: 12px; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-brand .brand-name { font-size: 16px; letter-spacing: -.4px; }
.footer-attribution { margin: 0; color: var(--navy); font-size: 12px; text-align: center; }
.footer-links { display: flex; justify-content: flex-end; align-items: center; gap: 13px; color: var(--navy); font-size: 12px; white-space: nowrap; }
.footer-links button, .footer-links a { border: 0; padding: 2px 0; color: inherit; background: transparent; font: inherit; text-decoration: none; }
.footer-links button { cursor: pointer; }
.footer-links button:hover, .footer-links a:hover { color: var(--orange); }
.disclosure { margin: -4px 0 8px; text-align: center; color: #64748b; font-size: 10px; }

/* Dialog / toast */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: 22px; transform: translate(-50%, 12px);
  max-width: min(92vw, 520px); padding: 11px 16px; border-radius: 9px; background: var(--navy); color: #fff;
  box-shadow: 0 8px 24px rgba(11,25,44,.18); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.info-dialog { width: min(92vw, 430px); border: 1px solid var(--line); border-radius: 15px; padding: 0; color: var(--navy); box-shadow: 0 20px 60px rgba(11,25,44,.24); }
.info-dialog::backdrop { background: rgba(11,25,44,.35); }
.dialog-form { padding: 25px; position: relative; }
.dialog-form h2 { margin: 0 32px 10px 0; font-size: 20px; }
.dialog-form p { margin: 0 0 19px; color: var(--slate); font-size: 14px; line-height: 1.55; }
.dialog-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: #64748b; font-size: 27px; line-height: 1; }
.dialog-ok { min-width: 90px; min-height: 39px; padding: 0 18px; }
.analytics-notice {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  width: min(540px, calc(100vw - 36px));
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(11,25,44,.2);
}
.analytics-notice[hidden] { display: none; }
.analytics-notice h2 { margin: 0 0 7px; color: var(--navy); font-size: 16px; }
.analytics-notice p { margin: 0 0 13px; color: var(--slate); font-size: 12px; line-height: 1.5; }
.notice-actions { display: flex; justify-content: flex-end; gap: 9px; }
.notice-actions button {
  min-height: 37px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.notice-actions .notice-dismiss { border-color: var(--orange); background: var(--orange); color: #fff; }

@media (max-width: 1450px) and (min-width: 981px) {
  h1 { font-size: clamp(48px, 4.15vw, 60px); }
  .hero { grid-template-columns: 48% 52%; }
  .device-laptop { width: min(82%, 660px); }
  .device-phone { width: min(24%, 188px); right: 0; top: 15px; }
  .community-copy { padding-right: 25px; padding-left: 30px; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .header-inner { width: calc(100% - 52px); }
  .primary-nav { gap: 23px; }
  .hero { height: auto; min-height: 0; grid-template-columns: 1fr; padding: 27px 24px 13px; }
  .hero-copy { padding: 0; }
  h1 { white-space: normal; font-size: clamp(48px, 6.2vw, 64px); }
  .device-stage { width: min(100%, 820px); height: 350px; margin: 12px auto 0; }
  .device-laptop { width: min(80%, 660px); left: 0; top: 0; }
  .device-phone { width: min(22%, 180px); right: 0; top: 24px; }
  .community { grid-template-columns: 36% minmax(0,1fr); }
  .portrait-panel { width: calc(100% - 18px); }
  .community-copy { padding: 0 20px; }
  .community-copy h2 { font-size: 20px; }
  .community-copy p { font-size: 14px; }
  .platform-grid { gap: 12px; }
  .footer-main { width: calc(100% - 52px); }
}

@media (max-width: 820px) {
  .community { display: block; min-height: 0; padding: 11px; }
  .portrait-column { padding: 0; }
  .portrait-panel { width: 100%; height: auto; aspect-ratio: 2.12 / 1; border-radius: 7px; }
  .portrait-caption { position: relative; left: auto; bottom: auto; transform: none; margin: 1px auto 10px; width: max-content; min-width: 0; }
  .community-copy { border-left: 0; border-top: 1px solid var(--muted-line); margin: 0; padding: 14px 3px 2px; }
  .community-copy h2 { margin-top: 0; }
}

@media (max-width: 760px) {
  .site-header { height: 62px; }
  .header-inner { width: calc(100% - 34px); }
  .brand { gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 18px; letter-spacing: -.55px; }
  .menu-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; top: 61px; left: 0; right: 0; height: auto; padding: 12px 18px 17px;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 18px rgba(11,25,44,.07);
  }
  .primary-nav.open { display: flex; }
  .nav-link { height: 42px; justify-content: flex-start; }
  .nav-link::after { bottom: 5px; right: auto; width: 46px; }
  .open-web-app { margin-top: 8px; width: max-content; }
  .hero { height: auto; min-height: 0; width: calc(100% - 36px); display: block; padding: 27px 0 12px; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 14px; margin-bottom: 9px; }
  h1 { white-space: normal; font-size: clamp(40px, 7.4vw, 56px); line-height: 1.02; letter-spacing: -1.9px; }
  .hero-description { margin: 13px 0 16px; font-size: 16px; line-height: 1.42; }
  .desktop-break { display: none; }
  .hero-download { width: min(100%, 310px); min-width: 0; height: 49px; font-size: 15px; }
  .device-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(250px, 78vw, 350px);
    width: 100%;
    margin: 12px auto 0;
  }
  .device-laptop { display: none; }
  .device-phone {
    position: relative;
    top: auto;
    right: auto;
    width: min(43vw, 190px);
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 7px 10px rgba(17,29,57,.12));
  }
  .community, .download-section { width: calc(100% - 28px); }
  .community { margin-top: 5px; border-radius: 13px; }
  .video-play-button { width: 49px; height: 49px; }
  .play-triangle { border-top-width: 10px; border-bottom-width: 10px; border-left-width: 15px; }
  .community-copy h2 { font-size: 20px; margin-bottom: 8px; }
  .community-copy p { font-size: 14px; line-height: 1.48; margin-bottom: 9px; }
  .download-section { margin-top: 11px; }
  .section-heading { height: auto; gap: 9px; margin-bottom: 9px; }
  .section-heading h2 { font-size: 17px; white-space: normal; text-align: center; line-height: 1.15; }
  .heading-rule { min-width: 10px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .platform-card { height: 126px; padding: 7px 8px 9px; border-radius: 11px; }
  .platform-icon { width: 32px; height: 32px; }
  .platform-card h3 { font-size: 15px; margin: 1px 0 8px; }
  .platform-button, .status-button { width: 100%; min-height: 36px; gap: 6px; font-size: 13px; }
  .platform-button svg { width: 19px; height: 19px; }
  .status-button svg { width: 18px; height: 18px; }
  .site-footer { margin-top: 14px; }
  .footer-main { width: calc(100% - 34px); min-height: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 12px 0; }
  .footer-brand .brand-mark { width: 30px; height: 30px; }
  .footer-brand .brand-name { font-size: 15px; }
  .footer-attribution { display: none; }
  .footer-links { gap: 8px; font-size: 10px; }
  .disclosure { max-width: calc(100% - 30px); margin: 0 auto 8px; font-size: 9px; }
}

@media (max-width: 380px) {
  .header-inner { width: calc(100% - 24px); }
  .brand-name { font-size: 16px; letter-spacing: -.45px; }
  .hero, .community, .download-section { width: calc(100% - 22px); }
  .hero { padding-top: 22px; }
  h1 { font-size: clamp(36px, 9vw, 42px); letter-spacing: -1.5px; }
  .hero-description { font-size: 14px; }
  .device-stage { height: 245px; }
  .device-phone { width: min(48vw, 165px); }
  .platform-grid { gap: 7px; }
  .platform-card { padding-left: 5px; padding-right: 5px; }
  .platform-button, .status-button { font-size: 11px; }
  .footer-links { width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
