/* =========================================================
   Rogue Reefs — Master Stylesheet
   ---------------------------------------------------------
   Theme system:  CSS custom properties on [data-theme]
   Themes:        dark (default), light, purple, azure
   ========================================================= */


/* ====================== THEMES ========================== */

:root, [data-theme="dark"] {
  --bg-primary:    #0a1628;
  --bg-secondary:  #111d33;
  --bg-card:       rgba(255,255,255,.07);
  --bg-card-solid: #172137;
  --bg-input:      rgba(255,255,255,.08);
  --bg-overlay:    linear-gradient(180deg,rgba(5,15,35,.70) 0%,rgba(5,15,35,.50) 40%,rgba(5,15,35,.70) 100%);
  --nav-bg:        rgba(5,15,35,.88);
  --footer-bg:     rgba(5,10,25,.94);

  --text-primary:   #f0f0f0;
  --text-secondary: rgba(240,240,240,.7);
  --text-muted:     rgba(240,240,240,.45);

  --accent:        #4ec6e0;
  --accent-hover:  #3ab5d0;
  --accent-bg:     rgba(78,198,224,.15);
  --accent-border: rgba(78,198,224,.35);

  --border:        rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.20);

  --success:    #34d399;  --success-bg: rgba(52,211,153,.12);
  --error:      #f87171;  --error-bg:   rgba(248,113,113,.12);
  --warning:    #fbbf24;  --warning-bg: rgba(251,191,36,.12);

  --shadow:    0 4px 20px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.4);
}

[data-theme="light"] {
  --bg-primary:    #f1f5f9;
  --bg-secondary:  #e2e8f0;
  --bg-card:       rgba(255,255,255,.85);
  --bg-card-solid: #fff;
  --bg-input:      rgba(0,0,0,.04);
  --bg-overlay:    linear-gradient(180deg,rgba(241,245,249,.80) 0%,rgba(241,245,249,.55) 40%,rgba(241,245,249,.80) 100%);
  --nav-bg:        rgba(255,255,255,.92);
  --footer-bg:     #1e293b;

  --text-primary:   #1e293b;
  --text-secondary: rgba(30,41,59,.70);
  --text-muted:     rgba(30,41,59,.45);

  --accent:        #0891b2;
  --accent-hover:  #0e7490;
  --accent-bg:     rgba(8,145,178,.10);
  --accent-border: rgba(8,145,178,.30);

  --border:        rgba(0,0,0,.08);
  --border-strong: rgba(0,0,0,.18);

  --success:    #059669;  --success-bg: rgba(5,150,105,.08);
  --error:      #dc2626;  --error-bg:   rgba(220,38,38,.08);
  --warning:    #d97706;  --warning-bg: rgba(217,119,6,.08);

  --shadow:    0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
}

[data-theme="purple"] {
  --bg-primary:    #1a0a2e;
  --bg-secondary:  #231242;
  --bg-card:       rgba(255,255,255,.06);
  --bg-card-solid: #2a1650;
  --bg-input:      rgba(255,255,255,.07);
  --bg-overlay:    linear-gradient(180deg,rgba(26,10,46,.75) 0%,rgba(26,10,46,.50) 40%,rgba(26,10,46,.75) 100%);
  --nav-bg:        rgba(26,10,46,.90);
  --footer-bg:     rgba(15,5,30,.95);

  --text-primary:   #f0e6ff;
  --text-secondary: rgba(240,230,255,.72);
  --text-muted:     rgba(240,230,255,.42);

  --accent:        #c084fc;
  --accent-hover:  #a855f7;
  --accent-bg:     rgba(192,132,252,.15);
  --accent-border: rgba(192,132,252,.35);

  --border:        rgba(192,132,252,.10);
  --border-strong: rgba(192,132,252,.22);

  --success:    #86efac;  --success-bg: rgba(134,239,172,.10);
  --error:      #fca5a5;  --error-bg:   rgba(252,165,165,.10);
  --warning:    #fde68a;  --warning-bg: rgba(253,230,138,.10);

  --shadow:    0 4px 20px rgba(0,0,0,.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
}

[data-theme="azure"] {
  --bg-primary:    #0c1929;
  --bg-secondary:  #0f2440;
  --bg-card:       rgba(56,189,248,.06);
  --bg-card-solid: #132d4f;
  --bg-input:      rgba(255,255,255,.07);
  --bg-overlay:    linear-gradient(180deg,rgba(12,25,41,.75) 0%,rgba(12,25,41,.48) 40%,rgba(12,25,41,.75) 100%);
  --nav-bg:        rgba(12,25,41,.90);
  --footer-bg:     rgba(8,15,30,.95);

  --text-primary:   #e0f2fe;
  --text-secondary: rgba(224,242,254,.72);
  --text-muted:     rgba(224,242,254,.42);

  --accent:        #38bdf8;
  --accent-hover:  #0ea5e9;
  --accent-bg:     rgba(56,189,248,.15);
  --accent-border: rgba(56,189,248,.35);

  --border:        rgba(56,189,248,.10);
  --border-strong: rgba(56,189,248,.22);

  --success:    #34d399;  --success-bg: rgba(52,211,153,.10);
  --error:      #fb7185;  --error-bg:   rgba(251,113,133,.10);
  --warning:    #fbbf24;  --warning-bg: rgba(251,191,36,.10);

  --shadow:    0 4px 20px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.45);
}


/* ==================== RESET & BASE ====================== */

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg-primary);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  background: transparent;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }


/* ================= BACKGROUND SLIDESHOW ================= */

#bg-slideshow {
  position: fixed; inset: 0; z-index: 0;
  background: var(--bg-primary) center / cover no-repeat;
  transition: opacity 1.5s ease-in-out;
}
#bg-slideshow.fade-out { opacity: 0; }

#bg-overlay {
  position: fixed; inset: 0; z-index: 1;
  background: var(--bg-overlay);
}


/* ==================== SALE BANNER ======================= */

#sale-banner {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1100;
  background: var(--accent); color: #fff;
  text-align: center; padding: .5rem 1rem;
  font-size: .9rem; font-weight: 600; letter-spacing: .3px;
}
#sale-banner a { color: #fff; text-decoration: underline; font-weight: 700; margin-left: .5rem; }
#sale-banner a:hover { color: #e0f0ff; }


/* ==================== NAVIGATION ======================== */

#navbar {
  position: fixed; top: 2rem; left: 0; width: 100%; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 1.5rem; gap: 1rem;
}

/* Logo */
.nav-logo {
  display: inline-flex; align-items: center; gap: 0;
  font-size: 1.4rem; font-weight: 800; letter-spacing: .3px;
  color: var(--accent) !important; white-space: nowrap; text-decoration: none;
  transition: filter .3s;
}
.nav-logo .logo-text { margin-left: -.25rem; }
.nav-logo:hover { filter: none; }

.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 32px;
  filter: brightness(0) invert(1) opacity(.85) drop-shadow(0 0 8px rgba(78,198,224,.6)) drop-shadow(0 0 20px rgba(78,198,224,.3));
  transition: transform .3s, filter .3s;
}
.nav-logo:hover .logo-mark {
  transform: scale(1.1) rotate(-3deg);
  filter: brightness(0) invert(1) opacity(.9) drop-shadow(0 0 14px rgba(78,198,224,.7)) drop-shadow(0 0 28px rgba(78,198,224,.4));
}
.logo-mark svg, .logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-mark-sm { width: 28px; height: 24px; }

.logo-text { display: inline-flex; align-items: baseline; gap: .1rem; }
.logo-rogue {
  color: var(--accent); font-weight: 800; letter-spacing: .5px;
  text-shadow: 0 0 18px rgba(78,198,224,.25);
  transition: text-shadow .3s;
}
.nav-logo:hover .logo-rogue {
  text-shadow: 0 0 14px var(--accent), 0 0 28px rgba(78,198,224,.35);
}
.logo-reefs {
  color: var(--text-primary); font-weight: 300; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: .85em; opacity: .8;
  transition: text-shadow .3s;
}
.nav-logo:hover .logo-reefs {
  text-shadow: 0 0 18px var(--accent), 0 0 36px rgba(78,198,224,.5), 0 0 56px rgba(78,198,224,.25);
  opacity: 1;
}

