:root {
  --bg: #050505;
  --panel: #0b0b0c;
  --panel-2: #111214;
  --panel-3: #17181b;
  --text: #f7f7f5;
  --muted: #9a9da3;
  --muted-2: #6f7278;
  --line: #25262b;
  --line-strong: #3a3c42;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --font-display: var(--font-geist-sans, Inter), ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 14% -12%, rgba(255, 255, 255, 0.08), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.045), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-feature-settings: "ss01", "cv02", "cv03";
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: none !important;
}

::selection {
  background: #f7f7f5;
  color: #050505;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.legacy-root {
  min-height: 100vh;
}

.noscript-notice {
  position: fixed;
  inset: 20px;
  z-index: 5000;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0b0b0c;
  color: #fff;
  text-align: center;
}

.app-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  padding: max(28px, env(safe-area-inset-top)) 0
    calc(118px + env(safe-area-inset-bottom));
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), transparent 38%),
    #09090a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 90px rgba(0, 0, 0, 0.35);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom right, #000, transparent 72%);
  pointer-events: none;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 38px;
}

.hero .eyebrow {
  margin: 0;
  color: #d9d9d7;
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.17em;
}

.hero-live {
  min-height: 30px;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #d9d9d7;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.hero-live i {
  width: 7px;
  height: 7px;
  background: #8ff0aa;
  box-shadow: 0 0 0 4px rgba(143, 240, 170, 0.1);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.35rem, 7.2vw, 6.9rem);
  font-weight: 670;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.hero h1 span {
  display: block;
  color: #8d8f94;
  font-weight: 540;
}

.hero-kicker {
  max-width: 650px;
  margin: 26px 0 0;
  color: #f1f1ef;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 580;
  line-height: 1.5;
}

.hero .subtitle {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.hero-service-tags {
  gap: 8px;
  margin-top: 24px;
}

.hero-service-tags span {
  min-height: 32px;
  padding: 7px 11px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #c7c8c8;
  font-size: 0.68rem;
  font-weight: 650;
}

.hero-actions {
  gap: 10px;
  margin-top: 24px;
}

.hero-primary-cta,
.hero-secondary-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 820;
  text-decoration: none;
}

.hero-primary-cta {
  border: 1px solid #f4f4f0;
  background: #f4f4f0;
  color: #050505;
  box-shadow: none;
}

