/* SafeBuy Realties - Deduplicated Premium CSS
   Consolidated from repeated style blocks.
*/

/* =========================
   1. Theme Tokens
========================= */
:root {
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bg: #ffffff;
  --bg-soft: #fbfaf8;
  --surface: rgba(255,255,255,.84);
  --surface-solid: #ffffff;
  --soft: #fbfaf8;
  --text: #151015;
  --muted: #665d67;
  --primary: #5d174a;
  --primary-rgb: 93, 23, 74;
  --accent: #bf8b2d;
  --accent-rgb: 191, 139, 45;
  --border: rgba(93, 23, 74, .13);
  --nav: rgba(255,255,255,.78);
  --shadow: 0 28px 90px rgba(15, 23, 42, .13);
  --shadow-soft: 0 14px 42px rgba(15, 23, 42, .08);
  --hero:
    radial-gradient(circle at 13% 8%, rgba(191,139,45,.16), transparent 30%),
    radial-gradient(circle at 86% 15%, rgba(93,23,74,.10), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fff 48%, #fbfaf8 100%);
  --ink-gradient: linear-gradient(135deg, #5d174a 0%, #8b286f 48%, #bf8b2d 100%);
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #fbfaf8;
  --surface: rgba(255,255,255,.84);
  --surface-solid: #ffffff;
  --soft: #fbfaf8;
  --text: #151015;
  --muted: #665d67;
  --primary: #5d174a;
  --primary-rgb: 93, 23, 74;
  --accent: #bf8b2d;
  --accent-rgb: 191, 139, 45;
  --border: rgba(93, 23, 74, .13);
  --nav: rgba(255,255,255,.78);
  --shadow: 0 28px 90px rgba(15, 23, 42, .13);
  --shadow-soft: 0 14px 42px rgba(15, 23, 42, .08);
  --hero:
    radial-gradient(circle at 13% 8%, rgba(191,139,45,.16), transparent 30%),
    radial-gradient(circle at 86% 15%, rgba(93,23,74,.10), transparent 34%),
    linear-gradient(180deg, #fff 0%, #fff 48%, #fbfaf8 100%);
  --ink-gradient: linear-gradient(135deg, #5d174a 0%, #8b286f 48%, #bf8b2d 100%);
}

html[data-theme="dark"] {
  /* Base */
  --bg: #030407;
  --bg-soft: #0a0c12;
  --surface: rgba(17, 19, 27, .84);
  --surface-solid: #0f1118;
  --soft: #0a0c12;

  /* Text */
  --text: #fffaf0;
  --muted: #c9c1b6;

  /* Brand */
  --primary: #7c244f;
  --primary-rgb: 124, 36, 79;

  --accent: #d9b46a;
  --accent-rgb: 217, 180, 106;

  /* Lines / nav */
  --border: rgba(217, 180, 106, .20);
  --nav: rgba(6, 7, 11, .82);

  /* Shadows */
  --shadow: 0 36px 130px rgba(0, 0, 0, .64);
  --shadow-soft: 0 20px 66px rgba(0, 0, 0, .42);

  /* Page background */
  --hero:
    radial-gradient(circle at 10% 8%, rgba(217, 180, 106, .14), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(124, 36, 79, .28), transparent 36%),
    radial-gradient(circle at 52% 88%, rgba(217, 180, 106, .08), transparent 42%),
    linear-gradient(180deg, #030407 0%, #0b0d14 42%, #050508 100%);

  /* Main premium gradient */
  --ink-gradient: linear-gradient(
    135deg,
    #4b132e 0%,
    #7c244f 38%,
    #d9b46a 100%
  );
}

html[data-theme="dark"] .shell {
  background: var(--hero);
}

html[data-theme="dark"] .shell:before {
  opacity: .22;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .05) 1px, transparent 1px);
}

html[data-theme="dark"] .glass {
  background:
    linear-gradient(180deg, rgba(12, 14, 20, .92), rgba(5, 6, 10, .78));
  border-bottom-color: rgba(var(--accent-rgb), .18);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .process-card,
html[data-theme="dark"] .who-card,
html[data-theme="dark"] .faq-card,
html[data-theme="dark"] .premium-mini-card,
html[data-theme="dark"] .risk-card,
html[data-theme="dark"] .service-group-card,
html[data-theme="dark"] .premium-who-card,
html[data-theme="dark"] .premium-social-section {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .022)),
    rgba(17, 19, 27, .82);
  border-color: rgba(var(--accent-rgb), .18);
  box-shadow:
    0 32px 95px rgba(0, 0, 0, .46),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

html[data-theme="dark"] .hero-card:before,
html[data-theme="dark"] .panel:before,
html[data-theme="dark"] .service-card:before,
html[data-theme="dark"] .premium-mini-card:before,
html[data-theme="dark"] .service-group-card:before,
html[data-theme="dark"] .premium-who-card:before,
html[data-theme="dark"] .premium-social-section:before {
  background: linear-gradient(
    90deg,
    rgba(var(--primary-rgb), .86),
    rgba(var(--accent-rgb), .95),
    rgba(var(--primary-rgb), .72)
  );
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .footer-nav-cta {
  color: #09070a;
  background: linear-gradient(135deg, #d9b46a 0%, #f1d18a 46%, #7c244f 100%);
  box-shadow:
    0 24px 62px rgba(var(--accent-rgb), .16),
    0 12px 38px rgba(0, 0, 0, .38);
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .input,
html[data-theme="dark"] .theme-toggle {
  background: rgba(12, 14, 20, .86);
  border-color: rgba(var(--accent-rgb), .22);
  color: var(--text);
}

html[data-theme="dark"] .premium-icon,
html[data-theme="dark"] .icon,
html[data-theme="dark"] .mini-icon,
html[data-theme="dark"] .who-icon,
html[data-theme="dark"] .launch-note-icon,
html[data-theme="dark"] .stakeholder-note-icon {
  color: var(--accent);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .10), rgba(var(--accent-rgb), .08)),
    rgba(var(--primary-rgb), .16);
  border-color: rgba(var(--accent-rgb), .24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 18px 44px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .risk-chip,
html[data-theme="dark"] .service-tag {
  color: var(--accent);
}

html[data-theme="dark"] .launch-note,
html[data-theme="dark"] .stakeholder-note,
html[data-theme="dark"] .premium-service-pill {
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), .12), transparent 34%),
    rgba(var(--accent-rgb), .055);
  border-color: rgba(var(--accent-rgb), .18);
}

html[data-theme="dark"] .footer-social {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .075);
  border-color: rgba(var(--accent-rgb), .18);
}

html[data-theme="dark"] .footer-social:hover {
  color: #070509;
  background: linear-gradient(135deg, #d9b46a 0%, #f1d18a 52%, #7c244f 100%);
  border-color: rgba(var(--accent-rgb), .38);
}

html[data-theme="dark"] .footer-link:hover,
html[data-theme="dark"] .footer-nav-link:hover,
html[data-theme="dark"] nav a:hover,
html[data-theme="dark"] .email-link {
  color: var(--accent);
}

html[data-theme="dark"] ::selection {
  background: rgba(var(--accent-rgb), .30);
  color: #070509;
}

/* =========================
   2. Base
========================= */
* { box-sizing: border-box; }

html { text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--hero);
  color: var(--text);
  overflow-x: hidden;
  transition: background .35s var(--ease), color .35s var(--ease);
}

::selection { background: rgba(var(--accent-rgb), .24); }

.shell {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.shell:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .34;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), .055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 68%);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .68s var(--ease), transform .68s var(--ease);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   3. Loader
========================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .45s, visibility .45s;
}

