:root {
  color-scheme: light;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f8fc;
  --surface-elevated: rgba(255, 255, 255, 0.94);
  --ink: #111827;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --brand: #4f46e5;
  --brand-light: #7c3aed;
  --brand-soft: #eef2ff;
  --focus: rgba(79, 70, 229, 0.18);
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 26px 70px rgba(16, 24, 40, 0.11);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  isolation: isolate;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 22%, rgba(99, 102, 241, 0.045), transparent 25rem),
    var(--page);
  font-family: var(--site-font, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.6;
  transition: color 0.25s ease, background-color 0.25s ease;
}

button,
input { font: inherit; }

a { color: inherit; text-decoration: none; }

button,
a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 9px 24px rgba(79, 70, 229, 0.25);
  overflow: hidden;
  animation: brand-mark-float 4.8s ease-in-out infinite;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -75%;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: rotate(18deg);
  transition: left .65s ease;
}

.brand:hover .brand-mark::after { left: 140%; }
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-mark svg { width: 31px; height: 31px; overflow: visible; }
.brand-orbit { fill: none; stroke: rgba(255,255,255,.32); stroke-width: 1.3; stroke-dasharray: 5 5; transform-origin: center; animation: brand-orbit-spin 9s linear infinite; }
.brand-bolt { fill: #fff; filter: drop-shadow(0 0 5px rgba(255,255,255,.65)); animation: brand-bolt-pulse 2.6s ease-in-out infinite; transform-origin: center; }
.brand-spark { fill: #fff; opacity: .85; transform-origin: center; animation: brand-spark 2.2s ease-in-out infinite; }
.brand-spark-b { animation-delay: -1.1s; }

@keyframes brand-mark-float { 50% { transform: translateY(-2px); box-shadow: 0 13px 29px rgba(79,70,229,.34); } }
@keyframes brand-orbit-spin { to { transform: rotate(360deg); } }
@keyframes brand-bolt-pulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 8px rgba(255,255,255,.9)); } }
@keyframes brand-spark { 50% { opacity: .25; transform: scale(.55); } }

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .brand-mark * { animation: none !important; }
  .brand-mark::after { display: none; }
}

.brand strong {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #475467;
  font-size: 0.9rem;
  font-weight: 620;
}

.site-header nav > a:not(.login) {
  transition: color 0.18s ease;
}

.site-header nav > a:not(.login):hover { color: var(--brand); }

.site-header .login {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.03);
  font-weight: 700;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-header .login:hover {
  border-color: #c7d2fe;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.shop-theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #344054;
  background: var(--surface-soft);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.shop-theme-toggle:hover {
  color: var(--brand);
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

.shop-theme-toggle svg,
.search-card svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-theme-toggle:focus-visible,
.search-card input:focus-visible,
.search-card button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
  min-height: 590px;
  padding: 72px 0 68px;
}

.intro-copy { max-width: 650px; }

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 620px;
  margin: 14px 0 22px;
  font-size: clamp(3.2rem, 4.7vw, 4.75rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.intro p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.intro p strong {
  color: #344054;
  font-weight: 680;
}

.search-card {
  position: relative;
  width: min(100%, 480px);
  justify-self: end;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 252, 0.96));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.11), transparent 70%);
  transform: translate(35%, -40%);
  pointer-events: none;
}

.search-card-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
}

.search-card-heading > span:last-child {
  display: grid;
  gap: 2px;
}

.search-card-heading strong {
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.search-card-heading small {
  color: var(--muted);
  font-size: 0.8rem;
}

.search-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.22);
}

.search-card label {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 680;
}

.search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.search-control input,
.search-control button {
  min-height: 54px;
  border-radius: 14px;
}

.search-control input {
  min-width: 0;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-control input::placeholder { color: #98a2b3; }

.search-control input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--focus);
}

.search-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #312e81, #4f46e5);
  box-shadow: 0 10px 22px rgba(49, 46, 129, 0.19);
  font-weight: 720;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.search-control button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(49, 46, 129, 0.25);
}

.search-control button svg { width: 17px; height: 17px; }

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.76rem;
}

.search-suggestions > span { margin-right: 1px; }

.search-suggestions a {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475467;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 620;
}

.search-suggestions a:hover {
  color: var(--brand);
  border-color: #c7d2fe;
}

.search-note {
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.landing-announcement {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr);
  gap: 28px;
  margin: 4px 0 48px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
}

