/* GreeksSurge company site — CSP light tokens, dense finance-grid layout */
:root {
  --ds-bg-body: #f0f3f5;
  --ds-bg-card: #ffffff;
  --ds-border: #d1d1d1;
  --ds-text-main: #333333;
  --ds-text-muted: #666666;
  --ds-blue: #0066cc;
  --ds-compliance-red: #8b0000;
  --ds-highlight: #00d1ff;
  --ds-header-bg: #ffffff;
  --ds-header-text: #0f172a;
  --ds-header-border: #e2e8f0;
  --ds-tagline: #d97706;
  --ds-danger: #dc2626;
  --pad-x: clamp(1rem, 2.5vw, 1.5rem);
  --content-w: 95%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ds-text-main);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    linear-gradient(90deg, rgba(15, 30, 55, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(15, 30, 55, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--ds-bg-body);
  padding-bottom: calc(5vh + 12px);
}

.shell {
  width: var(--content-w);
  margin-inline: auto;
}

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

img {
  display: block;
  max-width: 100%;
}

.disclaimer-banner {
  width: 100%;
  background: var(--ds-compliance-red);
  height: 26px;
  min-height: 26px;
  padding: 0;
  flex-shrink: 0;
}

.disclaimer-banner__text {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
}

.disclaimer-banner__sep {
  opacity: 0.6;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: var(--content-w);
  margin-inline: auto;
  background: var(--ds-header-bg);
  border-bottom: 1px solid var(--ds-header-border);
  padding: 0.5rem 0;
}

/* full-bleed white header without covering the red bar above */
body > .site-header {
  box-shadow: 0 1px 0 100vmax var(--ds-header-bg);
  clip-path: inset(0 -100vmax -1px -100vmax);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ds-header-text);
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand__accent {
  background: linear-gradient(90deg, #3b82f6 0%, #00d1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  margin-left: 1px;
}

.brand__tagline {
  font-size: 0.7rem;
  color: var(--ds-tagline);
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.35px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.header-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ds-blue) !important;
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover {
  color: #004c99 !important;
}

.hero {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 0.85rem;
  width: var(--content-w);
  margin: 0 auto;
  padding: 1.35rem 0 1.15rem;
}

.hero__rail {
  border-radius: 999px;
  background: linear-gradient(180deg, #3b82f6 0%, #00d1ff 55%, #d97706 100%);
}

.hero__content {
  min-width: 0;
}

.hero__tagline {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ds-header-text);
}

.publisher-disclaimer__text {
  margin: 0.7rem 0 0;
  width: 100%;
  max-width: none;
  color: var(--ds-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.publisher-disclaimer__text strong:not(.publisher-intro__danger) {
  color: var(--ds-header-text);
  font-weight: 700;
}

.publisher-intro__danger {
  color: var(--ds-danger) !important;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.95rem;
  border-radius: 0.35rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(90deg, #3b82f6 0%, #00d1ff 100%);
  color: #041018;
}

.btn--ghost {
  border: 1px solid var(--ds-border);
  color: var(--ds-header-text);
  background: var(--ds-bg-card);
}

.btn--ghost:hover {
  border-color: var(--ds-highlight);
  color: var(--ds-blue);
}

.products {
  width: var(--content-w);
  margin: 0 auto;
  padding: 0.85rem 0 1.75rem;
}

.products__head {
  margin-bottom: 0.85rem;
}

.section-kicker {
  margin: 0 0 0.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ds-blue);
}

.products h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
  color: var(--ds-header-text);
  font-weight: 800;
}

.product-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.product-panel {
  background: var(--ds-bg-card);
  border: 1px solid var(--ds-border);
  border-radius: 0.45rem;
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  min-height: 100%;
}

.product-panel--live {
  border-top: 3px solid var(--ds-highlight);
}

.product-panel--dev {
  border-top: 3px solid var(--ds-tagline);
  opacity: 0.96;
}

.product-panel--blurred {
  position: relative;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

.product-panel--blurred .product-panel__head,
.product-panel--blurred .product-panel__body {
  filter: blur(5px);
  opacity: 0.55;
}

.product-panel--blurred .product-panel__veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ds-tagline);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.product-panel__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-panel__status {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
}

.product-panel--live .product-panel__status {
  color: #0e7490;
}

.product-panel--dev .product-panel__status {
  color: var(--ds-tagline);
}

.product-panel__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.product-panel__link,
.product-panel__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.product-panel__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ds-header-text);
}

.product-panel__tagline {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ds-tagline);
  letter-spacing: 0.3px;
}

.product-panel__desc {
  margin: 0.15rem 0 0;
  color: var(--ds-text-muted);
  font-size: 0.9rem;
}