.loader {
  width: 64px;
  height: 64px;
  border-radius: 24px;
  background: var(--ink-gradient);
  box-shadow: 0 22px 70px rgba(var(--primary-rgb), .28);
  animation: pulse 1.05s infinite alternate;
  position: relative;
}

.loader:after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 15px;
}

@keyframes pulse {
  to { transform: scale(.88) rotate(5deg); filter: saturate(1.3); }
}

/* =========================
   4. Header / Brand / Navigation
========================= */
.glass {
  background: var(--nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] .glass {
  background: linear-gradient(180deg, rgba(18,10,19,.86), rgba(10,6,11,.72));
  border-bottom-color: rgba(var(--accent-rgb), .16);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: var(--ink-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 35px rgba(var(--primary-rgb), .24);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
}

.brand-badge img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

html[data-theme="dark"] .brand-badge,
html[data-theme="dark"] .theme-dot {
  box-shadow: 0 18px 48px rgba(var(--accent-rgb), .16), inset 0 1px 0 rgba(255,255,255,.24);
}

.nav-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  box-shadow: var(--shadow-soft);
  transition: .25s var(--ease);
}

.theme-toggle:hover { transform: translateY(-2px); }

.theme-dot {
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: var(--ink-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  display: none;
  place-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}

.menu-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), .42);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.mobile-menu {
  display: none;
  position: absolute;
  left: 20px;
  right: 20px;
  top: calc(100% + 10px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-10px) scale(.98);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.mobile-menu:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--accent-rgb), .13), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(var(--primary-rgb), .10), transparent 34%);
  pointer-events: none;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-menu-inner {
  position: relative;
  z-index: 1;
  padding: 12px;
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}