.hero-secondary-cta {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: #f4f4f0;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.hero-secondary-cta:hover {
  border-color: #676a72;
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.hero-action-note {
  width: 100%;
  margin-top: 1px;
  color: #777a80;
  font-size: 0.66rem;
}

.hero-command {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(5, 5, 5, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero-command-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-command-head span,
.hero-proof-grid span {
  display: block;
  color: var(--muted-2);
  font-size: 0.61rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-command-head strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.hero-command-head small {
  color: #777a80;
  font-size: 0.65rem;
}

.hero-quick-links {
  display: grid;
  gap: 8px;
}

.hero-quick-link {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #24252a;
  border-radius: 14px;
  background: #0d0e10;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.hero-quick-link:hover {
  border-color: #4b4d54;
  background: #141518;
  transform: translateX(3px);
}

.hero-quick-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #2c2d32;
  border-radius: 11px;
  background: #17181b;
}

.hero-quick-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-quick-copy {
  min-width: 0;
}

.hero-quick-copy strong {
  display: block;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-quick-copy small {
  display: block;
  margin-top: 3px;
  color: #777a80;
  font-size: 0.63rem;
}

.hero-quick-arrow {
  color: #85878d;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.hero-proof-grid article {
  min-width: 0;
  padding: 11px 9px;
  border: 1px solid #222328;
  border-radius: 12px;
  background: #09090a;
}

.hero-proof-grid strong {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 0.86rem;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-proof-grid span {
  font-size: 0.5rem;
  letter-spacing: 0.07em;
}

.active-discount-banner {
  max-width: 410px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

/* Main content */
.public-service-search,
.site-highlights,
.trust-panel,
.services-overview {
  margin-top: 18px;
}

.public-service-search {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #0b0b0c;
  box-shadow: none;
}

.public-service-search-heading h2 {
  margin-top: 6px;
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  letter-spacing: -0.05em;
}

.public-service-search-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.public-service-search-box {
  min-height: 58px;
  border-color: #34363c;
  border-radius: 16px;
  background: #070708;
}

.public-service-search-box:focus-within {
  border-color: #f4f4f0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.public-service-search-box input {
  font-size: 0.92rem;
}

.public-service-search-results {
  z-index: 220;
  border-color: #34363c;
  border-radius: 18px;
  background: #101113;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.72);
}

.site-highlights {
  padding: 22px;
  border-color: var(--line);
  border-radius: 26px;
  background: #0b0b0c;
  box-shadow: none;
}

.site-highlights-head h2,
.services-overview-head h2 {
  font-size: clamp(1.4rem, 2.7vw, 2.05rem);
  font-weight: 660;
  letter-spacing: -0.05em;
}

.site-highlights-grid {
  gap: 10px;
  margin-top: 18px;
}

.site-highlight-card {
  min-height: 154px;
  padding: 18px;
  border-color: #24252a;
  border-radius: 18px;
  background: #0f1012;
}

.site-highlight-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border: 0;
  border-radius: 11px;
  background: #f4f4f0;
  color: #050505;
  font-size: 0.8rem;
}

.site-highlight-card strong {
  font-size: 0.86rem;
}

.site-highlight-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.trust-panel {
  gap: 10px;
}

.trust-accordion,
.trust-card-test {
  border-color: var(--line);
  border-radius: 20px;
  background: #0b0b0c;
}

.trust-card {
  border-color: #25262b;
  background: #0f1012;
}

.trust-contact {
  border-radius: 12px;
}

.services-overview {
  padding-top: 34px;
}

.services-overview-head {
  margin: 0 2px 18px;
}

.services-overview-head p {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Catalog */
.platform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.platform-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border-color: var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 48%),
    #0d0e10;
  box-shadow: none;
}

.platform-card:hover {
  border-color: #55575e;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 48%),
    #121315;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.platform-mark {
  width: 44px;
  height: 44px;
  margin-bottom: auto;
  border-color: #2c2e33;
  border-radius: 13px;
  background: #17181b;
}

.platform-mark svg {
  width: 23px;
  height: 23px;
}

.platform-name {
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.platform-meta {
  padding-right: 24px;
  color: #81848a;
  font-size: 0.69rem;
}

.platform-card .arrow {
  right: 17px;
  bottom: 17px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #2c2e33;
  border-radius: 10px;
  background: #151619;
  font-size: 0.9rem;
}

.platform-card--german {
  grid-column: span 2;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 52%),
    #111214;
}

.german-card-note {
  color: #a2a4a9;
}

.spotify-promo-card {
  min-height: 118px;
  margin-top: 18px;
  padding: 18px;
  border-color: var(--line);
  border-radius: 22px;
  background: #0d0e10;
  box-shadow: none;
}

.section-head {
  position: sticky;
  top: 12px;
  z-index: 80;
  min-height: 72px;
  margin: 0 0 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 8, 9, 0.95);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.38);
}

.back-btn {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-color: #303238;
  border-radius: 13px;
  background: #111214;
}

.section-title h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 680;
  letter-spacing: -0.045em;
}

.section-title p {
  color: var(--muted);
  font-size: 0.75rem;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.category-btn {
  min-height: 118px;
  padding: 16px;
  border-color: var(--line);
  border-radius: 18px;
  background: #0d0e10;
  box-shadow: none;
}

.category-btn strong {
  font-size: 0.9rem;
}

.category-btn span {
  color: #81848a;
  font-size: 0.68rem;
}

.sort-bar {
  margin-bottom: 14px;
  padding: 10px;
  border-color: var(--line);
  border-radius: 17px;
  background: #0b0b0c;
}

.sort-button {
  min-height: 38px;
  border-radius: 10px;
}

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

.service-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-color: var(--line);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.04), transparent 45%),
    #0d0e10;
  box-shadow: none;
}

.service-card::before {
  top: 18px;
  bottom: auto;
  width: 30px;
  height: 2px;
  border-radius: 99px;
  background: #efefec;
}

.service-card:hover {
  border-color: #4b4d54;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.service-title {
  padding-top: 16px;
}

.service-title h3 {
  font-size: 0.94rem;
  font-weight: 680;
  line-height: 1.42;
}

.copy-id {
  min-height: 34px;
  margin-top: 12px;
  border-color: #33353b;
  background: #151619;
  font-size: 0.68rem;
}

.features {
  gap: 6px;
  margin-top: 15px;
}

.feature {
  padding: 6px 8px;
  border-color: #27282d;
  border-radius: 8px;
  background: #0a0a0b;
  color: #aeb0b4;
  font-size: 0.65rem;
}

.price-row {
  margin-top: auto;
  padding-top: 16px;
  border-color: #24252a;
}

.price-label {
  color: #767980;
  font-size: 0.65rem;
}

.price {
  font-size: 1.18rem;
}

.empty,
.checker-card,
.checker-info,
.manual-check {
  border-color: var(--line);
  background: #0d0e10;
  box-shadow: none;
}

/* Fixed navigation */
.social-bottom-nav {
  width: min(calc(100vw - 24px), 560px);
  min-height: 68px;
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(10, 10, 11, 0.97);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.social-nav-item {
  min-height: 52px;
  border-radius: 14px;
  color: #73767c;
}

.social-nav-item.active {
  background: #f4f4f0;
  color: #050505;
}

.social-nav-item.active::after {
  display: none;
}

.social-nav-item > span:last-child {
  font-size: 0.58rem;
}

/* Entry and legal modals */
.math-gate {
  padding: 20px;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.12), transparent 34rem),
    rgba(3, 3, 3, 0.985);
}