.footer-logo {
  display: inline-flex; align-items: center; gap: 0;
  color: var(--accent); font-size: 1.05rem; margin-bottom: .85rem;
}
.footer-logo .logo-text { margin-left: -.15rem; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--text-primary);
  padding: .3rem 0; position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Nav dropdown (About > Mission) */
.nav-has-dropdown {
  position: relative;
}
.nav-has-dropdown > a {
  display: inline-flex; align-items: center; gap: .3rem;
}
.nav-dropdown-arrow {
  display: inline-block; width: .45em; height: .45em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .25s;
  margin-top: -.15em;
}
.nav-has-dropdown:hover .nav-dropdown-arrow,
.nav-has-dropdown.open .nav-dropdown-arrow { transform: rotate(-135deg); }
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--nav-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: .5rem 0; min-width: 170px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: 100;
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: .55rem 1.15rem;
  font-size: .88rem; white-space: nowrap;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: var(--accent-bg); }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px; transition: all .3s;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }


/* ================== THEME SWITCHER ====================== */

.theme-switcher { position: relative; }
.theme-toggle-btn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: .35rem .6rem; cursor: pointer; font-size: 1.1rem; line-height: 1;
  transition: border-color .25s; color: var(--text-primary);
}
.theme-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

.theme-icon-svg { width: 20px; height: 20px; display: block; }

.theme-dropdown {
  display: none; position: absolute; top: calc(100% + .5rem); right: 0;
  background: var(--bg-card-solid); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: .5rem; min-width: 140px;
  box-shadow: var(--shadow-lg); z-index: 2000;
}
.theme-dropdown.open { display: block; }

.theme-option {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  background: none; border: none; color: var(--text-primary);
  padding: .5rem .65rem; border-radius: 6px; cursor: pointer;
  font-size: .9rem; transition: background .2s;
}
.theme-option:hover { background: var(--accent-bg); }
.theme-option.active { background: var(--accent-bg); color: #94a3b8; font-weight: 600; }

.swatch {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 50%; border: 2px solid var(--border-strong);
}
.swatch-dark   { background: #0a1628; }
.swatch-light  { background: #e2e8f0; }
.swatch-purple { background: #7c3aed; }
.swatch-azure  { background: #0ea5e9; }


/* ==================== HERO SECTION ====================== */

.hero-section {
  position: relative; z-index: 2;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 8rem 1.5rem 4rem;
}

.hero-content { max-width: 860px; text-align: center; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
  line-height: 1.2; margin-bottom: .75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.highlight {
  color: var(--accent); display: inline-block;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .85; transform: scale(1.03); }
}

.hero-subtitle {
  font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2.5rem;
}
.hero-domain {
  color: #fff;
  font-weight: 700;
}
.hero-trust-line {
  font-size: .92rem;
  color: var(--text-muted);
  margin-top: -.75rem;
  margin-bottom: 2.5rem;
  letter-spacing: .02em;
}


/* ==================== SALE CARD ========================= */

.sale-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem 2rem; text-align: left;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sale-card h2 { font-size: 1.6rem; margin-bottom: 1.25rem; color: var(--accent); text-align: center; }
.sale-card h3 { font-size: 1.2rem; margin: 2rem 0 1rem; color: var(--accent); }

.sales-pitch { padding-left: 1.25rem; }
.sales-pitch li {
  position: relative; padding: .45rem 0 .45rem 1.2rem;
  line-height: 1.55; color: var(--text-secondary);
}
.sales-pitch li::before {
  /* \FE0E = text-presentation selector: without it phone browsers draw the
     check as a grey emoji glyph that ignores the accent color below (#501). */
  content: '\2714\FE0E'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.sales-link {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px dashed var(--accent);
  transition: border-color .25s, opacity .25s;
}
.sales-link:hover { border-bottom-style: solid; opacity: .85; }

/* ---------- Value-Card Grid (Why This Package?) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.value-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: .75rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.value-card-icon {
  width: 2.75rem; height: 2.75rem;
  margin: 0 auto 1rem;
  color: var(--accent);
}
.value-card-icon svg {
  width: 100%; height: 100%;
  stroke: currentColor; fill: none;
}
.value-card h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: .5rem;
}
.value-card p {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.package-intro {
  font-size: 1.05rem; color: var(--text-secondary);
  margin-bottom: 1.25rem; line-height: 1.6;
}

/* ---------- Buyer Outcomes Grid (What You Can Do) ---------- */
.buyer-outcomes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.outcome-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: border-color .3s, box-shadow .3s, transform .25s;
}
.outcome-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.outcome-icon {
  display: flex; justify-content: center; margin-bottom: .75rem;
}
.outcome-icon svg {
  width: 36px; height: 36px; stroke: var(--accent);
}
.outcome-card h4 {
  font-size: 1.05rem; color: var(--text-primary);
  margin: 0 0 .5rem;
}
.outcome-card p {
  font-size: .92rem; color: var(--text-secondary);
  line-height: 1.55; margin: 0;
}

/* ---------- Scarcity Banner ---------- */
.scarcity-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 180, 50, .08);
  border: 1px solid rgba(255, 180, 50, .35);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 .5rem;
}
.scarcity-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  stroke: #ffb432;
  margin-top: 2px;
}
.scarcity-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: .35rem;
}
.scarcity-text p {
  margin: 0;
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- What This Saves You (cost comparison) ---------- */
.saves-you-section {
  margin: 2rem 0 .5rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.saves-you-section h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
.saves-you-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .75rem;
}
.saves-you-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.saves-you-list li:last-child { border-bottom: none; }
.saves-you-cost {
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
  margin-left: 1rem;
}
.saves-you-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .75rem 0 .25rem;
  border-top: 2px solid var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.saves-you-total .saves-you-cost {
  color: var(--accent);
  font-size: 1.1rem;
}
.saves-you-note {
  margin: .75rem 0 0;
  font-size: .88rem;
  color: var(--text-muted);
  font-style: italic;
}

.terms-points { list-style: none; padding-left: .5rem; margin-top: .75rem; }
.terms-points li { padding: .4rem 0; line-height: 1.55; color: var(--text-secondary); }
.terms-points li strong { color: var(--text-primary); }


/* ==================== USE-CASE TAGS ===================== */

.use-cases { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.tag {
  background: var(--accent-bg); border: 1px solid var(--accent-border);
  color: var(--accent); padding: .35rem .85rem; border-radius: 999px;
  font-size: .88rem; white-space: nowrap;
}


/* ==================== CTA BUTTONS ======================= */

.cta-area {
  text-align: center; margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
}

/* Catalog-injected price + sale status (prod only — the host injects `offering`).
   Full-width flex rows so the price sits centered ABOVE the buttons instead of
   floating beside them (#505). */
.cta-price {
  width: 100%; margin: 0 0 .25rem; text-align: center;
  font-size: 2rem; font-weight: 800; color: var(--accent);
}
.cta-ribbon { width: 100%; margin: 0; text-align: center; font-weight: 700; color: var(--text-primary); }

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  color: #fff; font-size: 1.05rem; font-weight: 700;
  padding: .75rem 2rem; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .3s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); text-align: center;
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.3); color: #fff; }

.cta-secondary { background: transparent; border: 2px solid var(--accent); color: var(--accent); box-shadow: none; }
.cta-secondary:hover { background: var(--accent-bg); box-shadow: none; color: var(--accent); }

.cta-small { font-size: .9rem; padding: .55rem 1.4rem; }

.cta-note { width: 100%; margin-top: .5rem; font-size: .85rem; color: var(--text-muted); font-style: italic; }

.cta-confidence {
  width: 100%; margin-top: .75rem;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  font-size: .85rem; flex-wrap: wrap;
}
.cta-confidence a {
  color: var(--text-secondary); text-decoration: none;
  border-bottom: 1px dashed var(--border); padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.cta-confidence a:hover { color: var(--accent); border-color: var(--accent); }
.cta-confidence-dot { color: var(--text-muted); opacity: .5; }


/* ==================== CONTENT SECTIONS ================== */

.content-section {
  padding: 7rem 1.5rem 5rem; position: relative; z-index: 2;
}
.content-section.alt-bg { background: rgba(0,0,0,.15); }

.section-inner { max-width: 860px; margin: 0 auto; }
.section-inner h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--accent); }
.section-inner h3 { font-size: 1.3rem; color: var(--accent); margin: 1.5rem 0 .75rem; }
.section-inner h4 { font-size: 1.1rem; color: var(--accent); margin: 1.25rem 0 .5rem; }
.section-inner p  { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; }


