:root {
  --forest-900: #0b2e21;
  --forest-800: #123f2d;
  --forest-700: #18513b;
  --forest-500: #34785b;
  --lime-400: #b9e963;
  --lime-300: #d8f3a6;
  --cream-100: #f5f1e7;
  --cream-50: #fbf9f3;
  --ink: #171816;
  --white: #ffffff;
  --line: rgba(11, 46, 33, 0.16);
  --shadow: 0 34px 80px rgba(3, 22, 15, 0.24);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--forest-900); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(185, 233, 99, 0.15), transparent 31rem),
    linear-gradient(145deg, #08281d 0%, #123f2d 58%, #0a2d21 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.demo-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(22px, 4vw, 62px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
.brand span { display: grid; gap: 2px; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.22rem; letter-spacing: -0.02em; }
.brand small { color: rgba(255, 255, 255, 0.58); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

.topbar-actions { display: flex; align-items: center; gap: 18px; }
.concept-chip {
  padding: 8px 11px;
  color: var(--lime-300);
  border: 1px solid rgba(185, 233, 99, 0.28);
  border-radius: 999px;
  background: rgba(185, 233, 99, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.text-button { padding: 8px 0; color: rgba(255, 255, 255, 0.72); border: 0; background: transparent; font-weight: 750; }
.text-button:hover, .text-button:focus-visible { color: var(--white); }

.experience { min-height: 0; display: grid; grid-template-columns: minmax(430px, 0.86fr) minmax(540px, 1.14fr); }

.story-panel {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 86px) clamp(28px, 5vw, 76px);
}

.story-meta { display: flex; gap: 16px; margin-bottom: 34px; color: rgba(255, 255, 255, 0.48); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.story-meta span:first-child { color: var(--lime-400); }
.eyebrow { margin: 0 0 14px; color: var(--lime-400); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.story-copy h1 { max-width: 680px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.75rem, 5vw, 5.4rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.048em; }
.lede { max-width: 610px; margin: 28px 0 0; color: rgba(255, 255, 255, 0.74); font-size: 1.08rem; line-height: 1.65; }

.story-value { max-width: 570px; margin-top: 34px; padding: 18px 20px; border-left: 2px solid var(--lime-400); background: rgba(255, 255, 255, 0.055); }
.story-value span { color: var(--lime-300); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.story-value p { margin: 7px 0 0; font-size: 1rem; line-height: 1.5; }

.story-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.primary-button, .secondary-button, .icon-button {
  min-height: 50px;
  padding: 0 21px;
  border-radius: 10px;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.primary-button { display: inline-flex; align-items: center; gap: 22px; color: var(--forest-900); border: 1px solid var(--lime-400); background: var(--lime-400); }
.secondary-button, .icon-button { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.065); }
.icon-button { width: 50px; padding: 0; }
.primary-button:hover, .secondary-button:hover, .icon-button:hover { transform: translateY(-2px); }
.secondary-button:hover, .icon-button:hover { border-color: rgba(255, 255, 255, 0.5); }
.is-hidden { display: none !important; }
.scope-note { max-width: 600px; margin: 28px 0 0; color: rgba(255, 255, 255, 0.42); font-size: 0.75rem; line-height: 1.5; }

.product-stage {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 70px 38px 42px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 42px 42px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}
.stage-ring { position: absolute; border: 1px solid rgba(185, 233, 99, 0.22); border-radius: 50%; }
.stage-ring-one { width: 620px; height: 620px; }
.stage-ring-two { width: 790px; height: 790px; }
.stage-header { position: absolute; top: 25px; left: 32px; z-index: 4; display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, 0.72); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.stage-step { display: grid; place-items: center; width: 34px; height: 34px; color: var(--forest-900); border-radius: 50%; background: var(--lime-400); }
.visual-root { position: relative; z-index: 2; width: 100%; height: 100%; min-height: 590px; display: grid; place-items: center; }

.phone-frame {
  position: relative;
  width: min(355px, 48vw);
  aspect-ratio: 0.493;
  overflow: hidden;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 58px;
  background: #050505;
  box-shadow: var(--shadow);
  animation: scene-in 420ms ease both;
}
.phone-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; border-radius: 48px; background: var(--cream-100); }
.visual-callout { position: absolute; z-index: 5; right: max(12px, calc(50% - 290px)); bottom: 75px; width: 235px; padding: 15px 17px; color: var(--forest-900); border: 1px solid rgba(11, 46, 33, 0.2); border-radius: 15px; background: rgba(251, 249, 243, 0.96); box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24); animation: callout-in 520ms 120ms ease both; }
.visual-callout b, .visual-callout span { display: block; }
.visual-callout b { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.visual-callout span { margin-top: 4px; color: #597064; font-size: 0.75rem; line-height: 1.45; }

.device-cluster { position: relative; width: min(820px, 92%); min-height: 560px; animation: scene-in 420ms ease both; }
.tablet-frame { position: absolute; left: 0; top: 70px; width: 74%; overflow: hidden; padding: 10px; border: 2px solid rgba(255, 255, 255, 0.65); border-radius: 35px; background: #050505; box-shadow: var(--shadow); }
.tablet-frame img { display: block; width: 100%; border-radius: 25px; }
.watch-frame { position: absolute; right: 3%; bottom: 22px; width: 185px; padding: 9px; border: 2px solid rgba(255, 255, 255, 0.65); border-radius: 42px; background: #050505; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35); }
.watch-frame img { display: block; width: 100%; border-radius: 34px; }
.device-note { position: absolute; right: 0; top: 22px; width: 255px; padding: 17px 19px; color: var(--forest-900); border-radius: 14px; background: var(--lime-400); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25); }
.device-note strong, .device-note span { display: block; }
.device-note strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; }
.device-note span { margin-top: 5px; font-size: 0.76rem; line-height: 1.4; }

.close-screen { width: min(760px, 92%); padding: 54px; color: var(--forest-900); border-radius: 32px; background: var(--cream-50); box-shadow: var(--shadow); animation: scene-in 420ms ease both; }
.close-kicker { color: var(--forest-500); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; }
.close-screen h2 { max-width: 620px; margin: 16px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 4.8vw, 4.8rem); font-weight: 500; line-height: 0.96; letter-spacing: -0.045em; }
.close-screen > p { max-width: 590px; color: #53675d; font-size: 1rem; line-height: 1.6; }
.close-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin-top: 26px; }
.close-facts div { min-height: 106px; display: grid; align-content: center; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.close-facts b { font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; }
.close-facts span { color: #63766d; font-size: 0.72rem; font-weight: 750; }

.progress-footer { padding: 0 clamp(22px, 4vw, 62px) 17px; }
.progress-track { height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.14); }
.progress-track span { display: block; height: 100%; width: 11.1%; background: var(--lime-400); transition: width 300ms ease; }
.footer-copy { display: flex; justify-content: space-between; gap: 18px; padding-top: 13px; color: rgba(255, 255, 255, 0.42); font-size: 0.7rem; }

dialog { width: min(620px, calc(100% - 32px)); padding: 34px; color: var(--forest-900); border: 0; border-radius: 22px; background: var(--cream-50); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(2, 17, 12, 0.72); backdrop-filter: blur(8px); }
dialog h2 { margin: 5px 45px 15px 0; font-family: Georgia, "Times New Roman", serif; font-size: 2.1rem; line-height: 1.05; }
dialog p { color: #52675c; line-height: 1.6; }
.service-context { display: grid; grid-template-columns: 1fr auto; gap: 18px; margin-top: 26px; padding: 20px; align-items: center; background: #e5eadf; }
.service-context strong, .service-context span { display: block; }
.service-context strong { margin-bottom: 5px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.service-context span { color: #50645a; font-size: 0.82rem; line-height: 1.45; }
.service-context a { display: inline-flex; min-height: 44px; padding: 0 16px; align-items: center; border-radius: 8px; background: var(--forest-900); color: var(--cream-50); font-size: 0.8rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.dialog-close { position: absolute; top: 17px; right: 18px; width: 38px; height: 38px; color: var(--forest-900); border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 1.5rem; }
.screen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 22px; }
.screen-grid button { min-height: 65px; display: flex; align-items: center; gap: 13px; padding: 12px; color: var(--forest-900); text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.screen-grid b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime-300); font-size: 0.72rem; }
.screen-grid span { font-weight: 800; }

.toast { position: fixed; z-index: 30; right: 24px; bottom: 25px; max-width: 360px; padding: 13px 16px; color: var(--forest-900); border-radius: 10px; background: var(--lime-400); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); font-size: 0.78rem; font-weight: 850; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes scene-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes callout-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1040px) {
  .experience { grid-template-columns: 1fr; }
  .story-panel { min-height: 670px; }
  .product-stage { min-height: 780px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.11); }
}

@media (max-width: 720px) {
  .topbar { min-height: 74px; padding: 14px 18px; }
  .brand img { width: 40px; height: 40px; }
  .brand small, .concept-chip, .footer-copy span:last-child { display: none; }
  .topbar-actions { gap: 12px; }
  .story-panel { min-height: 620px; padding: 42px 22px; }
  .story-meta { margin-bottom: 25px; }
  .story-copy h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .lede { margin-top: 21px; font-size: 1rem; }
  .story-value { margin-top: 26px; }
  .product-stage { min-height: 690px; padding: 70px 12px 30px; }
  .phone-frame { width: min(340px, 84vw); }
  .visual-callout { right: 12px; bottom: 48px; width: min(225px, 62vw); }
  .device-cluster { min-height: 500px; }
  .tablet-frame { top: 85px; width: 92%; }
  .watch-frame { right: 1%; bottom: 30px; width: 145px; }
  .device-note { left: 0; right: auto; top: 12px; width: 235px; }
  .close-screen { padding: 34px 24px; }
  .close-facts { grid-template-columns: 1fr; }
  .close-facts div { min-height: 76px; }
  .service-context { grid-template-columns: 1fr; }
  .service-context a { width: fit-content; }
  .screen-grid { grid-template-columns: 1fr; }
  .footer-copy { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
