/* ============================================================
   scenes.css — glass-icon scene cards
   ============================================================ */

:root {
  --section: 80px;
  --section-tight: 56px;
  --scene-surface: #eef1f5;
  --scene-surface-dark: #1a1a1a;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-bg-dark: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow:
    0 18px 36px -16px rgba(33, 99, 150, 0.2),
    0 4px 10px -4px rgba(17, 17, 17, 0.08);
  --glass-shadow-sm:
    0 10px 22px -12px rgba(33, 99, 150, 0.2),
    0 2px 6px -2px rgba(17, 17, 17, 0.08);
}

/* ============================================================
   1. Card shell
   ============================================================ */

.sd-scene-card {
  position: relative;
  background: var(--surface-card);
  border-radius: 28px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 500ms var(--ease-out-quart);
}

.sd-scene-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sd-scene-card__body {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.sd-scene-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0;
}

.sd-scene-card__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-scene-card__text {
  font-size: 18px;
  line-height: 1.45;
  color: var(--body);
  margin: 0;
  max-width: 380px;
}

/* Dark variant (mirrors sd-card--dark) */
.sd-scene-card--dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}
.sd-scene-card--dark .sd-scene-card__title { color: var(--on-dark); }
.sd-scene-card--dark .sd-scene-card__text { color: var(--on-dark-soft); }
.sd-scene-card--dark .sd-scene-card__list li { color: var(--on-dark-soft); }
.sd-scene-card--dark .sd-scene-card__eyebrow { color: #62bbff; }
.sd-scene-card--dark .sd-scene-card__cta { background: var(--accent); color: #fff; }
.sd-scene-card--dark .sd-scene-card__cta:hover { background: var(--accent-strong); }

/* ============================================================
   2. Scene area (illustration)
   ============================================================ */

.sd-scene {
  position: relative;
  height: 320px;
  border-radius: 20px;
  background: var(--scene-surface);
  overflow: hidden;
  isolation: isolate;
}

.sd-scene-card--dark .sd-scene { background: var(--scene-surface-dark); }

/* Decorative background — curve arc */
.sd-scene__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.sd-scene__bg svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   3. Glass elements — main card + satellite chips
   ============================================================ */

.sd-glass {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  color: var(--ink);
  transition: transform 500ms var(--ease-out-quart);
}

.sd-scene-card--dark .sd-glass {
  background: rgba(36, 36, 36, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.6),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.06);
}

/* Sizes */
.sd-glass--lg {
  width: 124px;
  height: 124px;
  border-radius: 26px;
}
.sd-glass--md {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.sd-glass--sm {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.sd-glass--xs {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

/* Inner SVG icon size */
.sd-glass svg {
  width: 50%;
  height: 50%;
  display: block;
}
.sd-glass--lg svg { width: 46%; height: 46%; }
.sd-glass--sm svg { width: 56%; height: 56%; }
.sd-glass--xs svg { width: 60%; height: 60%; }

/* Icon stroke style */
.sd-glass .sd-i-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sd-glass .sd-i-accent {
  fill: var(--accent);
  stroke: none;
}
.sd-glass .sd-i-accent-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sd-scene-card--dark .sd-glass .sd-i-line { stroke: rgba(255, 255, 255, 0.92); }

/* Centered placement helper */
.sd-glass--center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Float animations — only run when card is hovered, no idle compositing cost */
[data-tilt]:hover .sd-glass--float-1 { animation: sd-glass-float-1 7s ease-in-out infinite; }
[data-tilt]:hover .sd-glass--float-2 { animation: sd-glass-float-2 9s ease-in-out infinite; }
[data-tilt]:hover .sd-glass--float-3 { animation: sd-glass-float-3 8s ease-in-out infinite; }
[data-tilt]:hover .sd-glass--float-4 { animation: sd-glass-float-4 10s ease-in-out infinite; }

@keyframes sd-glass-float-1 {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}
@keyframes sd-glass-float-2 {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}
@keyframes sd-glass-float-3 {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}
@keyframes sd-glass-float-4 {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* ============================================================
   4. Hover lift — card breathes on tilt
   ============================================================ */
[data-tilt] .sd-glass--center { transition: transform 600ms var(--ease-out-quart); }
[data-tilt]:hover .sd-glass--center { transform: translate(-50%, -54%) scale(1.05); }

/* ============================================================
   5. Bento grid for new scene cards
   ============================================================ */
.sd-bento-scenes,
.sd-features-scenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sd-categories-scenes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sd-scene-card__body--cta {
  gap: 12px;
  padding-bottom: 28px;
}

.sd-scene-card__btn {
  align-self: flex-start;
  margin-top: 12px;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: var(--r-pill);
}

@media (max-width: 1024px) {
  .sd-bento-scenes,
  .sd-features-scenes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .sd-bento-scenes,
  .sd-features-scenes,
  .sd-categories-scenes {
    grid-template-columns: 1fr;
  }
  .sd-scene { height: 260px; }
  .sd-scene-card__body { padding: 28px 22px 26px; }
}

/* ============================================================
   6. Wiki band — scene on the right
   ============================================================ */
.sd-band-scene {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: stretch;
  background: var(--surface-card);
  border-radius: 32px;
  padding: 20px;
  overflow: hidden;
  isolation: isolate;
}

.sd-band-scene__copy {
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.sd-band-scene__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0;
}

.sd-band-scene__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}

.sd-band-scene__text {
  font-size: 19px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
  max-width: 460px;
}

.sd-band-scene__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.sd-band-scene__actions .sd-btn {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: var(--r-pill);
}

.sd-band-scene__visual {
  position: relative;
  min-height: 420px;
  border-radius: 22px;
  background: var(--scene-surface);
  overflow: hidden;
}

@media (max-width: 880px) {
  .sd-band-scene {
    grid-template-columns: 1fr;
  }
  .sd-band-scene__visual { min-height: 280px; }
}

/* ============================================================
   7. Tighter section heads (we dropped leads — less margin needed)
   ============================================================ */
.sd-section__head {
  margin-bottom: 36px;
}
.sd-section__title,
.sd-band__title {
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.035em;
}
.sd-section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}

/* ============================================================
   8. Tool pages — whois (locked one-screen, no scroll, full bg)
   ============================================================ */
.sd-whois-main { background: var(--canvas); }
.sd-whois-main::before { display: none !important; }

body.sd-whois-page,
html:has(body.sd-whois-page) {
  overflow: hidden;
  height: 100vh;
  height: 100svh;
}

.sd-whois-page .sd-page {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sd-whois-page main.sd-whois-main {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  isolation: isolate;
}

/* full-area background layer (orbs + shapes + grid) */
.sd-whois-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sd-whois-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.06) 1px, transparent 1px);
  background-size: 160px 160px;
  background-position: 50% 0;
  pointer-events: none;
}

.sd-whois-page .sd-tool-hero,
.sd-whois-page .sd-whois-results {
  position: relative;
  z-index: 1;
}

.sd-whois-page .sd-tool-hero {
  flex: 0 0 auto;
  min-height: 0;
  padding: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px);
  background: transparent;
}
.sd-whois-page .sd-tool-hero::before {
  display: none; /* main bg layer owns the grid */
}