/* =============== ABOUT PAGE (narrative) ================= */

.about-page .section-inner { max-width: 800px; }

.about-hero { text-align: center; margin-bottom: 3rem; }
.about-hero h2 { font-size: 2rem; line-height: 1.3; margin-bottom: 1rem; }

.about-lead {
  font-size: 1.1rem; color: var(--text-secondary);
  line-height: 1.7; max-width: 680px; margin: 0 auto;
}

.about-story-section {
  margin-bottom: 2.5rem; padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.about-story-section:last-of-type { border-bottom: none; }

.about-alt {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  margin-left: -1rem; margin-right: -1rem;
}

.about-story-text h3 { font-size: 1.35rem; margin-top: 0; margin-bottom: .75rem; color: var(--text-primary); }
.about-story-text p  { color: var(--text-secondary); line-height: 1.7; margin-bottom: .75rem; }
.about-cta-inline    { margin-top: 1rem; }

.about-features { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1rem; }
.about-feature { display: flex; align-items: flex-start; gap: 1rem; }
.about-feature-icon { font-size: 1.75rem; flex-shrink: 0; margin-top: .15rem; }
.about-feature strong { display: block; color: var(--text-primary); margin-bottom: .2rem; }
.about-feature p { margin: 0; font-size: .95rem; }

.about-cta-section { text-align: center; padding: 2.5rem 0 1rem; }
.about-cta-section h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.about-cta-section p  { color: var(--text-secondary); max-width: 560px; margin: 0 auto 1.5rem; line-height: 1.6; }
.about-cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }


/* ============== CARDS (mission, blog, domain) =========== */

.about-highlights,
.mission-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; margin-top: 2rem;
}

.blog-disclaimer {
  display: flex; align-items: flex-start; gap: .75rem;
  background: rgba(78, 198, 224, .08); border: 1px solid var(--accent);
  border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 2rem;
  color: var(--text-secondary); line-height: 1.55; font-size: .95rem;
}
.blog-disclaimer p { margin: 0; }
.disclaimer-icon { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

.about-card,
.mission-card,
.domain-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.75rem 1.5rem;
  transition: border-color .3s, box-shadow .3s;
}

.about-card:hover,
.mission-card:hover,
.domain-card:hover {
  border-color: var(--accent-border); box-shadow: var(--shadow);
}

.about-card h3, .mission-card h3 { margin-top: 0; }
.mission-card h3 { font-size: 1.6rem; text-align: center; }

/* Mission icons — inline SVGs */
.mission-icon {
  display: block; margin-bottom: .75rem; line-height: 1; text-align: center;
}
.mission-icon svg {
  width: 48px; height: 48px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ==================== BLOG LISTING ===================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Card link wrapper — removes default link styling */
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}

/* Card */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .3s;
}
.blog-card-link:hover .blog-card {
  border-color: var(--accent-border);
}

/* Card image */
.blog-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blog-card-link:hover .blog-card-image img {
  transform: scale(1.05);
}

/* Category badge on image */
.blog-card-category,
.blog-article-category {
  position: absolute;
  top: .85rem;
  left: .85rem;
  background: var(--accent);
  color: #000;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .7rem;
  border-radius: 4px;
  line-height: 1;
}

/* Card body */
.blog-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Card meta (date + read time) */
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
}
.meta-separator {
  color: var(--text-muted);
  opacity: .5;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0 0 .6rem;
  color: var(--text-primary);
}

.blog-card-excerpt {
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  transition: color .2s;
}
.blog-card-link:hover .blog-read-more {
  color: var(--accent-hover, var(--accent));
}

/* ==================== BLOG ARTICLE ===================== */

.blog-article-inner {
  max-width: 800px;
}

/* Back link */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--accent);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: opacity .2s;
}
.blog-back-link:hover { opacity: .75; }
.blog-back-link svg { stroke: var(--accent); }

/* Hero image */
.blog-article-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.blog-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article header */
.blog-article-header {
  margin-bottom: 1.5rem;
}
.blog-article-header h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 .75rem;
  color: var(--text-primary);
}
.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.meta-author {
  font-weight: 600;
  color: var(--accent);
}

/* Article body */
.blog-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.blog-article-body p {
  margin: 0 0 1.5rem;
}

/* Article footer */
.blog-article-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}



/* ==================== PHOTO GALLERY ===================== */

.gallery-inner { max-width: 1100px; }

.gallery-intro {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: .5rem;
}

.gallery-watermark-note {
  font-size: .9rem; color: var(--text-secondary); line-height: 1.55;
  background: rgba(78, 198, 224, .08); border-left: 3px solid var(--accent);
  padding: .6rem 1rem; border-radius: 0 6px 6px 0; margin-top: .5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: .75rem; margin-top: 2rem;
}

.gallery-item {
  position: relative; overflow: hidden;
  border-radius: 10px; border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }
.gallery-item:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
/* Shimmer placeholder while image loads */
.gallery-item::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    110deg,
    var(--bg-secondary) 30%,
    var(--bg-primary) 50%,
    var(--bg-secondary) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
.gallery-item.loaded::before { display: none; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s, opacity .4s;
  opacity: 0;                /* hidden until loaded */
  position: relative; z-index: 2;   /* above shimmer */
}
.gallery-item.loaded img { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item[data-index="27"] img { object-position: center 90%; }

.gallery-item .gallery-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; padding: 2rem .75rem .6rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .3px;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-label { opacity: 1; }

/* Lightbox overlay */
.gallery-lightbox {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
  padding: 2rem; cursor: zoom-out;
}
.gallery-lightbox.active { display: flex; }
.gallery-lightbox img {
  max-width: 90vw; max-height: 85vh; border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; color: #fff;
  font-size: 2.5rem; cursor: pointer; line-height: 1;
  opacity: .7; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  position: absolute; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%); color: rgba(255,255,255,.7);
  font-size: .9rem; text-align: center; white-space: nowrap;
}

/* Lightbox navigation arrows */
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 2.5rem; line-height: 1;
  width: 48px; height: 64px; border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: .6; transition: opacity .2s, background .2s;
  z-index: 3001;
}
.lightbox-arrow:hover { opacity: 1; background: rgba(0,0,0,.6); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }


/* ==================== CONTACT PAGE ====================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2.25rem;
}

.contact-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.required-star { color: var(--error); }

.contact-submit-btn {
  width: 100%;
  margin-top: .5rem;
  padding: .9rem 1.5rem;
  font-size: 1.05rem;
}

/* Honeypot — completely hidden */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Math CAPTCHA */
.captcha-group { max-width: 320px; }
.captcha-question {
  margin-bottom: .5rem;
  font-size: .95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.captcha-question strong {
  color: var(--accent);
  font-size: 1.05rem;
}

/* Sidebar */
.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}
.contact-sidebar-card p {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.contact-detail {
  padding: .75rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.contact-detail-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
}
.contact-detail a,
.contact-detail span {
  font-size: .95rem;
  color: var(--text-primary);
}
.contact-detail a:hover { color: var(--accent); }

/* Buyer Disclaimer */
.contact-disclaimer {
  background: rgba(56,189,248,.06);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}
.contact-disclaimer h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .5rem;
}
.contact-disclaimer p {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.65;
}