.landing-announcement-heading { display: flex; align-items: flex-start; gap: 14px; }
.landing-announcement-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
}
.landing-announcement-heading svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.landing-announcement-heading small { color: var(--brand); font-size: .67rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.landing-announcement-heading h2 { margin: 4px 0 0; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.025em; }
.landing-announcement-body { min-width: 0; color: var(--muted); font-size: .91rem; }
.landing-announcement-body > :first-child { margin-top: 0; }
.landing-announcement-body > :last-child { margin-bottom: 0; }
.landing-announcement-body h2,
.landing-announcement-body h3,
.landing-announcement-body h4 { color: var(--ink); }
.landing-announcement-body a { color: var(--brand); font-weight: 680; text-decoration: underline; text-underline-offset: 3px; }
.landing-announcement-body blockquote { margin-inline: 0; padding: 10px 14px; border-left: 3px solid var(--brand); background: var(--surface-soft); }

.catalog { padding: 22px 0 64px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.section-heading > a {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-grid article {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-grid article:hover {
  border-color: #c7d2fe;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.09);
  transform: translateY(-3px);
}

.product-grid article.featured {
  border-color: #c4b5fd;
  background: linear-gradient(155deg, #f5f3ff, #fff 70%);
}

.product-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
  font-size: 0.9rem;
  font-weight: 780;
}

.product-grid small {
  color: var(--brand);
  font-size: 0.69rem;
  font-weight: 740;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-grid h3 {
  margin: 8px 0 7px;
  font-size: 1.18rem;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.product-grid p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.product-grid article > a:last-child {
  margin-top: auto;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 700;
}

.product-grid article > a:last-child::after {
  content: " →";
  color: var(--brand);
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.trust span {
  padding: 21px;
  color: #475467;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 620;
}

.trust span + span { border-left: 1px solid var(--line); }
.trust b { margin-right: 8px; color: var(--brand); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 0.84rem;
}

footer p { margin: 0; }
footer a { color: var(--ink); font-weight: 680; }

.shop-starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}

.shop-starfield[hidden] { display: none !important; }

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #070b14;
  --surface: #111827;
  --surface-soft: rgba(17, 24, 39, 0.9);
  --surface-elevated: rgba(14, 21, 34, 0.92);
  --ink: #f4f7fb;
  --muted: #9aa8bc;
  --subtle: #718096;
  --line: rgba(148, 163, 184, 0.17);
  --line-strong: rgba(148, 163, 184, 0.28);
  --brand: #6dd7ff;
  --brand-light: #9f8cff;
  --brand-soft: rgba(99, 210, 255, 0.11);
  --focus: rgba(99, 210, 255, 0.22);
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 76% 8%, rgba(56, 189, 248, 0.11), transparent 28rem),
    radial-gradient(circle at 23% 43%, rgba(124, 58, 237, 0.12), transparent 32rem),
    var(--page);
}

html[data-theme="dark"] .site-header { border-color: var(--line); }

html[data-theme="dark"] .site-header nav,
html[data-theme="dark"] .trust span { color: #b7c3d4; }

html[data-theme="dark"] .site-header .login,
html[data-theme="dark"] .shop-theme-toggle {
  color: #e7eef8;
  border-color: var(--line);
  background: rgba(17, 24, 39, 0.86);
}

html[data-theme="dark"] .intro p strong { color: #eef5ff; }

html[data-theme="dark"] .search-card {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(10, 16, 28, 0.96));
}

html[data-theme="dark"] .search-card::before {
  background: radial-gradient(circle, rgba(99, 210, 255, 0.12), transparent 70%);
}

html[data-theme="dark"] .search-card label,
html[data-theme="dark"] .search-card-heading strong { color: #e8eff9; }

html[data-theme="dark"] .search-control input {
  color: #edf5ff;
  border-color: var(--line-strong);
  background: #090f1b;
}

html[data-theme="dark"] .search-control input::placeholder { color: #718096; }

html[data-theme="dark"] .search-control button {
  color: #07111c;
  background: linear-gradient(135deg, #63d5ff, #8b7cff);
  box-shadow: 0 12px 28px rgba(99, 210, 255, 0.15);
}

html[data-theme="dark"] .search-suggestions a {
  color: #b7c3d4;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] .product-grid article.featured {
  border-color: rgba(167, 139, 250, 0.46);
  background: linear-gradient(155deg, rgba(65, 42, 110, 0.52), rgba(14, 21, 34, 0.95) 72%);
}

html[data-theme="dark"] .landing-announcement {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(17, 24, 39, .96), rgba(10, 16, 28, .96));
}

html[data-theme="dark"] .product-grid article > a:last-child,
html[data-theme="dark"] footer a { color: #eef5ff; }

@media (max-width: 900px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
    gap: 34px;
  }

  .intro h1 { font-size: clamp(3rem, 6.8vw, 4.15rem); }
}

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 70px; }
  .site-header nav { gap: 9px; }
  .site-header nav > a:not(.login) { display: none; }
  .intro {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 34px;
    padding: 54px 0 48px;
  }
  .intro-copy { max-width: 660px; }
  .intro h1 { max-width: 600px; font-size: clamp(2.8rem, 12vw, 4.2rem); }
  .search-card { width: 100%; max-width: 620px; justify-self: start; }
  .product-grid { grid-template-columns: 1fr; }
  .landing-announcement { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .product-grid article { min-height: 245px; }
}

@media (max-width: 520px) {
  .brand-mark { width: 38px; height: 38px; }
  .brand strong { font-size: 1rem; }
  .site-header .login { min-height: 42px; padding: 9px 12px; }
  .shop-theme-toggle { width: 42px; height: 42px; }
  .intro { padding-top: 44px; }
  .intro h1 { margin-top: 11px; font-size: clamp(2.55rem, 13.5vw, 3.45rem); letter-spacing: -0.05em; }
  .intro p { font-size: 0.96rem; line-height: 1.7; }
  .search-card { padding: 20px; border-radius: 22px; }
  .search-card-heading { margin-bottom: 20px; }
  .search-control { grid-template-columns: 1fr; }
  .search-control button { width: 100%; }
  .search-suggestions { margin-top: 12px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 1.75rem; }
  .section-heading > a { padding-top: 25px; }
  .product-grid article { min-height: 230px; padding: 21px; }
  .trust { grid-template-columns: 1fr; }
  .trust span + span { border-top: 1px solid var(--line); border-left: 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .shop-starfield { display: none !important; }
}






/* ============================================================
   TeddyTools UX v5.0 — RED CONSTELLATION
   ============================================================ */

html[data-theme="dark"] {
  --tt-bg: #07080d;
  --tt-bg-2: #0b0d14;
  --tt-panel: rgba(18, 16, 23, .80);
  --tt-panel-solid: #111018;
  --tt-line: rgba(255, 157, 168, .12);
  --tt-line-strong: rgba(255, 151, 164, .22);
  --tt-text: #fbf8f9;
  --tt-muted: #b3a7ac;
  --tt-dim: #7f7278;
  --tt-red: #f15d6f;
  --tt-red-2: #cf3348;
  --tt-red-soft: #f58a96;
  --tt-red-deep: #7b2231;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

body.tt-home {
  min-height: 100vh;
  color: var(--tt-text);
  background:
    radial-gradient(circle at 72% 15%, rgba(167, 45, 66, .095), transparent 30rem),
    radial-gradient(circle at 16% 52%, rgba(239, 71, 93, .055), transparent 29rem),
    linear-gradient(180deg, #07080d 0%, #0a0b11 52%, #0b0c12 100%);
}

.tt-home main,
.tt-header,
.tt-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.tt-ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.tt-ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image:
    radial-gradient(circle at 13% 24%, rgba(255,230,233,.72) 0 1px, transparent 1.2px),
    radial-gradient(circle at 79% 18%, rgba(255,199,207,.58) 0 1px, transparent 1.2px),
    radial-gradient(circle at 58% 61%, rgba(255,238,240,.52) 0 1px, transparent 1.2px);
  background-size: 320px 290px, 430px 390px, 560px 480px;
}

.tt-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(82px);
  opacity: .11;
}
.tt-orbit-a { width: 440px; height: 440px; right: 6%; top: 18%; background: #b42c43; }
.tt-orbit-b { width: 360px; height: 360px; left: 10%; top: 48%; background: #f05b6e; opacity: .065; }

.tt-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.tt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tt-text);
  text-decoration: none;
}

.tt-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(241,93,111,.22);
  border-radius: 13px;
  background: radial-gradient(circle, rgba(241,93,111,.11), rgba(11,11,17,.90) 72%);
  box-shadow: 0 11px 34px rgba(219, 46, 70, .10);
}

.tt-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(255, 87, 61, .50));
}

.tt-brand-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -.03em;
}
.tt-brand-copy strong { font-size: 1rem; }
.tt-brand-copy small { color: var(--tt-red); font-size: .72rem; font-weight: 800; }

.tt-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tt-nav a {
  padding: 10px 12px;
  border-radius: 9px;
  color: #b7adb1;
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.tt-nav a:hover {
  color: #fff;
  background: rgba(241, 93, 111, .055);
}

.tt-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tt-header .shop-theme-toggle {
  width: 40px;
  height: 40px;
  color: #d3c8cc;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
}

.tt-login {
  min-height: 40px;
  padding: 0 15px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 10px !important;
  color: #f7f2f4 !important;
  background: rgba(255,255,255,.032) !important;
  box-shadow: none !important;
}

.tt-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
  min-height: 620px;
  padding: 76px 0 58px;
}

.tt-hero-copy,
.tt-console {
  position: relative;
  z-index: 3;
}

.tt-constellation-canvas {
  position: absolute;
  inset: -58px -110px -30px;
  z-index: 0;
  width: calc(100% + 220px);
  height: calc(100% + 88px);
  touch-action: none;
  user-select: none;
  cursor: grab;
  opacity: .96;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 53%, rgba(0,0,0,.78) 76%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 53%, rgba(0,0,0,.78) 76%, transparent 100%);
}
.tt-constellation-canvas.is-dragging { cursor: grabbing; }

.tt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid rgba(241,93,111,.20);
  border-radius: 999px;
  color: #d6a9af;
  background: rgba(241,93,111,.045);
  font-size: .64rem;
  font-weight: 790;
  letter-spacing: .11em;
}
.tt-kicker i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tt-red);
  box-shadow: 0 0 12px rgba(241,93,111,.60);
}