.math-gate-card {
  width: min(100%, 460px);
  padding: 30px;
  border-color: #2f3035;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 48%),
    #0c0c0d;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.7);
}

.math-gate-logo {
  font-size: 0.75rem;
  letter-spacing: 0.26em;
}

.math-gate-badge {
  border-color: #303238;
  background: #111214;
}

.math-gate h1 {
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 680;
}

.math-problem {
  border-color: #303238;
  background: #070708;
  font-family: var(--font-geist-mono, "SFMono-Regular"), Consolas, monospace;
}

#math-answer {
  min-height: 54px;
  border-color: #34363c;
  background: #070708;
}

.math-consent-row {
  border-color: #2b2d32;
  background: #0d0e10;
}

.privacy-modal,
.profile-modal {
  border-color: #34363c;
  background: #0c0c0d;
}

.privacy-modal-content section + section {
  border-color: #25262b;
}

/* Owner dashboard */
.owner-backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.owner-dashboard {
  width: min(1180px, calc(100vw - 24px));
  border-color: #34363c;
  border-radius: 28px;
  background: #0b0b0c;
}

.owner-dashboard .owner-header,
.owner-dashboard .owner-stats article,
.owner-dashboard .owner-quick-order,
.owner-dashboard .owner-list-section,
.owner-dashboard .owner-profile-card,
.owner-dashboard .owner-service-card,
.owner-dashboard .owner-discount-card,
.owner-dashboard .owner-ranking-card {
  border-color: #25262b;
  background: #0f1012;
}

.owner-dashboard .owner-primary,
.owner-dashboard .owner-add-order {
  border-color: #f4f4f0;
  background: #f4f4f0;
  color: #050505;
}

.owner-dashboard input,
.owner-dashboard textarea,
.owner-dashboard select {
  border-color: #34363c;
  background: #09090a;
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 14px;
  }

  .hero-command-head {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .hero-proof-grid {
    margin-top: 0;
  }

  .platform-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100%, calc(100% - 28px));
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .hero {
    padding: 18px;
    border-radius: 25px;
  }

  .hero-topline {
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.8rem);
    line-height: 0.91;
  }

  .hero-command {
    display: block;
  }

  .hero-command-head {
    margin-bottom: 14px;
  }

  .hero-proof-grid {
    margin-top: 14px;
  }

  .public-service-search {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
  }

  .platform-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-card {
    min-height: 160px;
  }

  .platform-card--german {
    grid-column: 1 / -1;
  }

  .site-highlights {
    padding: 18px;
    border-radius: 22px;
  }

  .site-highlights-grid {
    grid-template-columns: 1fr;
  }

  .site-highlight-card {
    min-height: 0;
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px;
  }

  .site-highlight-icon {
    margin: 0;
  }

  .section-head {
    top: 8px;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100%, calc(100% - 20px));
  }

  .hero {
    padding: 16px;
    border-radius: 22px;
  }

  .hero .eyebrow {
    font-size: 0.61rem;
    letter-spacing: 0.13em;
  }

  .hero-live {
    padding: 0 9px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13.3vw, 4rem);
  }

  .hero-kicker {
    margin-top: 20px;
    font-size: 0.98rem;
  }

  .hero .subtitle {
    font-size: 0.82rem;
  }

  .hero-primary-cta,
  .hero-secondary-cta {
    width: 100%;
  }

  .hero-action-note {
    text-align: center;
  }

  .hero-command {
    padding: 14px;
    border-radius: 18px;
  }

  .hero-proof-grid article {
    padding: 10px 7px;
  }

  .hero-proof-grid strong {
    font-size: 0.78rem;
  }

  .hero-proof-grid span {
    font-size: 0.45rem;
  }

  .platform-grid {
    gap: 8px;
  }

  .platform-card {
    min-height: 148px;
    padding: 14px;
    border-radius: 18px;
  }

  .platform-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .platform-name {
    margin-top: 18px;
    font-size: 0.92rem;
  }

  .platform-meta {
    font-size: 0.61rem;
  }

  .category-btn {
    min-height: 96px;
    padding: 13px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .sort-bar {
    padding: 8px;
  }

  .sort-buttons {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sort-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .math-gate {
    padding: 10px;
  }

  .math-gate-card {
    padding: 22px 16px 18px;
    border-radius: 22px;
  }

  .owner-dashboard {
    width: calc(100vw - 12px);
    border-radius: 20px;
  }
}

@media (max-width: 350px) {
  .platform-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .platform-card--german {
    grid-column: auto;
  }
}

@media (hover: none), (pointer: coarse) {
  .hero-quick-link:hover,
  .hero-secondary-cta:hover,
  .platform-card:hover,
  .service-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