/* ===================== DOMAIN LISTING =================== */

.domain-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.domain-desc { margin-bottom: 1rem; }
.domain-link { font-weight: 600; }
.domain-price { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin: 1rem 0; }

.included-list li,
.terms-list li { padding: .3rem 0; color: var(--text-secondary); font-size: .95rem; }

.domain-actions {
  margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
}


/* ====================== BADGES ========================== */

.badge {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-available { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }
.badge-sold      { background: var(--error-bg);   color: var(--error);   border: 1px solid var(--error); }
.badge-coming    { background: var(--warning-bg);  color: var(--warning); border: 1px solid var(--warning); }


/* ======================= FORMS ========================== */

.contact-form { margin-top: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .95rem; color: var(--text-primary); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .75rem 1rem;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--bg-input); color: var(--text-primary);
  font-family: inherit; font-size: 1rem;
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-hint     { display: block; margin-top: .3rem; font-size: .82rem; color: var(--text-muted); }
.form-section-divider { margin: 2rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.inline-form   { display: inline; }


/* ====================== ALERTS ========================== */

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem 1.75rem; border-radius: 12px;
  margin-bottom: 2rem; font-size: 1rem; line-height: 1.6;
  animation: alertSlideIn .4s ease-out;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.alert-icon { width: 32px; height: 32px; flex-shrink: 0; margin-top: 2px; }
.alert-content strong { display: block; font-size: 1.15rem; margin-bottom: .35rem; }
.alert-content p { margin: 0; opacity: .9; }
.alert-success {
  background: var(--success-bg); border: 2px solid var(--success); color: var(--success);
}
.alert-error {
  background: var(--error-bg); border: 2px solid var(--error); color: var(--error);
}
.alert-info    { background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.4); color: var(--text-secondary); line-height: 1.6; }

/* Inline field validation errors */
.input-error  { border-color: var(--error) !important; box-shadow: 0 0 0 2px var(--error-bg); }
.field-error  { display: block; color: var(--error); font-size: .85rem; margin-top: .35rem; }


/* ==================== LEGAL PAGES ======================= */

.legal-page h3 { margin-top: 2rem; }
.legal-page p  { margin-bottom: .75rem; }

/* The legal-page disclaimer alert holds raw inline HTML. .alert's flex layout
   (built for icon + content pairs) split its text nodes and <strong> tags into
   side-by-side columns (#504) — restore normal single-column text flow. */
.legal-page .alert { display: block; }
.legal-updated { font-size: .9rem; color: var(--text-muted); margin-bottom: 2rem; }

.legal-list { padding-left: 1.25rem; margin: .75rem 0 1rem; }
.legal-list li { list-style: disc; padding: .3rem 0; color: var(--text-secondary); line-height: 1.55; }

.error-list { padding-left: 1rem; list-style: disc; }
.error-list li { list-style: disc; margin-bottom: .25rem; }


/* ==================== PAGE HEADERS ====================== */

.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h2 { font-size: 2.2rem; margin-bottom: .75rem; }
.page-lead { color: var(--text-secondary); font-size: 1.1rem; max-width: 640px; margin: 0 auto; line-height: 1.6; }


/* ===================== FAQ PAGE ========================= */

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-group { margin-bottom: 2.5rem; }
.faq-group-title {
  font-size: 1.25rem; color: var(--accent); margin-bottom: 1rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}

.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: .75rem; overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--accent); }
.faq-item[open] { border-color: var(--accent); }

.faq-question {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 600;
  color: var(--text-primary); list-style: none; display: flex;
  align-items: center; justify-content: space-between; user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+'; font-size: 1.4rem; font-weight: 300;
  color: var(--accent); transition: transform .2s;
  flex-shrink: 0; margin-left: 1rem;
}
.faq-item[open] .faq-question::after { content: '−'; }

.faq-answer {
  padding: 0 1.25rem 1.25rem; color: var(--text-secondary); line-height: 1.65;
}
.faq-answer ul { padding-left: 1.25rem; margin: .5rem 0; }
.faq-answer li { list-style: disc; padding: .2rem 0; }
.faq-answer a { color: var(--accent); text-decoration: underline; }

.faq-buy-link {
  display: inline-block; margin-top: .5rem; font-weight: 700;
  color: var(--accent); text-decoration: none;
  border: 1.5px solid var(--accent); border-radius: 999px;
  padding: .35rem 1rem; font-size: .9rem;
  transition: background .2s, color .2s;
}
.faq-buy-link:hover { background: var(--accent); color: var(--bg-primary); }

.faq-cta { text-align: center; margin-top: 2.5rem; }
.faq-cta p { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }


/* ================= TRANSFER GUIDE PAGE ================== */

.guide-intro {
  max-width: 780px; margin: 0 auto 3rem; color: var(--text-secondary);
  line-height: 1.65; text-align: center;
}

/* ── Transfer Timeline Mini Stepper ── */
.transfer-timeline-overview {
  display: flex; align-items: center; justify-content: center;
  max-width: 960px; margin: 0 auto 3rem; padding: 1.5rem 1rem;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); overflow-x: auto; gap: 0;
}

.timeline-step-mini {
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem; flex-shrink: 0; min-width: 72px;
}

.timeline-step-mini__icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary); transition: background .2s, color .2s;
}

.timeline-step-mini__icon svg { width: 20px; height: 20px; }

.timeline-step-mini__label {
  font-size: .75rem; font-weight: 600; color: var(--text-secondary);
  text-align: center; line-height: 1.2; white-space: nowrap;
}

.timeline-step-mini__connector {
  flex: 1; min-width: 20px; height: 2px;
  background: var(--border); margin-bottom: 1.35rem;
}

.guide-timeline { max-width: 800px; margin: 0 auto; position: relative; }
.guide-timeline::before {
  content: ''; position: absolute; left: 22px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}

.guide-step {
  display: flex; gap: 1.5rem; margin-bottom: 2.5rem; position: relative;
}

.step-number {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--bg-primary); font-weight: 700;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}

.step-content { flex: 1; }
.step-content h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.step-content p { color: var(--text-secondary); line-height: 1.6; margin-bottom: .5rem; }
.step-content ul { padding-left: 1.25rem; margin: .5rem 0; }
.step-content li { list-style: disc; padding: .2rem 0; color: var(--text-secondary); }

.guide-tips { margin-top: 3rem; }
.guide-tips h3 { text-align: center; margin-bottom: 1.5rem; }

.tips-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; max-width: 800px; margin: 0 auto;
}

.tip-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.25rem; display: flex; gap: 1rem;
  align-items: flex-start; transition: border-color .2s;
}
.tip-card:hover { border-color: var(--accent); }

.tip-icon { flex-shrink: 0; width: 32px; height: 32px; color: var(--accent); }
.tip-icon svg { width: 100%; height: 100%; }
.tip-card p { color: var(--text-secondary); line-height: 1.55; font-size: .95rem; }

.guide-cta { text-align: center; margin-top: 2.5rem; }
.guide-cta p { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }


/* =============== FEATURES / TECH STACK ================== */

.features-overview { max-width: 820px; margin: 0 auto 3rem; }

.feature-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 2rem; margin-bottom: 1.5rem;
}
.feature-block-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1rem; }
.feature-block-icon svg { width: 100%; height: 100%; }
.feature-block h3 { margin-bottom: .75rem; font-size: 1.2rem; }
.feature-block p { color: var(--text-secondary); line-height: 1.6; }
.feature-block ul { padding-left: 1.25rem; margin: .75rem 0; }
.feature-block li { list-style: disc; padding: .25rem 0; color: var(--text-secondary); line-height: 1.55; }
.feature-block code { background: rgba(78, 198, 224, .12); padding: .15rem .4rem; border-radius: 3px; font-size: .9em; }