.mobile-link:hover {
  background: rgba(var(--accent-rgb), .11);
  color: var(--primary);
  transform: translateX(2px);
}

html[data-theme="dark"] .mobile-link:hover { color: var(--accent); }

.mobile-link span:last-child {
  color: var(--accent);
  font-size: 15px;
}

.mobile-cta {
  margin-top: 8px;
  width: 100%;
}

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(7, 4, 9, .38);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open { overflow: hidden; }

/* =========================
   5. Typography / Utility
========================= */
.gradient-text {
  background: var(--ink-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .2em;
  text-transform: uppercase;
}

html[data-theme="dark"] .section-kicker { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: rgba(var(--accent-rgb), .09);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

html[data-theme="dark"] .eyebrow { color: var(--accent); }

.eyebrow:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .14);
}

/* =========================
   6. Core Components
========================= */
.panel,
.card,
.hero-card,
.service-card,
.process-card,
.who-card,
.faq-card,
.contact-card,
.metric,
.premium-mini-card,
.risk-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.panel {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card:before,
.panel:before,
.service-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--ink-gradient);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.card,
.service-card,
.process-card,
.who-card,
.faq-card {
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: .25s var(--ease);
  position: relative;
  overflow: hidden;
}

.card:hover,
.service-card:hover,
.who-card:hover,
.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 90px rgba(15,23,42,.15);
}

.card:after {
  content: "";
  position: absolute;
  inset: auto -20% -60% 20%;
  height: 140px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .14), transparent 62%);
  pointer-events: none;
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .premium-mini-card,
html[data-theme="dark"] .risk-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .process-card,
html[data-theme="dark"] .who-card,
html[data-theme="dark"] .faq-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(20,13,21,.76);
  border-color: rgba(var(--accent-rgb), .18);
  box-shadow: 0 28px 80px rgba(0,0,0,.36);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 19px;
  font-weight: 950;
  transition: .25s var(--ease);
  white-space: nowrap;
  min-height: 48px;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink-gradient);
  color: #fff;
  box-shadow: 0 20px 50px rgba(var(--primary-rgb), .24);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-solid);
}

.btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .input {
  background: rgba(18,10,19,.82);
  border-color: rgba(var(--accent-rgb), .22);
}

.input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  border-radius: 17px;
  padding: 13px 14px;
  outline: none;
  min-height: 48px;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12);
}

.metric {
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.luxury-strip,
.trust-strip {
  border-radius: 24px;
  background: var(--ink-gradient);
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.luxury-strip:before,
.trust-strip:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(255,255,255,.26), transparent 32%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}

/* =========================
   7. Icon System
========================= */
.premium-svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 7px 12px rgba(var(--primary-rgb), .12));
}

.icon,
.mini-icon,
.premium-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(var(--accent-rgb), .08)),
    rgba(var(--primary-rgb), .08);
  color: var(--primary);
  border: 1px solid rgba(var(--accent-rgb), .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 16px 34px rgba(var(--primary-rgb), .12);
  position: relative;
  overflow: hidden;
}

.icon,
.mini-icon {
  font-size: 0;
  margin-bottom: 14px;
}

.premium-icon {
  margin-bottom: 16px;
}

.icon:after,
.mini-icon:after,
.premium-icon:after {
  content: "";
  position: absolute;
  inset: -38% -44% auto auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .24), transparent 64%);
  pointer-events: none;
}

.premium-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] .icon,
html[data-theme="dark"] .mini-icon,
html[data-theme="dark"] .premium-icon {
  color: var(--accent);
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(var(--accent-rgb), .07)),
    rgba(var(--primary-rgb), .10);
  border-color: rgba(var(--accent-rgb), .25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 18px 40px rgba(0,0,0,.26);
}

/* =========================
   8. Launch / Feature / Risk Cards
========================= */
.premium-section { padding-block: 22px; }

.launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.premium-mini-card {
  border-radius: 24px;
  padding: 20px;
  min-height: 178px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.premium-mini-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--ink-gradient);
}

.premium-mini-card:after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .16), transparent 68%);
  pointer-events: none;
}

.premium-mini-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 88px rgba(15,23,42,.15);
  border-color: rgba(var(--primary-rgb), .24);
}

.risk-card {
  border-radius: 24px;
  padding: 20px;
  min-height: 188px;
  position: relative;
  overflow: hidden;
}

.risk-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ink-gradient);
}

.risk-chip,
.metric strong,
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.risk-chip {
  color: var(--primary);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

html[data-theme="dark"] .risk-chip { color: var(--accent); }

.risk-chip:before { display: none; }

.risk-chip .premium-svg,
.metric strong .premium-svg,
.contact-line .premium-svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: 0 0 auto;
  filter: none;
}

/* =========================
   9. Forms / Phone Field
========================= */
.phone-field {
  display: grid;
  grid-template-columns: minmax(190px, .48fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  grid-column: 1 / -1;
}

.country-code {
  font-weight: 900;
  letter-spacing: -.01em;
  padding-right: 34px;
}

.phone-field .phone-input { min-width: 0; }

/* =========================
   10. Contact
========================= */
.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  transition: .25s var(--ease);
}

.contact-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ink-gradient);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(15,23,42,.13);
}

.contact-line {
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
  max-width: 100%;
}

.contact-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-label:after {
  content: ":";
  letter-spacing: 0;
  margin-left: 1px;
}

.email-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 950;
  font-size: clamp(12px, 1.12vw, 15px);
  line-height: 1.25;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

html[data-theme="dark"] .email-link { color: var(--accent); }

.email-link:hover { text-decoration: underline; }

/* =========================
   11. Social / Footer / Legal Nav
========================= */
.premium-social-section {
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), .16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(var(--primary-rgb), .12), transparent 36%),
    var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.premium-social-section:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--ink-gradient);
}

.premium-social-section:after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .18), transparent 65%);
  pointer-events: none;
}

.premium-social-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.premium-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-social {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  background: rgba(var(--primary-rgb), .08);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-social:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--ink-gradient);
  border-color: rgba(var(--accent-rgb), .38);
}

html[data-theme="dark"] .footer-social {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .08);
}

.footer-link {
  color: var(--muted);
  font-weight: 850;
  transition: .2s var(--ease);
  text-decoration: none;
}

.footer-link:hover,
html[data-theme="dark"] .footer-link:hover,
html[data-theme="dark"] nav a:hover {
  color: var(--accent);
}

.footer-email-grid {
  display: grid;
  gap: 8px;
  font-size: clamp(11px, 1vw, 13px);
  color: var(--muted);
  min-width: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.footer-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(var(--primary-rgb), .045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .25s var(--ease), color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.footer-nav-link:hover {
  transform: translateY(-2px);
  color: var(--primary);
  background: rgba(var(--accent-rgb), .09);
  border-color: rgba(var(--accent-rgb), .28);
}

.footer-nav-cta {
  color: #fff;
  background: var(--ink-gradient);
  border-color: rgba(var(--accent-rgb), .32);
  box-shadow: 0 14px 34px rgba(var(--primary-rgb), .18);
}

.footer-nav-cta:hover {
  color: #fff;
  filter: saturate(1.08);
}

html[data-theme="dark"] .footer-nav-link {
  background: rgba(var(--accent-rgb), .055);
  color: var(--muted);
}

html[data-theme="dark"] .footer-nav-link:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .1);
}

html[data-theme="dark"] .footer-nav-cta,
html[data-theme="dark"] .footer-nav-cta:hover {
  color: #120913;
}

/* =========================
   12. Premium Service Pills
========================= */
.premium-services-block {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.premium-services-block .section-kicker { margin-bottom: 14px; }

.premium-service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.premium-service-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(var(--primary-rgb), .06);
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .12);
  flex: 0 0 auto;
}

html[data-theme="dark"] .premium-service-pill {
  background: rgba(var(--accent-rgb), .07);
}

/* =========================
   13. Services Page Grouped Cards
========================= */
.launch-note,
.stakeholder-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), .14), transparent 34%),
    rgba(var(--accent-rgb), .07);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.launch-note-icon,
.stakeholder-note-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--primary);
  background: rgba(var(--primary-rgb), .09);
  border: 1px solid var(--border);
}

