* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f3ec;
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: #ffffff;
  --line: #e8dfd0;
  --text: #1b2130;
  --muted: #6f7480;
  --gold: #c99a35;
  --gold-deep: #b9851a;
  --shadow: 0 18px 40px rgba(28, 30, 36, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(214, 190, 141, 0.20), transparent 34%),
    linear-gradient(180deg, #faf8f2 0%, #f4f0e8 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
}

.site-shell {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 16px 0 28px;
}

.topbar,
.ticker-card,
.feature-card,
.iframe-card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 223, 208, 0.9);
  box-shadow: var(--shadow);
}

.topbar {
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #cba655, #ba8621);
  box-shadow: 0 12px 20px rgba(191, 140, 42, 0.28);
}

.eyebrow,
.pill,
.feature-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: #a58335;
}

.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 0.95;
}

.top-actions,
.frame-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 0;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

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

.btn-light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.btn-gold {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 12px 24px rgba(191, 140, 42, 0.28);
}

.ticker-card {
  margin-top: 14px;
  border-radius: 22px;
  padding: 12px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  overflow: hidden;
}

.ticker-label,
.pill {
  background: #f1e8d7;
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
}

.ticker-viewport {
  overflow: hidden;
  flex: 1;
}

.ticker-track {
  display: flex;
  gap: 28px;
  min-width: max-content;
  color: var(--muted);
  animation: scrollTicker 34s linear infinite;
}

.ticker-track span::after {
  content: "•";
  margin-left: 28px;
  color: #b39a63;
}

@keyframes scrollTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.content-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.feature-card,
.iframe-card {
  border-radius: var(--radius-xl);
  padding: 18px;
}

.feature-header,
.frame-header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.surprise-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.feature-visual {
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(0deg, rgba(18, 21, 27, 0.40), rgba(18, 21, 27, 0.16)),
    url("https://images.unsplash.com/photo-1567899378494-47b22a2ae96a?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.feature-overlay {
  padding: 28px;
  max-width: 760px;
  color: #fff;
}

.feature-overlay h1 {
  margin: 10px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.feature-overlay p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
}

.mini-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.mini-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.mini-card p,
.frame-header h2,
.fallback-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.frame-header h2 {
  margin-top: 10px;
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.iframe-wrap {
  position: relative;
  margin-top: 8px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 900px;
}

.iframe-wrap iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  background: #fff;
}

.iframe-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(248,244,236,0.95));
}

.iframe-fallback.show {
  display: flex;
}

.fallback-box {
  max-width: 480px;
  text-align: center;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.fallback-box h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.fallback-box p {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .btn {
    flex: 1;
  }

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

  .feature-visual {
    min-height: 300px;
  }

  .iframe-wrap,
  .iframe-wrap iframe {
    min-height: 720px;
    height: 720px;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 16px, 1200px);
    padding-top: 12px;
  }

  .topbar,
  .ticker-card,
  .feature-card,
  .iframe-card {
    border-radius: 22px;
  }

  .topbar {
    padding: 16px;
  }

  .brand-name {
    font-size: 1.7rem;
  }

  .ticker-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ticker-track {
    animation-duration: 26s;
  }

  .feature-card,
  .iframe-card {
    padding: 14px;
  }

  .feature-overlay {
    padding: 18px;
  }

  .feature-overlay p {
    font-size: 0.96rem;
  }

  .iframe-wrap,
  .iframe-wrap iframe {
    min-height: 640px;
    height: 640px;
  }

  .btn {
    padding: 13px 18px;
    font-size: 0.95rem;
  }
}