.file-tree {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.25rem; overflow-x: auto; margin-top: .75rem;
}
.file-tree pre {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: .85rem; line-height: 1.7; color: var(--text-primary); margin: 0;
  white-space: pre;
}
.tree-note { color: var(--text-secondary); opacity: .65; margin-left: .5rem; }

.features-design, .features-seo, .features-stack { margin-bottom: 3rem; }
.features-design h3, .features-seo h3, .features-stack h3 {
  text-align: center; margin-bottom: 1.5rem; font-size: 1.3rem;
}

.design-features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; max-width: 820px; margin: 0 auto;
}

.design-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.5rem; text-align: center;
  transition: border-color .2s, transform .2s;
}
.design-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.design-card-icon { width: 36px; height: 36px; color: var(--accent); margin: 0 auto .75rem; }
.design-card-icon svg { width: 100%; height: 100%; }
.design-card h4 { margin-bottom: .5rem; }
.design-card p { color: var(--text-secondary); font-size: .95rem; line-height: 1.55; }

.seo-features-list { max-width: 800px; margin: 0 auto; }
.seo-feature-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.25rem; margin-bottom: .75rem;
  transition: border-color .2s;
}
.seo-feature-item:hover { border-color: var(--accent); }
.seo-feature-item strong { display: block; margin-bottom: .25rem; color: var(--text-primary); }
.seo-feature-item p { color: var(--text-secondary); line-height: 1.55; margin: 0; font-size: .95rem; }
.seo-feature-item code { background: rgba(78, 198, 224, .12); padding: .15rem .4rem; border-radius: 3px; font-size: .9em; }

.stack-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; max-width: 820px; margin: 0 auto;
}
.stack-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem; text-align: center;
  transition: border-color .2s;
}
.stack-item:hover { border-color: var(--accent); }
.stack-item strong { display: block; font-size: .8rem; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.stack-item span { color: var(--text-primary); font-size: .95rem; }

.features-cta { text-align: center; margin-top: 2rem; }
.features-cta p { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }


/* ================= TESTIMONIALS PAGE ==================== */

.testimonials-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem; max-width: 860px; margin: 0 auto;
}

.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.75rem; display: flex; flex-direction: column;
  justify-content: space-between; transition: border-color .2s, transform .2s;
}
.testimonial-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.testimonial-quote { margin-bottom: 1.25rem; position: relative; }
.quote-icon { width: 28px; height: 28px; color: var(--accent); opacity: .4; margin-bottom: .5rem; }
.testimonial-quote p {
  color: var(--text-secondary); line-height: 1.65; font-size: .95rem;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.author-info { display: flex; flex-direction: column; }
.author-info strong { font-size: .9rem; color: var(--text-primary); }
.author-info span { font-size: .8rem; color: var(--text-secondary); }

.testimonials-cta { text-align: center; margin-top: 2rem; }
.testimonials-cta p { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Testimonials Carousel */
.testimonial-option-label {
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--accent);
  opacity: .7;
  margin-bottom: .5rem;
  text-align: center;
}
.testimonials-carousel-section .testimonial-option-label {
  margin-bottom: .25rem;
}
.testimonials-carousel-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.testimonials-carousel-section h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: .35rem;
}
.testimonials-carousel {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}
.carousel-arrow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, background .2s, transform .15s;
  color: var(--text-secondary);
}
.carousel-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-secondary);
  transform: scale(1.08);
}
.carousel-arrow:active { transform: scale(.95); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  position: relative;
}
.carousel-track {
  display: flex;
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
  width: 100%;
}
.carousel-slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0 .25rem;
}
.carousel-slide .testimonial-card {
  margin: 0;
  height: 100%;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.carousel-dot:hover { background: var(--text-secondary); transform: scale(1.2); }
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.15);
}

/* Profile-style testimonial card (carousel variant 2) */
.profile-testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color .2s;
}
.profile-testimonial-card:hover { border-color: var(--accent); }
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: .75rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.profile-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .2rem;
}
.profile-title {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.profile-quote p {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.65;
  font-size: .95rem;
  margin: 0;
}


/* ==================== ERROR PAGES ======================= */

.error-section { padding-top: 10rem; }
.error-illustration { margin-bottom: 1.5rem; }
.error-reef-svg { width: 200px; height: auto; margin: 0 auto; display: block; }

.error-wave {
  animation: errorWaveDrift 4s ease-in-out infinite;
}
@keyframes errorWaveDrift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.error-bubble {
  animation: errorBubbleRise 3s ease-in-out infinite;
}
.error-bubble-1 { animation-delay: 0s; }
.error-bubble-2 { animation-delay: 1s; }
.error-bubble-3 { animation-delay: 2s; }
@keyframes errorBubbleRise {
  0%, 100% { transform: translateY(0); opacity: .2; }
  50% { transform: translateY(-8px); opacity: .35; }
}

.error-code    { font-size: 5rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: .5rem; }
.error-heading { font-size: 1.6rem; margin-bottom: .75rem; }
.error-message { color: var(--text-secondary); max-width: 480px; margin: 0 auto 1.5rem; line-height: 1.6; }

.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

.error-links { margin-top: 1rem; }
.error-links p { color: var(--text-secondary); font-size: .9rem; margin-bottom: .5rem; }
.error-nav-list {
  list-style: none; display: flex; gap: 1.25rem; justify-content: center;
  flex-wrap: wrap; padding: 0;
}
.error-nav-list a { color: var(--accent); text-decoration: underline; font-size: .9rem; }
.error-nav-list a:hover { color: var(--text-primary); }

.error-detail  { margin-top: 2rem; text-align: left; }
.error-detail pre {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem; overflow-x: auto;
  font-size: .85rem; color: var(--error);
}

/* TEMPORARY — error page illustration animations (remove with illustrations) */
.error-fish-swim {
  animation: errorFishSwim 5s ease-in-out infinite;
}
@keyframes errorFishSwim {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-6px, -3px); }
  50% { transform: translate(0, 2px); }
  75% { transform: translate(6px, -2px); }
}
.error-jelly-bob {
  animation: errorJellyBob 3.5s ease-in-out infinite;
}
@keyframes errorJellyBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.error-anchor-rock {
  animation: errorAnchorRock 4s ease-in-out infinite;
  transform-origin: 110px 100px;
}
@keyframes errorAnchorRock {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  75% { transform: rotate(-2deg); }
}
.error-ship-rock {
  animation: errorShipRock 5s ease-in-out infinite;
  transform-origin: 110px 118px;
}
@keyframes errorShipRock {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(1.5deg); }
  70% { transform: rotate(-1.5deg); }
}
/* END TEMPORARY — error page illustration animations */


/* ====================== FOOTER ========================== */

#site-footer {
  background: var(--footer-bg); border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 0; color: var(--text-primary);
  position: relative; z-index: 2;
}

/* Force light text on light theme footer */
[data-theme="light"] .hero-title { text-shadow: 0 0 20px rgba(8,145,178,.35), 0 0 40px rgba(8,145,178,.18); }
[data-theme="light"] .logo-mark {
  filter: brightness(0) opacity(.7) drop-shadow(0 0 6px rgba(8,145,178,.3));
}
[data-theme="light"] .nav-logo:hover .logo-mark {
  filter: brightness(0) opacity(.8) drop-shadow(0 0 10px rgba(8,145,178,.45)) drop-shadow(0 0 20px rgba(8,145,178,.2));
}
[data-theme="light"] #site-footer .logo-mark {
  filter: brightness(0) invert(1) opacity(.85) drop-shadow(0 0 8px rgba(78,198,224,.6)) drop-shadow(0 0 20px rgba(78,198,224,.3));
}
[data-theme="light"] #site-footer { color: #e2e8f0; }
[data-theme="light"] #site-footer a { color: #cbd5e1; }
[data-theme="light"] #site-footer a:hover { color: #38bdf8; }

