/* TOBI Official Visual System — uses user-provided official product images only. */
:root {
  --tobi-ink: #061326;
  --tobi-ink-2: #0c213b;
  --tobi-mist: #eaf1f8;
  --tobi-line: rgba(145, 181, 218, .22);
  --tobi-glow: rgba(255, 105, 59, .34);
}

body.tobi-official-visuals {
  background: #f5f8fc;
}

body.tobi-official-visuals .tobi-site-header,
body.tobi-official-visuals [data-tobi-site-shell] {
  box-shadow: 0 8px 32px rgba(4, 18, 38, .11);
}

.tobi-official-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(183, 217, 246, .19);
  border-radius: 24px;
  background:
    radial-gradient(circle at 64% 30%, var(--tobi-glow), transparent 23%),
    radial-gradient(circle at 18% 82%, rgba(39, 124, 216, .35), transparent 38%),
    linear-gradient(135deg, #061326 0%, #0b2744 55%, #071423 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 28px 65px rgba(5,21,42,.18);
}

.tobi-official-stage::before,
.tobi-official-stage::after {
  position: absolute;
  z-index: -1;
  content: '';
  pointer-events: none;
}
.tobi-official-stage::before {
  inset: 0;
  opacity: .38;
  background-image: linear-gradient(rgba(164, 211, 250, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(164, 211, 250, .10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.tobi-official-stage::after {
  width: 72%;
  height: 32%;
  bottom: -17%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  filter: blur(22px);
}

.tobi-official-stage__image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(90%, 680px);
  max-height: 88%;
  object-fit: contain;
  transform: translateY(-1%) rotate(-1deg);
  filter: drop-shadow(0 22px 18px rgba(0,0,0,.44));
}
.tobi-official-stage--e6 .tobi-official-stage__image { width: min(98%, 760px); mix-blend-mode: normal; }
.tobi-official-stage--e2 .tobi-official-stage__image { width: min(95%, 750px); }
.tobi-official-stage--e8 .tobi-official-stage__image { width: min(82%, 530px); }
.tobi-official-stage--wrist .tobi-official-stage__image { width: min(88%, 650px); border-radius: 14px; }

.tobi-official-stage__eyebrow,
.tobi-official-stage__caption {
  position: absolute;
  z-index: 2;
  margin: 0;
  color: rgba(235,246,255,.86);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tobi-official-stage__eyebrow {
  top: 18px;
  left: 18px;
  border: 1px solid rgba(211,235,255,.27);
  border-radius: 99px;
  padding: 7px 10px;
  background: rgba(4,18,37,.43);
  backdrop-filter: blur(8px);
}
.tobi-official-stage__caption { right: 18px; bottom: 15px; color: rgba(220,234,246,.58); letter-spacing: .08em; }

.tobi-home-hero-visual {
  min-height: clamp(330px, 40vw, 560px);
  align-self: stretch;
}
.tobi-home-hero-visual .tobi-official-stage__image { width: min(102%, 800px); }

body.tobi-official-visuals .tobi-evidence-panel {
  min-height: 260px;
  justify-content: center;
  border-radius: 24px;
}

body.tobi-official-visuals .product-card,
body.tobi-official-visuals .e6-camera-card,
body.tobi-official-visuals .u-card,
body.tobi-official-visuals .matrix-modal__dialog {
  border-color: rgba(99, 143, 188, .18);
  box-shadow: 0 18px 42px rgba(10, 35, 63, .10);
}
body.tobi-official-visuals .product-card {
  overflow: hidden;
  border-radius: 22px;
}
body.tobi-official-visuals .product-card .tobi-official-stage { min-height: 260px; border-radius: 0; }
body.tobi-official-visuals .product-card:hover .tobi-official-stage__image { transform: translateY(-3%) rotate(-1.6deg) scale(1.025); transition: transform .35s ease; }

body.tobi-official-visuals [data-dom-id="hero-section"],
body.tobi-official-visuals .e6-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 98, 52, .18), transparent 22%),
    radial-gradient(circle at 20% 82%, rgba(54, 136, 215, .24), transparent 42%),
    linear-gradient(135deg, #061326, #0b2949 60%, #071526) !important;
}
body.tobi-official-visuals [data-dom-id="hero-section"]::after,
body.tobi-official-visuals .e6-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  background-image: linear-gradient(rgba(193,226,251,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(193,226,251,.15) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000 23%, #000 90%);
}
body.tobi-official-visuals [data-dom-id="hero-section"] > *,
body.tobi-official-visuals .e6-hero > * { position: relative; z-index: 1; }

.tobi-product-hero-visual {
  min-height: clamp(340px, 41vw, 580px);
  width: 100%;
  margin: 0 auto;
}
.tobi-product-hero-visual .tobi-official-stage__image { max-height: 92%; }

.tobi-official-scene {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 380px;
  background: #0c213b;
  box-shadow: 0 26px 56px rgba(7, 27, 48, .17);
}
.tobi-official-scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tobi-official-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,17,33,.88), rgba(4,17,33,.28) 62%, transparent); }
.tobi-official-scene__copy { position: absolute; z-index: 1; left: clamp(22px, 5vw, 64px); bottom: clamp(22px, 5vw, 58px); max-width: 36rem; color: white; }
.tobi-official-scene__copy p { margin: 0 0 8px; color: #ff9a75; font-size: 12px; font-weight: 700; letter-spacing: .13em; }
.tobi-official-scene__copy h2 { margin: 0; font-size: clamp(26px, 3vw, 46px); line-height: 1.16; }

@media (max-width: 1024px) {
  .tobi-home-hero-visual { min-height: 390px; margin-top: 8px; }
  .tobi-product-hero-visual { min-height: 390px; }
}
@media (max-width: 640px) {
  .tobi-official-stage { min-height: 250px; border-radius: 18px; }
  .tobi-home-hero-visual, .tobi-product-hero-visual { min-height: 300px; }
  .tobi-official-stage__image { width: min(96%, 620px); }
  .tobi-official-stage__caption { font-size: 9px; }
  .tobi-official-scene { min-height: 320px; border-radius: 20px; }
  .tobi-official-scene::after { background: linear-gradient(0deg, rgba(4,17,33,.88), rgba(4,17,33,.14) 85%); }
}

/* Homepage E6 official hardware centerpiece. */
#hero .tobi-home-hero-device {
  position: absolute;
  z-index: 0;
  top: clamp(92px, 9vw, 130px);
  right: clamp(-42px, 1vw, 32px);
  width: min(52vw, 710px);
  height: min(38vw, 510px);
  margin: 0;
}
#hero .tobi-home-hero-device .tobi-official-stage__image {
  width: min(112%, 820px);
  max-height: 102%;
  transform: translate(3%, 0) rotate(-4deg);
}
#hero .max-w-3xl { position: relative; z-index: 2; }
#hero .hero-grid-bg { opacity: .5; }
@media (max-width: 1100px) {
  #hero .tobi-home-hero-device { opacity: .42; right: -120px; top: 128px; width: 62vw; }
  #hero .max-w-3xl { max-width: 42rem; }
}
@media (max-width: 760px) {
  #hero { padding-bottom: 255px; }
  #hero .tobi-home-hero-device { top: auto; bottom: 42px; right: 50%; width: min(94vw, 550px); height: 255px; transform: translateX(50%); opacity: .82; }
  #hero .tobi-home-hero-device .tobi-official-stage__image { width: 106%; transform: translate(2%, 2%) rotate(-2deg); }
  #hero .max-w-3xl { max-width: none; }
  #hero [data-dom-id="hero-pillars"] { position: relative; z-index: 3; }
}