.tt-domain-title {
  display: flex;
  align-items: baseline;
  margin: 22px 0 18px;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(4rem, 6vw, 6.25rem);
  line-height: .90;
  letter-spacing: -.078em;
  font-weight: 840;
}
.tt-domain-title span { color: #fffafb; }
.tt-domain-title b {
  margin-left: .028em;
  color: var(--tt-red);
  font-weight: inherit;
  text-shadow: 0 0 28px rgba(241,93,111,.13);
}

.tt-hero-lead {
  max-width: 590px;
  margin: 0;
  color: var(--tt-muted);
  font-size: .98rem;
  line-height: 1.72;
}

.tt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 17px;
  border-radius: 12px;
  font-size: .83rem;
  font-weight: 770;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tt-btn:hover { transform: translateY(-2px); }

.tt-btn-primary {
  color: #fff;
  border: 1px solid rgba(255,157,170,.36);
  background: linear-gradient(135deg, #f26a7a, #d64055);
  box-shadow: 0 14px 34px rgba(207,51,72,.17), inset 0 1px 0 rgba(255,255,255,.18);
}

.tt-btn-secondary {
  color: #e8e0e3;
  border: 1px solid rgba(222,194,201,.15);
  background: rgba(17,15,22,.52);
  backdrop-filter: blur(10px);
}

.tt-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
  color: var(--tt-dim);
  font-size: .69rem;
  font-weight: 650;
}
.tt-proof span { display: inline-flex; align-items: center; gap: 7px; }
.tt-proof i { width: 5px; height: 5px; border-radius: 50%; background: var(--tt-red); }

.tt-console {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(241,93,111,.16);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(20,17,24,.86), rgba(10,10,16,.94));
  box-shadow:
    0 36px 90px rgba(0,0,0,.34),
    0 0 60px rgba(191, 41, 63, .045),
    inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(18px);
}