.footer-container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.footer-col h4 { color: var(--accent); font-size: 1.05rem; margin-bottom: .85rem; }
.footer-col p  { font-size: .9rem; opacity: .7; line-height: 1.6; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a { font-size: .9rem; opacity: .7; transition: opacity .25s, color .25s; color: inherit; }
.footer-col ul li a:hover { opacity: 1; color: var(--accent); }

/* Social Media Icons */
.social-icons {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.25rem;
}
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.social-icon:hover {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-2px);
}
.social-icon svg {
  width: 18px; height: 18px; fill: currentColor;
}
[data-theme="light"] .social-icon { background: rgba(255,255,255,.12); color: #cbd5e1; }
[data-theme="light"] .social-icon:hover { color: #38bdf8; background: rgba(56,189,248,.15); border-color: rgba(56,189,248,.35); }

.footer-bottom {
  text-align: center; padding: 1.75rem 0; margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: .85rem; color: var(--text-muted); }


/* ================ SKIP LINK (a11y) ====================== */

.skip-link {
  position: absolute; top: -100%; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: .75rem 1.5rem; border-radius: 0 0 8px 8px;
  font-weight: 700; font-size: .95rem;
  z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }


/* =========================================================
   REUSABLE UTILITY & COMPONENT TOOLKIT
   ---------------------------------------------------------
   Bootstrap-style helpers that work with the theme system.
   Every class is mobile-friendly and adapts to screen size.
   All colours inherit from the active [data-theme].
   ========================================================= */


/* ---------- Text Utilities ----------------------------- */

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-error   { color: var(--error); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }

.text-xs  { font-size: .75rem; }
.text-sm  { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-light   { font-weight: 300; }
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }

.uppercase    { text-transform: uppercase; }
.lowercase    { text-transform: lowercase; }
.capitalize   { text-transform: capitalize; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.leading-tight  { line-height: 1.25; }
.leading-normal { line-height: 1.6; }
.leading-loose  { line-height: 2; }


/* ---------- Spacing (margin & padding) ----------------- */
/*  Scale: 0 = 0, 1 = .25rem, 2 = .5rem, 3 = .75rem,
           4 = 1rem, 5 = 1.5rem, 6 = 2rem, 8 = 3rem       */

.m-0  { margin: 0; }         .p-0  { padding: 0; }
.m-1  { margin: .25rem; }    .p-1  { padding: .25rem; }
.m-2  { margin: .5rem; }     .p-2  { padding: .5rem; }
.m-3  { margin: .75rem; }    .p-3  { padding: .75rem; }
.m-4  { margin: 1rem; }      .p-4  { padding: 1rem; }
.m-5  { margin: 1.5rem; }    .p-5  { padding: 1.5rem; }
.m-6  { margin: 2rem; }      .p-6  { padding: 2rem; }
.m-8  { margin: 3rem; }      .p-8  { padding: 3rem; }

.mt-0 { margin-top: 0; }     .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .25rem; } .mb-1 { margin-bottom: .25rem; }
.mt-2 { margin-top: .5rem; }  .mb-2 { margin-bottom: .5rem; }
.mt-3 { margin-top: .75rem; } .mb-3 { margin-bottom: .75rem; }
.mt-4 { margin-top: 1rem; }   .mb-4 { margin-bottom: 1rem; }
.mt-5 { margin-top: 1.5rem; } .mb-5 { margin-bottom: 1.5rem; }
.mt-6 { margin-top: 2rem; }   .mb-6 { margin-bottom: 2rem; }
.mt-8 { margin-top: 3rem; }   .mb-8 { margin-bottom: 3rem; }

.ml-0 { margin-left: 0; }    .mr-0 { margin-right: 0; }
.ml-1 { margin-left: .25rem; } .mr-1 { margin-right: .25rem; }
.ml-2 { margin-left: .5rem; }  .mr-2 { margin-right: .5rem; }
.ml-4 { margin-left: 1rem; }   .mr-4 { margin-right: 1rem; }
.ml-auto { margin-left: auto; } .mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.pt-0 { padding-top: 0; }    .pb-0 { padding-bottom: 0; }
.pt-2 { padding-top: .5rem; } .pb-2 { padding-bottom: .5rem; }
.pt-4 { padding-top: 1rem; }  .pb-4 { padding-bottom: 1rem; }
.pt-6 { padding-top: 2rem; }  .pb-6 { padding-bottom: 2rem; }
.pt-8 { padding-top: 3rem; }  .pb-8 { padding-bottom: 3rem; }

.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 2rem; padding-bottom: 2rem; }


/* ---------- Display & Visibility ----------------------- */

.d-none    { display: none; }
.d-block   { display: block; }
.d-inline  { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex    { display: flex; }
.d-grid    { display: grid; }
.hidden    { visibility: hidden; }
.visible   { visibility: visible; }
.overflow-hidden  { overflow: hidden; }
.overflow-auto    { overflow: auto; }


/* ---------- Flexbox Helpers ---------------------------- */

.flex-row     { flex-direction: row; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-nowrap  { flex-wrap: nowrap; }
.flex-1       { flex: 1 1 0%; }
.flex-auto    { flex: 1 1 auto; }
.flex-none    { flex: none; }
.flex-grow    { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }

.self-start  { align-self: flex-start; }
.self-center { align-self: center; }
.self-end    { align-self: flex-end; }

.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.5rem; }
.gap-6 { gap: 2rem; }


/* ---------- Grid Helpers ------------------------------- */

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-full { grid-column: 1 / -1; }


/* ---------- Width & Height ----------------------------- */

.w-full    { width: 100%; }
.w-auto    { width: auto; }
.max-w-sm  { max-width: 480px; }
.max-w-md  { max-width: 640px; }
.max-w-lg  { max-width: 860px; }
.max-w-xl  { max-width: 1100px; }
.max-w-full { max-width: 100%; }
.h-full    { height: 100%; }
.min-h-screen { min-height: 100vh; }


/* ---------- Borders & Radius --------------------------- */

.rounded      { border-radius: 8px; }
.rounded-sm   { border-radius: 4px; }
.rounded-lg   { border-radius: 12px; }
.rounded-xl   { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }
.rounded-none { border-radius: 0; }

.border       { border: 1px solid var(--border); }
.border-strong { border: 1px solid var(--border-strong); }
.border-accent { border: 1px solid var(--accent-border); }
.border-none  { border: none; }
.border-t     { border-top: 1px solid var(--border); }
.border-b     { border-bottom: 1px solid var(--border); }


/* ---------- Shadows ------------------------------------ */

.shadow     { box-shadow: var(--shadow); }
.shadow-lg  { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }


/* ---------- Background --------------------------------- */

.bg-primary   { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-card      { background: var(--bg-card); }
.bg-card-solid { background: var(--bg-card-solid); }
.bg-accent    { background: var(--accent-bg); }
.bg-success   { background: var(--success-bg); }
.bg-error     { background: var(--error-bg); }
.bg-warning   { background: var(--warning-bg); }
.bg-transparent { background: transparent; }


/* ---------- Opacity & Transitions ---------------------- */

.opacity-0   { opacity: 0; }
.opacity-50  { opacity: .5; }
.opacity-75  { opacity: .75; }
.opacity-100 { opacity: 1; }
.transition  { transition: all .25s ease; }
.transition-fast { transition: all .15s ease; }
.transition-slow { transition: all .4s ease; }


/* ---------- Position ----------------------------------- */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; top: 0; }
.inset-0  { inset: 0; }
.z-10     { z-index: 10; }
.z-20     { z-index: 20; }
.z-50     { z-index: 50; }


/* =========================================================
   REUSABLE COMPONENTS
   ---------------------------------------------------------
   Drop-in patterns the buyer can use immediately.
   All inherit theme colours automatically.
   ========================================================= */


/* ---------- Buttons (extended) ------------------------- */
/*  Primary: .btn  |  Outline: .btn.btn-outline
    Ghost:   .btn.btn-ghost  |  Sizes: .btn-sm, .btn-lg    */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  color: #fff; font-size: .95rem; font-weight: 600;
  padding: .65rem 1.5rem; border-radius: 8px; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .3s, background .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); text-decoration: none;
  line-height: 1.4; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.25); color: #fff; }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-outline {
  background: transparent; border: 2px solid var(--accent);
  color: var(--accent); box-shadow: none;
}
.btn-outline:hover { background: var(--accent-bg); box-shadow: none; color: var(--accent); }

