/* ============================================================
   ROMATIONAL.COM — MARKETING SITE STYLES
   Bold. Editorial. Layered. The idea is the protagonist.
   ============================================================ */

/* ---------- NAV (minimal) ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .logotype {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.site-nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-nav-cta {
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  transition: opacity var(--t-fast);
}

.site-nav-cta:hover {
  opacity: 0.85;
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--button-highlight);
  color: var(--text);
  transform: rotate(12deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Show the right icon based on current theme.
   data-theme attribute is set by theme.js on <html> */
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon { display: block; }

/* If no manual theme set and system is dark, show sun (offer light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- HERO ---------- */
.site-hero {
  position: relative;
  padding: clamp(80px, 14vw, 180px) 0 clamp(60px, 10vw, 140px);
  overflow: hidden;
}

.site-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(75, 219, 196, 0.18), transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 75%, rgba(254, 26, 104, 0.14), transparent 65%);
}

[data-theme="dark"] .site-hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(75, 219, 196, 0.10), transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 75%, rgba(254, 26, 104, 0.10), transparent 65%);
}

.site-hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.site-hero-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--brand-gradient);
  display: inline-block;
}

.site-hero-title {
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: var(--space-5);
  max-width: 14ch;
}

.site-hero-title .logotype {
  font-size: inherit;
  letter-spacing: inherit;
}

.site-hero-sub {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 28ch;
  margin-bottom: var(--space-7);
}

.site-hero-sub strong {
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-hero-meta {
  position: absolute;
  bottom: 40px;
  right: 40px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .site-hero-meta { display: none; }
}

/* ---------- SECTION SHELL ---------- */
.site-section {
  position: relative;
  padding: clamp(70px, 10vw, 140px) 0;
}

.site-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.site-section-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-section-eyebrow .num {
  font-feature-settings: "tnum";
  color: var(--text);
}

.site-section-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
  display: inline-block;
}

.site-section-title {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-6);
  max-width: 18ch;
}

/* ---------- "THE IDEA" — layered text block ---------- */
.idea-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

@media (max-width: 880px) {
  .idea-stack { grid-template-columns: 1fr; gap: var(--space-6); }
}

.idea-statement {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.idea-statement em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.idea-body {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.idea-body p {
  max-width: 50ch;
}

/* ---------- THREE LAYERS — magazine-style grid ---------- */
.layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 880px) {
  .layers { grid-template-columns: 1fr; }
}

.layer {
  background: var(--bg-elevated);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition: background var(--t-base);
  min-height: 380px;
}

.layer:hover {
  background: var(--bg);
}

.layer-num {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.layer-name {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.layer-name .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 4px;
}

.layer-1 .dot { background: var(--brand-teal); }
.layer-2 .dot { background: var(--brand-orange); }
.layer-3 .dot { background: var(--brand-pink); }

.layer-question {
  font-size: var(--fs-md);
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.layer-desc {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  margin-top: auto;
}

/* ---------- WHO IT'S FOR — full-bleed bold statement ---------- */
.who-band {
  background: var(--text);
  color: var(--bg);
  padding: clamp(56px, 7vw, 96px) 0;
}

.who-band-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.who-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: var(--space-4);
  color: var(--bg);
}

/* Critical: override the global heading color rule from brand.css,
   which sets h2 color to var(--text). On the dark band we need the
   inverse — var(--bg) acts as the foreground here. */
.who-band .who-statement,
.who-band h2 {
  font-size: clamp(32px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 32ch;
  margin-bottom: var(--space-6);
  color: var(--bg);
}

.who-statement .strike {
  position: relative;
  display: inline-block;
  opacity: 0.5;
}

.who-statement .strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 4px;
  background: var(--brand-gradient);
  transform: rotate(-2deg);
}

.who-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-6);
  max-width: 1000px;
  color: var(--bg);
}

@media (max-width: 720px) {
  .who-list { grid-template-columns: 1fr; }
}

.who-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  font-weight: 500;
  opacity: 0.9;
  color: var(--bg);
}

.who-item-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gradient);
  flex-shrink: 0;
  transform: translateY(-3px);
}

/* ---------- PRIVACY PROMISE — quiet, declarative ---------- */
.privacy {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.privacy-line {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.018em;
  margin-bottom: var(--space-5);
  color: var(--text);
}

.privacy-line strong {
  font-weight: 700;
  color: var(--text);
}

.privacy-promise {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: var(--space-7);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- INVITATION — final CTA ---------- */
.invite {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}

.invite::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 136, 3, 0.10), transparent 60%);
  pointer-events: none;
}

[data-theme="dark"] .invite::before {
  background: radial-gradient(ellipse at center, rgba(255, 136, 3, 0.07), transparent 60%);
}

.invite-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.invite-line {
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-5);
}

.invite-line-2 {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-muted);
  margin-bottom: var(--space-7);
}

.invite-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 40px;
  font-size: var(--fs-md);
  font-weight: 700;
  color: #FFFFFF;
  background: var(--brand-gradient);
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 48px rgba(254, 26, 104, 0.25);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  letter-spacing: -0.005em;
}

.invite-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 56px rgba(254, 26, 104, 0.35);
}

.invite-cta svg {
  width: 20px;
  height: 20px;
}

.invite-secondary {
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.invite-secondary a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--brand-pink);
}

.invite-tertiary {
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.invite-tertiary a {
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}

.invite-tertiary a:hover {
  color: var(--text);
  text-decoration-color: var(--brand-teal);
}

/* ---------- DIVIDERS ---------- */
.section-divider {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section-divider hr {
  height: 1px;
  border: none;
  background: var(--border);
  margin: 0;
}

.gradient-rule {
  height: 3px;
  background: var(--brand-gradient);
  border: none;
  max-width: 80px;
  margin: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: var(--space-7) 0 var(--space-5);
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr; }
}

.footer-block-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.footer-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-block a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  transition: color var(--t-fast);
}

.footer-block a:hover {
  color: var(--text);
}

.footer-brand .logotype {
  font-size: 28px;
  margin-bottom: var(--space-3);
  display: inline-block;
}

.footer-brand-line {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 36ch;
  line-height: 1.5;
}

.footer-legal {
  border-top: 1px solid var(--border);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  font-size: var(--fs-xs);
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.footer-legal-mark {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- ENTRANCE ANIMATIONS ---------- */
/* Progressive enhancement: content is visible by default.
   The 'js-reveal' class is added to <html> by site.js BEFORE
   the IntersectionObserver runs, which hides reveals until they
   scroll into view. If JS fails, content remains visible. */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--t-bezier), transform 700ms var(--t-bezier);
  will-change: opacity, transform;
}

.js-reveal .reveal.in {
  opacity: 1;
  transform: none;
}

/* Safety net: any reveal that's still hidden 1.5s after page load
   forces itself visible. Belt and suspenders for the observer. */
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
}