.sd-whois-page .sd-whois-results {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding: 8px 0 24px;
  -webkit-overflow-scrolling: touch;
}

/* subtle scroll fade on results */
.sd-whois-page .sd-whois-results {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}


.sd-tool-hero {
  position: relative;
  padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  background: var(--canvas);
  overflow: hidden;
  isolation: isolate;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.sd-tool-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.06) 1px, transparent 1px);
  background-size: 160px 160px;
  background-position: 50% 0;
}

.sd-tool-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sd-tool-hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
  color: var(--ink);
  max-width: 880px;
}

.sd-tool-hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent) 0%, #62bbff 50%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: sd-text-shimmer 5s linear infinite;
}

.sd-tool-search {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  box-shadow:
    0 18px 36px -16px rgba(33, 99, 150, 0.18),
    0 4px 10px -4px rgba(17, 17, 17, 0.06);
  width: min(640px, 100%);
  margin-top: 18px;
  transition: border-color 240ms var(--ease-out-quart), box-shadow 240ms var(--ease-out-quart);
}

.sd-tool-search:focus-within {
  border-color: var(--accent-border);
  box-shadow:
    0 0 0 4px rgba(33, 150, 243, 0.12),
    0 18px 36px -16px rgba(33, 99, 150, 0.22),
    0 4px 10px -4px rgba(17, 17, 17, 0.06);
}

.sd-tool-search__input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  text-transform: none;
}

.sd-tool-search__input::placeholder {
  color: var(--muted);
}

.sd-tool-search__btn {
  height: 56px;
  padding: 0 30px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 540px) {
  .sd-tool-search {
    flex-direction: column;
    border-radius: 20px;
    padding: 8px;
  }
  .sd-tool-search__input {
    height: 52px;
    padding: 0 14px;
  }
  .sd-tool-search__btn {
    width: 100%;
    height: 52px;
  }
}

/* ============================================================
   9. Reduced motion safety
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .sd-glass { animation: none !important; }
  [data-tilt]:hover .sd-glass--center { transform: translate(-50%, -50%) !important; }
}