.btn-ghost {
  background: transparent; color: var(--accent);
  box-shadow: none; border: none;
}
.btn-ghost:hover { background: var(--accent-bg); }

.btn-sm { font-size: .85rem; padding: .45rem 1rem; border-radius: 6px; }
.btn-lg { font-size: 1.1rem; padding: .85rem 2rem; border-radius: 10px; }
.btn-pill { border-radius: 9999px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: .55rem; border-radius: 8px; }
.btn-icon svg { width: 20px; height: 20px; }

.btn-success { background: var(--success); }
.btn-success:hover { filter: brightness(1.1); }
.btn-danger { background: var(--error); }
.btn-danger:hover { filter: brightness(1.1); }
.btn-warning { background: var(--warning); color: var(--bg-primary); }
.btn-warning:hover { filter: brightness(1.1); }


/* ---------- Button Group ------------------------------- */

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: 8px 0 0 8px; }
.btn-group .btn:last-child  { border-radius: 0 8px 8px 0; }


/* ---------- Card (generic) ----------------------------- */
/*  .card  |  .card.card-hover  |  .card.card-bordered      */

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.card-hover:hover {
  border-color: var(--accent-border); box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card-bordered { border: 2px solid var(--border-strong); }
.card-flat { background: transparent; border: none; padding: 0; }
.card-header {
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.card-footer {
  padding-top: 1rem; margin-top: 1rem;
  border-top: 1px solid var(--border);
}
.card-body { flex: 1; }


/* ---------- Badges (extended) -------------------------- */
/*  Builds on existing .badge. New semantic variants.        */

.badge-info    { background: rgba(56,189,248,.12); color: #38bdf8; border: 1px solid rgba(56,189,248,.4); }
.badge-neutral { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-accent  { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-border); }
.badge-lg { font-size: .85rem; padding: .35rem .9rem; }
.badge-dot::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; margin-right: .4rem;
}


/* ---------- Alerts (extended) -------------------------- */
/*  .alert-warning added, .alert-dismissible pattern.        */

.alert-warning { background: var(--warning-bg); border: 1px solid var(--warning); color: var(--warning); }
.alert-dismissible { position: relative; padding-right: 3rem; }
.alert-close {
  position: absolute; top: .75rem; right: .75rem;
  background: none; border: none; color: inherit;
  font-size: 1.2rem; cursor: pointer; opacity: .7;
  transition: opacity .2s; line-height: 1;
}
.alert-close:hover { opacity: 1; }


/* ---------- Table -------------------------------------- */

.table {
  width: 100%; border-collapse: collapse;
  font-size: .95rem; color: var(--text-primary);
}
.table th,
.table td {
  padding: .75rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th {
  font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-secondary);
}
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--accent-bg); }
.table-striped tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }


/* ---------- Code / Pre --------------------------------- */

.code {
  display: inline; background: rgba(78,198,224,.12);
  padding: .15rem .45rem; border-radius: 4px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: .88em; color: var(--accent);
}
.pre {
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.25rem; overflow-x: auto;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: .88rem; line-height: 1.7; color: var(--text-primary);
}


/* ---------- Divider ------------------------------------ */

.divider {
  border: none; border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.divider-accent {
  border: none; border-top: 2px solid var(--accent-border);
  margin: 2rem 0;
}


/* ---------- Avatar ------------------------------------- */

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent); color: var(--bg-primary);
  font-weight: 700; flex-shrink: 0;
  width: 40px; height: 40px; font-size: .875rem;
}
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.3rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-group { display: flex; }
.avatar-group .avatar { margin-left: -.5rem; border: 2px solid var(--bg-primary); }
.avatar-group .avatar:first-child { margin-left: 0; }


/* ---------- Tooltip pattern (CSS-only) ----------------- */

[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); padding: .4rem .7rem;
  background: var(--bg-card-solid); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: 6px;
  font-size: .8rem; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .2s;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }


/* ---------- Progress Bar ------------------------------- */

.progress {
  width: 100%; height: 8px; background: var(--bg-card);
  border-radius: 999px; overflow: hidden; border: 1px solid var(--border);
}
.progress-bar {
  height: 100%; background: var(--accent); border-radius: 999px;
  transition: width .4s ease;
}
.progress-success .progress-bar { background: var(--success); }
.progress-warning .progress-bar { background: var(--warning); }
.progress-error   .progress-bar { background: var(--error); }


/* ---------- Spinner ------------------------------------ */