.product-panel__channels {
  margin: 0.45rem 0 0;
  color: var(--ds-header-text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.product-panel__go {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ds-blue);
}

.product-panel__link:hover .product-panel__go {
  text-decoration: underline;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.85rem;
  margin-top: auto;
  padding-top: 1.35rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.35rem;
  background: #111827;
  color: #f8fafc;
  border: 1px solid #1f2937;
  user-select: none;
  text-decoration: none;
  box-sizing: border-box;
}

.store-badge--live {
  background: linear-gradient(90deg, #0f766e 0%, #0f172a 100%);
  border-color: #14b8a6;
}

.store-badge--live:hover {
  filter: brightness(1.08);
}

.store-badge--official {
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  height: 2.75rem;
  background: transparent;
  border: none;
  cursor: default;
}

a.store-badge--official {
  cursor: pointer;
}

a.store-badge--official:hover {
  filter: brightness(1.05);
}

.store-badge__status {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.4rem);
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9a3412;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.store-badge__img {
  display: block;
  height: 2.75rem;
  width: auto;
}

.store-badge__img--play {
  height: 2.75rem;
}

.store-badge__mark {
  font-size: 1rem;
  line-height: 1;
  width: 1rem;
  text-align: center;
}

.store-badge__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.store-badge__eyebrow {
  font-size: 0.55rem;
  opacity: 0.8;
}

.store-badge__name {
  font-size: 0.8rem;
  font-weight: 700;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 5vh;
  min-height: 44px;
  max-height: 64px;
  display: flex;
  align-items: center;
  padding: 0;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem 1rem;
  width: var(--content-w);
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.footer-copy {
  margin: 0;
  justify-self: start;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  justify-self: center;
}

.footer-links a,
.footer-x,
.footer-email {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover,
.footer-x:hover,
.footer-email:hover {
  color: #00d1ff;
  text-decoration: none;
}

.footer-email {
  justify-self: end;
  white-space: nowrap;
}

.separator {
  opacity: 0.35;
  color: #3b82f6;
  font-size: 0.65rem;
}

/* Legal pages — CSP-aligned container layout (light theme) */
.legal-page {
  width: var(--content-w);
  max-width: 940px;
  margin: 0.85rem auto 1.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--ds-bg-card);
  border: 1px solid var(--ds-border);
  border-radius: 0.55rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.legal-page > .section-kicker {
  margin-bottom: 0.25rem;
}

.legal-page > h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ds-header-text);
  border-bottom: 1px solid var(--ds-header-border);
  padding-bottom: 0.75rem;
}

.legal-page .legal-meta {
  margin: 0.65rem 0 1rem;
  color: var(--ds-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-callout {
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-left: 5px solid var(--ds-danger);
  border-radius: 0.55rem;
  padding: 1rem 1.15rem;
  margin: 0 0 1.35rem;
}

.legal-callout h2 {
  margin: 0 0 0.45rem;
  color: var(--ds-danger);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-callout p {
  margin: 0;
  color: var(--ds-header-text);
  font-weight: 600;
  line-height: 1.6;
  font-size: 0.95rem;
}

.legal-callout ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.legal-callout li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--ds-header-text);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}

.legal-callout li:first-child {
  color: var(--ds-danger);
  font-weight: 800;
}

.legal-callout li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ds-danger);
  font-weight: 900;
}

.legal-section {
  margin: 0 0 1.75rem;
  scroll-margin-top: 5rem;
}

.legal-section h2 {
  margin: 0 0 0.65rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--ds-blue);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ds-header-text);
}

.legal-section p {
  margin: 0 0 0.75rem;
  color: var(--ds-text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.legal-section ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.legal-section a[href^="mailto:"] {
  color: var(--ds-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a[href^="mailto:"]:hover {
  color: #004c99;
}

@media (max-width: 900px) {
  .product-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .disclaimer-banner {
    width: 100%;
    height: 22px;
    min-height: 22px;
    padding: 0;
  }

  .brand__tagline {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .site-header {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 4px 1fr;
    gap: 0.65rem;
  }

  .publisher-disclaimer__text {
    max-width: 100%;
  }

  .hero__actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .store-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 0.75rem 0.65rem;
    padding-top: 0.5rem;
  }

  .store-badge--live {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .store-badge--official {
    height: auto;
    width: 100%;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
  }

  .store-badge__status {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    text-align: center;
  }

  .store-badge__img,
  .store-badge__img--play {
    height: 2.5rem;
  }

  .site-footer {
    position: static;
    height: auto;
    min-height: 0;
    max-height: none;
    z-index: auto;
    padding: 0.75rem 0.85rem 1rem;
  }

  .footer-meta {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.35rem;
  }

  .footer-copy,
  .footer-email {
    justify-self: center;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