body.tobi-official-visuals .product-card .tobi-official-stage,
body.tobi-official-visuals [data-dom-id="device-e6"] .tobi-official-stage,
body.tobi-official-visuals [data-dom-id="device-e2"] .tobi-official-stage,
body.tobi-official-visuals [data-dom-id="device-e8"] .tobi-official-stage {
  background:
    radial-gradient(circle at 64% 30%, var(--tobi-glow), transparent 23%),
    radial-gradient(circle at 18% 82%, rgba(39, 124, 216, .35), transparent 38%),
    linear-gradient(135deg, #061326 0%, #0b2744 55%, #071423 100%) !important;
}
body.tobi-official-visuals .product-image-glow.tobi-official-stage,
body.tobi-official-visuals .e6-hero__visual.tobi-official-stage {
  background:
    radial-gradient(circle at 64% 30%, rgba(255,105,59,.32), transparent 25%),
    radial-gradient(circle at 18% 82%, rgba(39,124,216,.35), transparent 42%),
    linear-gradient(135deg, #061326, #0b2744 55%, #071423) !important;
}

/* Some supplied official product photographs are intentionally preserved on white reference backgrounds. Frame them as verified product sheets instead of masking or altering the product. */
.tobi-official-stage--e6 .tobi-official-stage__image,
.tobi-official-stage--wrist .tobi-official-stage__image {
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #e9eff5);
  padding: 5px;
  box-shadow: 0 24px 52px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.82);
}

/* Common visual treatment for the remaining public pages. */
body.tobi-official-visuals .u-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(255,100,55,.20), transparent 23%),
    radial-gradient(circle at 15% 82%, rgba(46,133,215,.28), transparent 38%),
    linear-gradient(135deg, #061326, #0b2949 58%, #071526) !important;
}
body.tobi-official-visuals .u-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(189,224,249,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(189,224,249,.16) 1px, transparent 1px);
  background-size: 42px 42px;
}
body.tobi-official-visuals .u-hero > * { position: relative; z-index: 1; }
body.tobi-official-visuals .u-section { background: linear-gradient(180deg, #f6f9fc, #edf4fa); }
body.tobi-official-visuals .u-section:nth-of-type(even) { background: #fff; }
body.tobi-official-visuals .u-notice { border-color: rgba(255,105,59,.25); background: rgba(255,105,59,.07); }
body.tobi-official-visuals .article-card,
body.tobi-official-visuals .solution-card,
body.tobi-official-visuals .dataset-card { border-radius: 20px; box-shadow: 0 14px 34px rgba(8,32,57,.08); }
body.tobi-official-visuals .article-card:hover,
body.tobi-official-visuals .solution-card:hover,
body.tobi-official-visuals .dataset-card:hover { transform: translateY(-4px); box-shadow: 0 24px 52px rgba(8,32,57,.14); }

/* Keep the hardware hero clear of the text-safe zone on wide screens. */
@media (min-width: 1101px) {
  #hero .max-w-3xl { max-width: 36rem; }
  #hero .tobi-home-hero-device {
    right: clamp(-118px, -6vw, -48px);
    width: min(47vw, 650px);
    height: min(34vw, 480px);
  }
}

/* Product-detail templates carry image rules with strong selectors; retain supplied white reference backgrounds above those legacy rules. */
body.tobi-official-visuals .e6-hero__visual.tobi-official-stage--wrist > img.tobi-official-stage__image,
body.tobi-official-visuals .e6-hero__visual.tobi-official-stage--e6 > img.tobi-official-stage__image {
  display: block !important;
  position: relative !important;
  z-index: 2 !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fff !important;
  border: 5px solid #fff !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
  box-shadow: 0 24px 52px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.9) !important;
}

/* Compact real-device visual for small screens: keep the product near the CTA rather than after the value cards. */
.tobi-home-mobile-device { display: none; }
@media (max-width: 760px) {
  #hero { padding-bottom: 64px; }
  #hero .tobi-home-hero-device { display: none; }
  #hero .tobi-home-mobile-device {
    display: grid;
    min-height: 235px;
    margin: 26px 0 30px;
    width: 100%;
  }
  #hero .tobi-home-mobile-device .tobi-official-stage__image {
    width: min(94%, 480px);
    max-height: 84%;
    transform: translateY(0) rotate(-1.5deg);
  }
}

/* E6 integrity rule: do not tilt, warp or creatively transform supplied device materials. */
.tobi-official-stage--e6 .tobi-official-stage__image,
[data-dom-id="device-e6"] .tobi-official-stage__image {
  transform: none !important;
  object-fit: contain !important;
  object-position: center !important;
}