.spinner {
  display: inline-block; width: 24px; height: 24px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 36px; height: 36px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ---------- List Group --------------------------------- */

.list-group { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.list-group-item {
  padding: .75rem 1rem; border-bottom: 1px solid var(--border);
  color: var(--text-primary); transition: background .15s;
}
.list-group-item:last-child { border-bottom: none; }
.list-group-item:hover { background: var(--accent-bg); }
.list-group-item.active {
  background: var(--accent-bg); border-left: 3px solid var(--accent);
  font-weight: 600;
}


/* ---------- Aspect Ratio ------------------------------- */

.aspect-video  { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-photo  { aspect-ratio: 4 / 3; }
.object-cover  { object-fit: cover; }
.object-contain { object-fit: contain; }


/* ---------- Screen Reader Only ------------------------- */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ---------- Container ---------------------------------- */

.container {
  width: 100%; max-width: 1200px;
  margin-left: auto; margin-right: auto;
  padding-left: 1.5rem; padding-right: 1.5rem;
}
.container-sm { max-width: 640px; }
.container-md { max-width: 860px; }
.container-lg { max-width: 1100px; }


/* ==================== RESPONSIVE ======================== */

/* ---------- Tablet & small laptop (≤768px) ---------- */
@media (max-width: 768px) {

  /* Responsive utility overrides */
  .md\:d-none  { display: none; }
  .md\:d-block { display: block; }
  .md\:d-flex  { display: flex; }
  .md\:flex-col { flex-direction: column; }
  .md\:text-center { text-align: center; }
  .md\:grid-cols-1 { grid-template-columns: 1fr; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:col-span-full { grid-column: 1 / -1; }
  .md\:w-full { width: 100%; }
  .md\:px-4 { padding-left: 1rem; padding-right: 1rem; }

  /* Tables scroll horizontally on mobile */
  .table-responsive .table { min-width: 600px; }

  /* Navigation — hamburger toggle */
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--nav-bg); padding: 1rem 1.5rem; gap: .15rem;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block; padding: .75rem 0;
    font-size: 1rem;       /* Larger tap target text */
    min-height: 44px;      /* Touch-friendly tap area */
    display: flex; align-items: center;
  }

  /* Dropdown — inline on mobile */
  .nav-has-dropdown { position: static; }
  .nav-dropdown {
    position: static; border: none; box-shadow: none;
    padding: 0 0 0 1.25rem; background: transparent;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    min-width: 0;
  }
  .nav-has-dropdown:hover .nav-dropdown,
  .nav-has-dropdown .nav-dropdown { display: block; }
  .nav-dropdown a { padding: .55rem 0; }

  /* Hamburger → X animation */
  .nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
  .nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0; transform: rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0; transform: rotate(-45deg);
  }

  /* Sale banner + navbar — stack, don't overlap (#503). At phone widths the
     banner wraps taller than the 2rem offset #navbar was fixed at, so the
     banner covered the logo and burger. Make the shared <header role="banner">
     wrapper sticky (in normal flow, so it pushes content down whatever height
     the banner wraps to, and still pins while scrolling) and stack the banner
     + navbar inside it. The sections' big fixed-header clearance paddings
     shrink accordingly below. */
  body > header[role="banner"] { position: sticky; top: 0; left: 0; width: 100%; z-index: 1100; }
  #navbar { position: relative; top: auto; }

  /* Sale banner — wrap text on narrow widths */
  #sale-banner {
    position: static;
    font-size: .82rem; padding: .45rem .75rem;
    display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem;
  }

  /* Hero — header is sticky (in flow) on mobile, so no fixed-header clearance */
  .hero-section { padding: 2.5rem 1.25rem 3rem; min-height: auto; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .hero-subtitle { font-size: 1.05rem; margin-bottom: 1.75rem; }

  /* Sale card */
  .sale-card { padding: 1.75rem 1.25rem; }
  .sale-card h2 { font-size: 1.35rem; }
  .sale-card h3 { font-size: 1.1rem; }

  /* CTAs */
  .cta-area { flex-direction: column; align-items: stretch; }
  .cta-button { padding: .85rem 1.5rem; font-size: 1rem; min-height: 48px; }

  /* Content sections — header is sticky (in flow) on mobile */
  .content-section { padding: 3rem 1.25rem 3.5rem; }
  .section-inner h2 { font-size: 1.6rem; }
  .section-inner h3 { font-size: 1.15rem; }
  .section-inner p  { font-size: 1rem; }

  /* Cards — 2-col grids drop to 1 */
  .about-highlights, .mission-points { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-article-header h1 { font-size: 1.5rem; }
  .blog-article-inner { max-width: 100%; }

  /* About page */
  .about-alt { margin-left: 0; margin-right: 0; }
  .about-hero h2 { font-size: 1.6rem; }
  .about-lead { font-size: 1rem; }

  /* Mission */
  .mission-card h3 { font-size: 1.3rem; }

  /* Domain actions */
  .domain-actions { flex-direction: column; }
  .domain-price { font-size: 1.3rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item--wide { grid-column: span 1; }
  .gallery-inner { max-width: 100%; }

  /* Lightbox — mobile improvements */
  .gallery-lightbox { padding: 1rem; }
  .gallery-lightbox img { max-width: 95vw; max-height: 75vh; }
  .lightbox-close { top: .75rem; right: 1rem; font-size: 2rem; min-width: 44px; min-height: 44px; }
  .lightbox-caption { font-size: .8rem; bottom: 1rem; }

  /* Value cards — 2 columns on tablet */
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .buyer-outcomes { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .scarcity-banner { padding: 1rem 1.25rem; }
  .saves-you-section { padding: 1.25rem 1rem; }

  /* Contact page — stack to single column */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: .75rem; }
  .contact-form-wrapper { padding: 1.5rem; }
  .contact-sidebar-card { padding: 1.5rem; }

  /* FAQ page */
  .faq-question { font-size: .95rem; }

  /* Transfer guide — timeline left margin */
  .guide-timeline::before { left: 20px; }
  .tips-grid { grid-template-columns: 1fr; }

  /* Transfer mini stepper — scroll on tablet */
  .transfer-timeline-overview { justify-content: flex-start; padding: 1rem .75rem; }
  .timeline-step-mini { min-width: 64px; }
  .timeline-step-mini__label { font-size: .7rem; }

  /* Features page */
  .design-features-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials page */
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-carousel { max-width: 100%; }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-arrow svg { width: 16px; height: 16px; }

  /* 404 page */
  .error-reef-svg { width: 160px; }

  /* Forms — comfortable touch targets */
  .form-group input,
  .form-group textarea,
  .form-group select { padding: .85rem 1rem; font-size: 16px; /* prevents iOS zoom on focus */ }

  /* Footer */
  .footer-container { gap: 1.5rem; }
  .social-icons { gap: .5rem; }
  .social-icon { width: 40px; height: 40px; }
  .social-icon svg { width: 20px; height: 20px; }
}


/* ---------- Large phone (≤480px) ---------- */
@media (max-width: 480px) {

  /* Responsive utility overrides */
  .sm\:d-none  { display: none; }
  .sm\:d-block { display: block; }
  .sm\:flex-col { flex-direction: column; }
  .sm\:text-center { text-align: center; }
  .sm\:grid-cols-1 { grid-template-columns: 1fr; }
  .sm\:w-full { width: 100%; }
  .sm\:px-2 { padding-left: .5rem; padding-right: .5rem; }
  .btn-block-sm { display: flex; width: 100%; }

  /* Footer to 2-col, then will go 1-col at 360 */
  .footer-container { grid-template-columns: 1fr 1fr; }

  /* Value cards — single column on phone */
  .value-grid { grid-template-columns: 1fr; }
  .buyer-outcomes { grid-template-columns: 1fr; }
  .scarcity-banner { flex-direction: column; align-items: center; text-align: center; }
  .saves-you-list li { font-size: .9rem; }
  .saves-you-section { padding: 1rem .85rem; }

  /* Contact — tighten padding */
  .contact-form-wrapper { padding: 1.25rem; }
  .contact-disclaimer { padding: 1.25rem; }

  /* Gallery single column */
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item--tall { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 1; }

  /* Nav */
  .nav-container { padding: .5rem 1rem; }
  .nav-logo { font-size: 1.2rem; gap: .35rem; }
  .logo-mark { width: 30px; height: 26px; }

  /* Hero */
  .hero-section { padding: 2rem 1rem 2.5rem; }
  .hero-title { font-size: clamp(1.4rem, 7vw, 2rem); }
  .hero-subtitle { font-size: .95rem; }

  /* Sale card */
  .sale-card { padding: 1.5rem 1rem; border-radius: 12px; }
  .sale-card h2 { font-size: 1.2rem; }

  /* Tags wrap tighter */
  .use-cases { gap: .4rem; }
  .tag { font-size: .8rem; padding: .3rem .65rem; }

  /* Content sections */
  .content-section { padding: 2.5rem 1rem 3rem; }
  .section-inner h2 { font-size: 1.4rem; }

  /* About */
  .about-story-section { padding: 1.5rem 0; }
  .about-cta-buttons { flex-direction: column; align-items: stretch; }

  .contact-info-row { grid-template-columns: 1fr; }

  /* Error page */
  .error-code { font-size: 3.5rem; }

  /* Transfer guide — hide timeline line on small screens */
  .guide-timeline::before { display: none; }
  .step-number { width: 36px; height: 36px; font-size: 1rem; }

  /* Transfer mini stepper — compact on phone */
  .transfer-timeline-overview { gap: 0; padding: .75rem .5rem; }
  .timeline-step-mini { min-width: 52px; }
  .timeline-step-mini__icon { width: 36px; height: 36px; }
  .timeline-step-mini__icon svg { width: 16px; height: 16px; }
  .timeline-step-mini__label { font-size: .65rem; }
  .timeline-step-mini__connector { min-width: 12px; }

  /* Features page */
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .feature-block { padding: 1.5rem 1.25rem; }
  .page-header h2 { font-size: 1.6rem; }
  .page-lead { font-size: 1rem; }
}


/* ---------- Small phone (≤360px) ---------- */
@media (max-width: 360px) {

  /* Footer single column */
  .footer-container { grid-template-columns: 1fr; gap: 1.25rem; }

  /* Extra tight spacing */
  .content-section { padding: 2.25rem .75rem 2.5rem; }
  .sale-card { padding: 1.25rem .85rem; }

  /* Sale banner */
  #sale-banner { font-size: .78rem; padding: .4rem .5rem; }

  /* Nav */
  .logo-text { font-size: .85em; }
  .logo-reefs { letter-spacing: .8px; }

  /* Lightbox full-bleed */
  .gallery-lightbox { padding: .5rem; }
  .gallery-lightbox img { max-width: 100vw; max-height: 70vh; border-radius: 4px; }
}