.launch-note-icon svg,
.stakeholder-note-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .launch-note-icon,
html[data-theme="dark"] .stakeholder-note-icon {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .09);
}

.service-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-group-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent),
    var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 26px;
  padding: 20px;
  min-height: 218px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.service-group-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--ink-gradient);
}

.service-group-card:after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -76px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .16), transparent 68%);
  pointer-events: none;
}

.service-group-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 88px rgba(15,23,42,.15);
  border-color: rgba(var(--primary-rgb), .24);
}

.service-group-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-group-head .premium-icon {
  flex: 0 0 48px;
  margin-bottom: 0;
}

.service-group-head h3 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -.025em;
}

.service-tag {
  display: block;
  color: var(--primary);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.4;
}

html[data-theme="dark"] .service-tag { color: var(--accent); }

.service-group-card p {
  position: relative;
  z-index: 1;
}

/* =========================
   14. Who We Serve
========================= */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.premium-who-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent),
    var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 18px;
  min-height: 188px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.premium-who-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--ink-gradient);
}

.premium-who-card:after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -62px;
  width: 135px;
  height: 135px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), .15), transparent 68%);
  pointer-events: none;
}

.premium-who-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 88px rgba(15,23,42,.15);
  border-color: rgba(var(--primary-rgb), .24);
}

.who-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.who-card-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -.01em;
}

.who-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--primary);
  background: rgba(var(--primary-rgb), .09);
  border: 1px solid var(--border);
}

.who-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .who-icon {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .09);
}

.premium-who-card p {
  position: relative;
  z-index: 1;
}

/* =========================
   15. Legal Page Content
========================= */
.content-wrap {
  position: relative;
  z-index: 1;
}

.content h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 950;
  margin-top: 2.2rem;
  letter-spacing: -.025em;
  color: var(--text);
}

.content h3 {
  font-size: 1rem;
  font-weight: 950;
  margin-top: 1.4rem;
  color: var(--primary);
}

.content p,
.content li {
  color: var(--muted);
  line-height: 1.8;
}

.content ul,
.content ol {
  padding-left: 1.2rem;
  margin-top: .7rem;
}

.content li { margin-top: .35rem; }

.content a { color: var(--muted); font-weight: 850; }
.content a:hover { color: var(--primary); }

.privacy-note,
.notice-card,
.info-card {
  border: 1px solid var(--border);
  background: rgba(var(--accent-rgb), .08);
  border-radius: 22px;
  padding: 16px;
  color: var(--muted);
  line-height: 1.7;
  box-shadow: var(--shadow-soft);
}

/* =========================
   16. Responsive
========================= */
@media (min-width: 1024px) {
  .footer-nav { justify-content: flex-end; }
}

@media (max-width: 900px) {
  .launch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-social-content { grid-template-columns: 1fr; }
  .premium-social-icons { justify-content: flex-start; }
  .premium-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-group-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .menu-toggle,
  .mobile-menu,
  .mobile-backdrop {
    display: grid;
  }

  .brand-badge {
    width: 39px;
    height: 39px;
    border-radius: 15px;
  }

  .brand-badge img {
    width: 31px;
    height: 31px;
  }
}

@media (max-width: 640px) {
  .btn { width: 100%; }
  .hero-card,
  .panel {
    border-radius: 24px;
  }

  .launch-grid { grid-template-columns: 1fr; }
  .premium-mini-card,
  .risk-card {
    min-height: auto;
  }

  .contact-line {
    white-space: normal;
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .email-link {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 560px) {
  .stakeholder-note { flex-direction: column; }
  .who-grid { grid-template-columns: 1fr; }
  .premium-who-card { min-height: auto; }
}

@media (max-width: 520px) {
  .premium-social-section {
    border-radius: 24px;
    padding: 20px;
  }

  .premium-service-grid { grid-template-columns: 1fr; }

  .premium-service-pill { justify-content: flex-start; }

  .footer-nav {
    width: 100%;
  }

  .footer-nav-link {
    flex: 1 1 calc(50% - 10px);
  }

  .launch-note { flex-direction: column; }
  .service-group-card { min-height: auto; }
  .service-group-head { align-items: flex-start; }
}

@media (max-width: 430px) {
  .footer-email-grid {
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 420px) {
  .phone-field { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .theme-toggle { padding: 5px; }
  .theme-dot {
    width: 29px;
    height: 29px;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
  .mobile-menu {
    left: 14px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.premium-theme-toggle {
  position: relative;
  isolation: isolate;
  min-height: 46px;
  padding: 6px 14px 6px 6px;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), .24);
  background:
    linear-gradient(145deg, rgba(255,255,255,.78), rgba(var(--accent-rgb), .10)),
    var(--surface);
  color: var(--text);
  box-shadow:
    0 16px 42px rgba(var(--primary-rgb), .12),
    inset 0 1px 0 rgba(255,255,255,.72);
  overflow: hidden;
}

.premium-theme-toggle:before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--accent-rgb), .26), transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(var(--primary-rgb), .16), transparent 38%);
  opacity: .9;
}

.premium-theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), .42);
  box-shadow:
    0 20px 52px rgba(var(--primary-rgb), .16),
    inset 0 1px 0 rgba(255,255,255,.78);
}