.tt-console-top,
.tt-console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tt-console-top { padding: 3px 3px 14px; }
.tt-console-top small { display: block; color: #786b70; font-size: .57rem; font-weight: 790; letter-spacing: .10em; }
.tt-console-top strong { display: block; margin-top: 3px; font-size: .92rem; }

.tt-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8edcaf;
  font-size: .68rem;
  font-weight: 730;
}
.tt-online i, .tt-dot-green {
  width: 6px; height: 6px; border-radius: 50%; background: #43d38d;
  box-shadow: 0 0 12px rgba(67,211,141,.45);
}

.tt-console-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.tt-tool-tile {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  align-items: center;
  gap: 11px;
  min-height: 108px;
  padding: 13px;
  border: 1px solid rgba(230,207,212,.09);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: rgba(255,255,255,.020);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tt-tool-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(241,93,111,.24);
  background: rgba(241,93,111,.045);
}
.tt-tool-featured {
  border-color: rgba(241,93,111,.18);
  background: linear-gradient(135deg, rgba(241,93,111,.050), rgba(104,25,39,.035));
}

.tt-tool-icon,
.tt-benefit-icon,
.tt-search-icon {
  display: grid;
  place-items: center;
  color: #f5b6bf;
  background: linear-gradient(145deg, rgba(241,93,111,.15), rgba(93,25,37,.10));
  border: 1px solid rgba(241,117,133,.14);
}
.tt-tool-icon { width: 42px; height: 42px; border-radius: 12px; }
.tt-tool-icon svg,
.tt-benefit-icon svg,
.tt-search-icon svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.tt-tool-copy { min-width: 0; }
.tt-tool-copy small { display: block; color: #72666b; font-size: .54rem; font-weight: 800; letter-spacing: .10em; }
.tt-tool-copy strong { display: block; margin-top: 4px; color: #fbf6f7; font-size: .82rem; }
.tt-tool-copy em { display: block; margin-top: 9px; color: #8d7f84; font-size: .65rem; font-style: normal; }

.tt-console-foot {
  margin-top: 12px;
  padding: 11px 3px 2px;
  border-top: 1px solid rgba(255,255,255,.055);
  color: #786c71;
  font-size: .63rem;
}
.tt-console-foot span { display: inline-flex; align-items: center; gap: 7px; }
.tt-console-foot a { color: #b9abb0; text-decoration: none; font-weight: 660; }

.tt-quick-search {
  display: grid;
  grid-template-columns: auto minmax(300px,1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 14px 15px;
  border: 1px solid rgba(241,93,111,.12);
  border-radius: 16px;
  background: rgba(16,14,20,.72);
  backdrop-filter: blur(14px);
}
.tt-quick-search-copy { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.tt-search-icon { width: 38px; height: 38px; border-radius: 11px; }
.tt-quick-search-copy strong, .tt-quick-search-copy small { display: block; }
.tt-quick-search-copy strong { font-size: .78rem; }
.tt-quick-search-copy small { margin-top: 2px; color: #83767b; font-size: .62rem; }

.tt-quick-search form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
}
.tt-quick-search input {
  min-width: 0;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(229,206,211,.12);
  border-radius: 10px;
  outline: none;
  color: #f4edef;
  background: rgba(7,7,12,.64);
  font: inherit;
  font-size: .76rem;
}
.tt-quick-search input:focus {
  border-color: rgba(241,93,111,.44);
  box-shadow: 0 0 0 3px rgba(241,93,111,.075);
}
.tt-quick-search button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,153,166,.25);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #f16b7b, #d34055);
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  cursor: pointer;
}

.tt-search-chips { display: flex; gap: 5px; }
.tt-search-chips a {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 999px;
  color: #8e8085;
  font-size: .61rem;
  font-weight: 650;
  text-decoration: none;
}

.tt-benefits {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 14px;
}
.tt-benefits article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 15px;
  border: 1px solid rgba(241,93,111,.10);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(18,16,22,.70), rgba(10,10,15,.78));
}
.tt-benefit-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; }
.tt-benefits strong, .tt-benefits small { display: block; }
.tt-benefits strong { font-size: .78rem; }
.tt-benefits small { margin-top: 4px; color: #83767b; font-size: .64rem; line-height: 1.45; }

.tt-catalog { padding: 68px 0 30px; }

.tt-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.tt-section-head span { color: var(--tt-red); font-size: .58rem; font-weight: 820; letter-spacing: .12em; }
.tt-section-head h2 { margin: 6px 0 0; font-size: clamp(1.55rem,2.4vw,2.2rem); letter-spacing: -.035em; }
.tt-section-head > a { color: #95878c; text-decoration: none; font-size: .72rem; font-weight: 670; }

.tt-catalog-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
}
.tt-catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(241,93,111,.10);
  border-radius: 17px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(17,15,21,.78), rgba(10,9,14,.90));
  transition: transform .18s ease, border-color .18s ease;
}
.tt-catalog-card:hover { transform: translateY(-3px); border-color: rgba(241,93,111,.24); }
.tt-catalog-main {
  background:
    radial-gradient(circle at 88% 12%, rgba(183,48,68,.09), transparent 15rem),
    linear-gradient(145deg, rgba(22,16,22,.88), rgba(11,10,15,.92));
}
.tt-card-index { color: #776a6f; font-size: .65rem; font-weight: 800; letter-spacing: .10em; }
.tt-catalog-card div { margin-top: auto; }
.tt-catalog-card small { color: #75696e; font-size: .57rem; font-weight: 800; letter-spacing: .10em; }
.tt-catalog-card strong { display:block; margin-top:5px; font-size:1rem; }
.tt-catalog-card p { max-width: 430px; margin: 8px 0 0; color:#8b7d82; font-size:.7rem; line-height:1.55; }
.tt-catalog-card > b { margin-top: 17px; color:#e1d5d8; font-size:.7rem; }

.tt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 90px;
  margin-top: 38px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #75696e;
}
.tt-footer-brand { display:flex; align-items:center; gap:8px; color:#eee5e7; text-decoration:none; }
.tt-footer-brand img { object-fit:contain; filter:drop-shadow(0 0 8px rgba(255,78,53,.42)); }
.tt-footer-brand span { display:inline-flex; align-items:baseline; gap:2px; }
.tt-footer-brand small { color:var(--tt-red); font-weight:800; }
.tt-footer p { font-size:.65rem; }
.tt-footer div { display:flex; gap:15px; }
.tt-footer div a { color:#82757a; text-decoration:none; font-size:.66rem; }

@media (max-width: 980px) {
  .tt-nav a:nth-child(3),
  .tt-nav a:nth-child(4) { display: none; }
  .tt-hero { grid-template-columns: minmax(0,1fr) minmax(340px,.85fr); gap: 30px; }
  .tt-domain-title { font-size: clamp(3.55rem, 6.8vw, 5rem); }
  .tt-console-grid { grid-template-columns: 1fr; }
  .tt-tool-tile { min-height: 84px; }
  .tt-quick-search { grid-template-columns: 1fr; }
  .tt-quick-search-copy { min-width: 0; }
  .tt-search-chips { display: none; }
}

@media (max-width: 760px) {
  .tt-home main,
  .tt-header,
  .tt-footer { width: min(100% - 22px, 680px); }

  .tt-header { grid-template-columns: 1fr auto; min-height: 70px; gap: 10px; }
  .tt-nav { display: none; }
  .tt-brand-mark { width: 39px; height: 39px; }
  .tt-header .shop-theme-toggle { width: 38px; height: 38px; }
  .tt-login { min-height: 38px; padding-inline: 11px !important; }

  .tt-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 54px 0 30px;
  }
  .tt-constellation-canvas {
    inset: -24px -18px -10px;
    width: calc(100% + 36px);
    height: calc(100% + 34px);
    opacity: .72;
    -webkit-mask-image: linear-gradient(#000 0%, #000 84%, transparent 100%);
    mask-image: linear-gradient(#000 0%, #000 84%, transparent 100%);
  }

  .tt-domain-title { white-space: normal; font-size: clamp(3.5rem, 15vw, 5rem); }
  .tt-domain-title b { margin-left: 0; }
  .tt-hero-lead { font-size: .91rem; }
  .tt-console { padding: 13px; border-radius: 18px; }
  .tt-console-grid { grid-template-columns: 1fr 1fr; }
  .tt-tool-tile { display:flex; min-height:96px; padding:11px; }
  .tt-tool-copy small { display:none; }

  .tt-benefits { grid-template-columns: 1fr; }
  .tt-catalog { padding-top:50px; }
  .tt-catalog-grid { grid-template-columns:1fr; }
  .tt-catalog-card { min-height:170px; }
  .tt-footer { flex-wrap:wrap; padding:20px 0; }
}

@media (max-width: 480px) {
  .tt-header-actions .tt-login { display:none; }
  .tt-domain-title { font-size: clamp(3.05rem, 17vw, 4.3rem); }
  .tt-hero-actions { display:grid; grid-template-columns:1fr; }
  .tt-btn { width:100%; }
  .tt-proof { display:grid; grid-template-columns:1fr; gap:9px; }
  .tt-console-grid { grid-template-columns:1fr; }
  .tt-console-foot { align-items:flex-start; flex-direction:column; }
  .tt-quick-search form { grid-template-columns:1fr; }
  .tt-quick-search button { min-height:44px; }
}

@media (prefers-reduced-motion: reduce) {
}


/* ============================================================
   TeddyTools UX v5.4 — Particle Network + Floating 3D Workspace
   ============================================================ */

.tt-hero {
  perspective: 1400px;
  transform-style: preserve-3d;
}

.tt-constellation-canvas {
  opacity: .92;
  filter: saturate(.88);
}

.tt-console-stage {
  position: relative;
  z-index: 3;
  min-width: 0;
  perspective: 1100px;
  transform-style: preserve-3d;
  --tt-tilt-x: 0deg;
  --tt-tilt-y: 0deg;
  --tt-card-shift-x: 0px;
  --tt-card-shift-y: 0px;
  --tt-glow-x: 50%;
  --tt-glow-y: 50%;
}

.tt-console-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 11% 8% -8%;
  border-radius: 36px;
  background:
    radial-gradient(circle at var(--tt-glow-x) var(--tt-glow-y),
      rgba(241, 93, 111, .16),
      rgba(166, 46, 65, .055) 34%,
      transparent 68%);
  filter: blur(34px);
  opacity: .78;
  pointer-events: none;
  transition: opacity .22s ease;
}

.tt-console-stage .tt-console {
  transform-style: preserve-3d;
  transform:
    translate3d(var(--tt-card-shift-x), var(--tt-card-shift-y), 0)
    rotateX(var(--tt-tilt-x))
    rotateY(var(--tt-tilt-y));
  transform-origin: 50% 55%;
  will-change: transform;
  transition:
    transform .18s cubic-bezier(.2,.8,.2,1),
    border-color .2s ease,
    box-shadow .2s ease;
  animation: tt-console-float-v54 5.5s ease-in-out infinite;
}

.tt-console-stage .tt-console-top,
.tt-console-stage .tt-tool-tile,
.tt-console-stage .tt-console-foot {
  transform: translateZ(18px);
  transform-style: preserve-3d;
}

.tt-console-stage .tt-tool-icon {
  transform: translateZ(10px);
}

@keyframes tt-console-float-v54 {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* Subtle glass highlight that follows cursor through CSS variables. */
.tt-console-stage .tt-console::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--tt-glow-x) var(--tt-glow-y),
      rgba(255,255,255,.065),
      rgba(241,93,111,.025) 25%,
      transparent 52%
    );
  opacity: .70;
  mix-blend-mode: screen;
}

/* Keep cards above the highlight overlay. */
.tt-console-stage .tt-console > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .tt-console-stage {
    perspective: none;
  }

  .tt-console-stage .tt-console {
    transform: none !important;
    animation: none;
  }

  .tt-console-stage::before,
  .tt-console-stage .tt-console::after {
    display: none;
  }

  .tt-console-stage .tt-console-top,
  .tt-console-stage .tt-tool-tile,
  .tt-console-stage .tt-console-foot,
  .tt-console-stage .tt-tool-icon {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-console-stage .tt-console {
    transform: none !important;
    animation: none !important;
  }

  .tt-console-stage::before,
  .tt-console-stage .tt-console::after {
    display: none;
  }
}


/* ============================================================
   TeddyTools UX v5.5 — Autonomous Particles
   ============================================================ */

/* Particle mesh is decorative only. It never captures mouse/touch. */
.tt-constellation-canvas {
  pointer-events: none !important;
  cursor: default !important;
  user-select: none !important;
}

/* Slight permanent 3D attitude similar to the reference layout. */
.tt-console-stage {
  --tt-base-tilt-x: 7deg;
  --tt-base-tilt-y: -11deg;
  --tt-base-tilt-z: 1.35deg;
}

.tt-console-stage .tt-console {
  transform:
    translate3d(var(--tt-card-shift-x), var(--tt-card-shift-y), 0)
    rotateX(calc(var(--tt-base-tilt-x) + var(--tt-tilt-x)))
    rotateY(calc(var(--tt-base-tilt-y) + var(--tt-tilt-y)))
    rotateZ(var(--tt-base-tilt-z));
}

@keyframes tt-console-float-v55 {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

.tt-console-stage .tt-console {
  animation-name: tt-console-float-v55;
  animation-duration: 5.8s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@media (max-width: 760px) {
  .tt-console-stage {
    --tt-base-tilt-x: 0deg;
    --tt-base-tilt-y: 0deg;
    --tt-base-tilt-z: 0deg;
  }
}


/* ============================================================
   TeddyTools UX v5.7 — Mobile Typography + Non-interactive Hero
   ============================================================ */

.tt-hero-copy,
.tt-console-stage,
.tt-console,
.tt-tool-copy {
  min-width: 0;
}


.tt-tool-copy strong,
.tt-tool-copy em,
.tt-hero-lead,
.tt-kicker,
.tt-proof span,
.tt-catalog-card p,
.tt-catalog-card strong,
.tt-catalog-card small {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .tt-hero-copy {
    width: 100%;
  }

  .tt-kicker {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    font-size: .58rem;
    letter-spacing: .095em;
  }

  .tt-domain-title {
    display: block;
    max-width: 100%;
    margin: 18px 0 16px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: .96;
    letter-spacing: -.055em;
    font-size: clamp(2.7rem, 13.6vw, 4.2rem);
  }

  .tt-domain-title b {
    display: inline;
    margin-left: .03em;
  }

  .tt-hero-lead {
    max-width: none;
    font-size: .95rem;
    line-height: 1.72;
  }

  .tt-hero-actions {
    width: 100%;
  }

  .tt-btn {
    min-height: 50px;
    font-size: .84rem;
    padding-inline: 15px;
  }

  .tt-proof {
    gap: 10px;
    font-size: .74rem;
  }

  .tt-console {
    padding: 14px;
  }

  .tt-console-top strong {
    font-size: 1rem;
  }

  .tt-tool-tile {
    gap: 10px;
    min-width: 0;
  }

  .tt-tool-copy strong {
    font-size: 1rem;
    line-height: 1.3;
  }

  .tt-tool-copy em {
    font-size: .84rem;
    line-height: 1.35;
  }
}

@media (max-width: 520px) {
  .tt-home main,
  .tt-header,
  .tt-footer {
    width: min(100% - 18px, 680px);
  }

  .tt-header {
    min-height: 66px;
  }

  .tt-brand-copy strong {
    font-size: 1.05rem;
  }

  .tt-domain-title {
    font-size: clamp(2.38rem, 12.8vw, 3.7rem);
    line-height: .98;
    letter-spacing: -.048em;
  }

  .tt-hero-lead {
    font-size: .92rem;
  }

  .tt-btn {
    min-height: 48px;
  }

  .tt-proof {
    grid-template-columns: 1fr;
  }

  .tt-console-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .tt-domain-title {
    font-size: clamp(2.08rem, 12vw, 3.2rem);
  }

  .tt-hero {
    padding-top: 48px;
  }
}

/* TeddyTools UX v5.8 — public decorative field is never interactive. */
.tt-constellation-canvas,
.shop-starfield {
  pointer-events: none !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: default !important;
}
.tt-constellation-canvas.is-dragging { cursor: default !important; }

/* ============================================================
   TeddyTools UX v5.9 — Dark-only Landing + Autonomous 3D Stage
   ============================================================ */

/* Public landing is intentionally Dark-only. */
html[data-theme="dark"] { color-scheme: dark; }

.tt-constellation-canvas {
  pointer-events: none !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: default !important;
}

.tt-console-stage {
  perspective: 1320px;
  perspective-origin: 48% 44%;
  transform-style: preserve-3d;
  --tt-base-tilt-x: 5.6deg;
  --tt-base-tilt-y: -9.8deg;
  --tt-base-tilt-z: 1deg;
  --tt-tilt-z: 0deg;
  --tt-card-depth: 0px;
  --tt-orbit-phase: 0deg;
}

.tt-console-stage::before {
  inset: 7% 3% -11%;
  opacity: .78;
  filter: blur(38px);
  background:
    radial-gradient(circle at var(--tt-glow-x) var(--tt-glow-y),
      rgba(242, 95, 113, .20),
      rgba(195, 45, 67, .075) 32%,
      rgba(90, 33, 55, .035) 52%,
      transparent 72%);
  transform: translateZ(-42px) scale(1.04);
  transition: none;
}

/* Slow orbital light ring makes the panel feel suspended in a 3D volume. */
.tt-console-stage::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 3% -4% -2%;
  border-radius: 38px;
  pointer-events: none;
  border: 1px solid rgba(238, 91, 109, .10);
  background:
    conic-gradient(from var(--tt-orbit-phase),
      transparent 0 19%,
      rgba(246, 108, 124, .18) 24%,
      transparent 31% 57%,
      rgba(255, 225, 230, .08) 63%,
      transparent 70% 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
  opacity: .72;
  filter: drop-shadow(0 0 18px rgba(221, 66, 88, .08));
  transform: translateZ(-65px) rotateZ(-1.5deg);
}

.tt-console-stage .tt-console {
  animation: none !important;
  transform-style: preserve-3d;
  transform:
    translate3d(var(--tt-card-shift-x), var(--tt-card-shift-y), var(--tt-card-depth))
    rotateX(calc(var(--tt-base-tilt-x) + var(--tt-tilt-x)))
    rotateY(calc(var(--tt-base-tilt-y) + var(--tt-tilt-y)))
    rotateZ(calc(var(--tt-base-tilt-z) + var(--tt-tilt-z)));
  transition: none;
  border-color: rgba(241, 93, 111, .17);
  box-shadow:
    0 44px 105px rgba(0, 0, 0, .42),
    0 0 82px rgba(201, 50, 72, .07),
    inset 0 1px 0 rgba(255, 255, 255, .038),
    inset 0 -1px 0 rgba(241, 93, 111, .035);
}

.tt-console-stage .tt-console::after {
  opacity: .62;
  background:
    radial-gradient(circle at var(--tt-glow-x) var(--tt-glow-y),
      rgba(255,255,255,.085),
      rgba(241,93,111,.032) 23%,
      transparent 50%);
}

.tt-console-stage .tt-console-top {
  transform: translateZ(34px);
}
.tt-console-stage .tt-console-grid {
  transform: translateZ(21px);
  transform-style: preserve-3d;
}
.tt-console-stage .tt-tool-tile:nth-child(1) { transform: translateZ(22px); }
.tt-console-stage .tt-tool-tile:nth-child(2) { transform: translateZ(16px); }
.tt-console-stage .tt-tool-tile:nth-child(3) { transform: translateZ(19px); }
.tt-console-stage .tt-tool-tile:nth-child(4) { transform: translateZ(13px); }
.tt-console-stage .tt-tool-icon { transform: translateZ(12px); }
.tt-console-stage .tt-console-foot { transform: translateZ(25px); }

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .tt-console-stage {
    perspective: none;
    --tt-base-tilt-x: 0deg;
    --tt-base-tilt-y: 0deg;
    --tt-base-tilt-z: 0deg;
  }
  .tt-console-stage::after { display: none; }
  .tt-console-stage .tt-console,
  .tt-console-stage .tt-console-top,
  .tt-console-stage .tt-console-grid,
  .tt-console-stage .tt-tool-tile,
  .tt-console-stage .tt-tool-icon,
  .tt-console-stage .tt-console-foot {
    transform: none !important;
  }
}

/* ============================================================
   TeddyTools UX v5.14 — Public landing responsive hardening
   Dark-only, autonomous decoration, 320px+ safe.
   ============================================================ */

.tt-home,
.tt-home * { box-sizing: border-box; }
.tt-home { min-width: 0; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.tt-home main,
.tt-header,
.tt-footer,
.tt-hero,
.tt-hero-copy,
.tt-console-stage,
.tt-console,
.tt-tool-tile,
.tt-tool-copy { min-width: 0; max-width: 100%; }

.tt-constellation-canvas,
.shop-starfield,
.tt-ambient,
.tt-orbit {
  pointer-events: none !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

@media (max-width: 760px) {
  .tt-home main,
  .tt-header,
  .tt-footer {
    width: calc(100% - 20px) !important;
    max-width: 680px;
  }

  .tt-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 64px !important;
    gap: 10px !important;
  }
  .tt-brand { min-width: 0; }
  .tt-brand-mark { flex: 0 0 38px; width: 38px; height: 38px; }
  .tt-brand-copy { min-width: 0; }
  .tt-brand-copy strong { font-size: .98rem; }
  .tt-header-actions { flex: 0 0 auto; }
  .tt-login { min-height: 40px; padding-inline: 13px !important; white-space: nowrap; }

  .tt-hero {
    width: 100%;
    padding: 44px 0 28px !important;
    gap: 28px !important;
  }
  .tt-hero-copy { width: 100%; }
  .tt-kicker {
    display: inline-flex;
    max-width: 100%;
    line-height: 1.35;
    white-space: normal;
  }
  .tt-domain-title {
    width: 100%;
    max-width: 100%;
    margin: 18px 0 14px !important;
    font-size: clamp(2.45rem, 13vw, 4rem) !important;
    line-height: .97 !important;
    letter-spacing: -.048em !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  .tt-domain-title span,
  .tt-domain-title b { display: inline; }
  .tt-domain-title b { margin-left: .02em !important; }

  .tt-hero-lead {
    max-width: 100% !important;
    font-size: .93rem !important;
    line-height: 1.68 !important;
    overflow-wrap: anywhere;
  }
  .tt-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
    gap: 9px;
  }
  .tt-hero-actions .tt-btn { width: 100%; min-height: 50px; }
  .tt-proof { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }

  .tt-console-stage {
    width: 100%;
    perspective: none !important;
  }
  .tt-console-stage::after { display: none !important; }
  .tt-console {
    width: 100%;
    padding: 13px !important;
    border-radius: 18px !important;
    transform: none !important;
  }
  .tt-console-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
  .tt-tool-tile {
    min-height: 82px !important;
    padding: 11px !important;
    gap: 10px !important;
  }
  .tt-tool-copy strong { font-size: .94rem !important; line-height: 1.28 !important; }
  .tt-tool-copy em { font-size: .78rem !important; line-height: 1.35 !important; }
  .tt-console-foot { flex-wrap: wrap; gap: 7px; }

  .tt-constellation-canvas {
    inset: -14px -10px -6px !important;
    width: calc(100% + 20px) !important;
    height: calc(100% + 20px) !important;
    opacity: .58 !important;
  }

  .tt-footer { gap: 10px; }
  .tt-footer div { flex-wrap: wrap; gap: 8px 12px; }
}

@media (max-width: 480px) {
  .tt-home main,
  .tt-header,
  .tt-footer { width: calc(100% - 16px) !important; }
  .tt-header-actions .tt-login { display: inline-flex !important; font-size: .75rem; padding-inline: 10px !important; }
  .tt-brand-copy strong { font-size: .9rem; }
  .tt-brand-copy small { font-size: .63rem; }
  .tt-domain-title { font-size: clamp(2.15rem, 11.7vw, 3.35rem) !important; }
  .tt-kicker { font-size: .55rem !important; letter-spacing: .085em !important; }
  .tt-hero-lead { font-size: .9rem !important; }
  .tt-console-top { gap: 10px; }
  .tt-online { font-size: .62rem; }
}

@media (max-width: 400px) {
  .tt-console-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 360px) {
  .tt-header-actions .tt-login { padding-inline: 8px !important; }
  .tt-brand-mark { flex-basis: 36px; width: 36px; height: 36px; }
  .tt-domain-title { font-size: clamp(1.95rem, 11.3vw, 2.8rem) !important; }
  .tt-hero { padding-top: 38px !important; }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 1000px) {
  .tt-hero { padding-top: 28px !important; }
  .tt-console-stage { max-width: 620px; margin-inline: auto; }
}

/* v5.14 audit pass — touch devices and notched landscape screens. */
@media (hover: none), (pointer: coarse) {
  .tt-btn:hover,
  .tt-tool-tile:hover,
  .tt-login:hover {
    transform: none !important;
  }
}

@media (max-width: 760px) {
  .tt-header,
  .tt-home main,
  .tt-footer {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  .tt-btn,
  .tt-login { touch-action: manipulation; }
}
