:root {
  --bg: #0b0c0e;
  --bg-elevated: #121418;
  --bg-panel: #16191e;
  --border: rgba(200, 155, 60, 0.22);
  --border-strong: rgba(200, 155, 60, 0.48);
  --gold: #c89b3c;
  --gold-soft: #d4b06a;
  --gold-dim: rgba(200, 155, 60, 0.12);
  --text: #f3f1ec;
  --text-muted: #a8a59c;
  --text-dim: #7a776f;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  --radius: 1rem;
  --max: 56rem;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --pad-x: clamp(1rem, 3.5vw, 1.75rem);
}

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

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

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: clamp(0.94rem, 0.25vw + 0.88rem, 1.02rem);
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(720px 360px at 50% -8%, rgba(200, 155, 60, 0.1), transparent 55%),
    linear-gradient(180deg, #0e1013 0%, var(--bg) 48%, #090a0c 100%);
  overflow-x: hidden;
}

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

a {
  color: var(--gold-soft);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3.5rem;
  z-index: 1000;
  padding: 0.55rem 0.9rem;
  border-radius: 0.4rem;
  background: var(--gold);
  color: #111;
  font-weight: 600;
}

.skip-link:focus {
  top: calc(0.75rem + var(--safe-top));
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.page {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding:
    calc(var(--safe-top) + clamp(0.85rem, 2vh, 1.4rem))
    calc(var(--safe-right) + var(--pad-x))
    calc(var(--safe-bottom) + clamp(0.65rem, 1.5vh, 1rem))
    calc(var(--safe-left) + var(--pad-x));
}

.gateway {
  flex: 1 1 auto;
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2vh, 1.35rem);
  text-align: center;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 1.2vh, 0.85rem);
  max-width: 40rem;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.4rem, 0.9vh, 0.6rem);
}

.brand-logo {
  width: clamp(3.55rem, 6vh, 5rem);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 0.9rem;
  box-shadow: 0 0 0 1px rgba(200, 155, 60, 0.28), 0 10px 28px rgba(0, 0, 0, 0.35);
}

.brand-wordmark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  line-height: 1;
}

.brand-wordmark__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.1vh + 0.72rem, 1.35rem);
  letter-spacing: 0.22em;
  color: var(--gold);
  text-indent: 0.22em; /* optical balance with letter-spacing */
}

.brand-wordmark__platform {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.62rem, 0.45vh + 0.48rem, 0.74rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-indent: 0.34em;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.4vh + 0.7rem, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.intro {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 0.55vh + 0.75rem, 1.02rem);
  line-height: 1.55;
}

.product-shell {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.15rem);
  background:
    linear-gradient(160deg, rgba(200, 155, 60, 0.08), transparent 42%),
    var(--bg-panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.product {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 1.1vh, 0.8rem);
  padding: clamp(1rem, 2.2vh, 1.45rem) clamp(0.95rem, 2vw, 1.35rem);
}

.product-divider {
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 8%,
    rgba(200, 155, 60, 0.35) 50%,
    transparent 92%
  );
}

.product-name {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 18.5rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--gold), #b8892f);
  color: #111315;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(200, 155, 60, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.product-btn:hover {
  color: #111315;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 155, 60, 0.22);
  filter: brightness(1.03);
}

.product-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
}

.product-btn__icon svg {
  display: block;
}

.product-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  width: 100%;
  max-width: 22rem;
  text-align: center;
}

.product-points li {
  color: var(--text-muted);
  font-size: clamp(0.82rem, 0.45vh + 0.72rem, 0.92rem);
  line-height: 1.45;
}

.slogan {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.4vh + 0.55rem, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.contact-item:hover {
  border-color: var(--border-strong);
  color: var(--gold-soft);
  background: var(--gold-dim);
}

.contact-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.site-footer {
  flex: 0 0 auto;
  width: min(100%, var(--max));
  margin-inline: auto;
  margin-top: clamp(0.55rem, 1.4vh, 1rem);
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem 1rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--gold-soft);
}

/* Desktop one-viewport density */
@media (min-width: 900px) and (min-height: 740px) {
  .page {
    height: 100dvh;
    height: 100svh;
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  .headline {
    font-size: clamp(1.55rem, 2vh + 0.55rem, 2.1rem);
  }

  .product {
    padding: 0.9rem 1.1rem;
  }

  .intro {
    font-size: 0.92rem;
  }
}

/* Mobile / tablet stack */
@media (max-width: 799px) {
  .gateway {
    justify-content: flex-start;
    padding-block: 0.35rem 0.75rem;
    gap: 1.1rem;
  }

  .product-shell {
    grid-template-columns: 1fr;
  }

  .product-divider {
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 6%,
      rgba(200, 155, 60, 0.35) 50%,
      transparent 94%
    );
  }

  .product-btn {
    max-width: none;
    min-height: 2.9rem;
  }

  .contact {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-item {
    justify-content: center;
    min-height: 2.75rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .headline {
    font-size: 1.55rem;
  }

  .contact-item span {
    font-size: 0.82rem;
  }
}

/* Landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .gateway {
    justify-content: flex-start;
    gap: 0.7rem;
  }

  .brand-logo {
    width: 3rem;
  }

  .brand-wordmark__name {
    font-size: 0.95rem;
  }

  .brand-wordmark__platform {
    font-size: 0.58rem;
  }

  .product-shell {
    grid-template-columns: 1fr auto 1fr;
  }

  .product-divider {
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      transparent 8%,
      rgba(200, 155, 60, 0.35) 50%,
      transparent 92%
    );
  }

  .product-points li {
    font-size: 0.78rem;
  }
}

/* Shared utility for legal/404 pages */
.page-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin: 0 0 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8892f);
  color: #111315;
}

.btn-primary:hover {
  color: #111315;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.6s ease forwards;
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