.theme-toggle-orb {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--ink-gradient);
  box-shadow:
    0 10px 24px rgba(var(--primary-rgb), .24),
    inset 0 1px 0 rgba(255,255,255,.38);
  overflow: hidden;
}

.theme-toggle-orb:after {
  content: "";
  position: absolute;
  inset: 6px auto auto 7px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  filter: blur(.2px);
}

.theme-toggle-icon {
  position: absolute;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.theme-toggle-sun {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.theme-toggle-moon {
  opacity: 0;
  transform: translateY(14px) rotate(-18deg);
}

.theme-toggle-text {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .02em;
}

/* Dark active state */
html[data-theme="dark"] .premium-theme-toggle {
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(var(--accent-rgb), .08)),
    rgba(12,14,20,.86);
  border-color: rgba(var(--accent-rgb), .24);
  box-shadow:
    0 18px 54px rgba(0,0,0,.36),
    inset 0 1px 0 rgba(255,255,255,.10);
}

html[data-theme="dark"] .premium-theme-toggle:hover {
  box-shadow:
    0 22px 64px rgba(0,0,0,.44),
    inset 0 1px 0 rgba(255,255,255,.12);
}

html[data-theme="dark"] .theme-toggle-orb {
  color: #09070a;
  background: linear-gradient(135deg, #d9b46a 0%, #f1d18a 52%, #7c244f 100%);
  box-shadow:
    0 12px 30px rgba(var(--accent-rgb), .18),
    inset 0 1px 0 rgba(255,255,255,.42);
}

html[data-theme="dark"] .theme-toggle-sun {
  opacity: 0;
  transform: translateY(-14px) rotate(18deg);
}

html[data-theme="dark"] .theme-toggle-moon {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

@media (max-width: 390px) {
  .premium-theme-toggle {
    min-height: 42px;
    padding: 5px;
  }

  .theme-toggle-orb {
    width: 32px;
    height: 32px;
  }
}

.glass {
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.16)),
    var(--nav);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 12px 42px rgba(26, 26, 26, .06);
}

html[data-theme="dark"] .glass {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    var(--nav);
  box-shadow: 0 14px 46px rgba(0, 0, 0, .32);
}

.brand-badge {
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), .24), rgba(var(--primary-rgb), .12)),
    var(--surface);
  border: 1px solid rgba(var(--accent-rgb), .34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.46),
    0 18px 42px rgba(var(--primary-rgb), .16);
  overflow: hidden;
}

.brand-badge::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.34), transparent);
  transform: translateX(-120%);
  animation: premiumSheen 6s ease-in-out infinite;
}

.brand-badge img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

@keyframes premiumSheen {
  0%, 48% { transform: translateX(-140%) rotate(8deg); }
  64%, 100% { transform: translateX(140%) rotate(8deg); }
}

.nav-action-row {
  display: flex;
  align-items: center;
  gap: .72rem;
}

.premium-theme-toggle,
.theme-toggle {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  padding: .42rem .76rem .42rem .42rem;
  border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(var(--surface-solid), .92), rgba(var(--accent-rgb), .07)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 14px 35px rgba(var(--primary-rgb), .10);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), .62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 20px 45px rgba(var(--primary-rgb), .16);
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.btn:focus-visible,
.input:focus {
  outline: none;
  box-shadow: var(--ring), var(--shadow-soft);
}

.theme-toggle-orb {
  position: relative;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.62), transparent 28%),
    linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), .24);
  overflow: hidden;
}

.theme-toggle-icon {
  position: absolute;
  font-size: 17px;
  line-height: 1;
  transition: opacity .25s ease, transform .25s ease;
}

