/* SafeCyberBridge — Professional Redesign v2 */
/* Aesthetic: Dark charcoal + warm gold, editorial serif headings */

/* ================================================================
   FONTS — loaded via <link> in HTML
   ================================================================ */

/* ================================================================
   TOKENS
   ================================================================ */
:root {
  --ink:           #0d1117;
  --ink-soft:      #1c2333;
  --surface:       #111827;
  --surface-2:     #161f2e;
  --surface-3:     #1e2a3a;
  --border:        rgba(255,255,255,0.07);
  --border-bright: rgba(255,255,255,0.13);

  --gold:          #c9a84c;
  --gold-light:    #e8c97a;
  --gold-dim:      rgba(201,168,76,0.13);

  --text:          #e8eaf0;
  --text-muted:    #8896aa;
  --text-dim:      #4f5d73;

  --success:       #22c55e;
  --danger:        #ef4444;

  --ff-display:    'Playfair Display', Georgia, serif;
  --ff-body:       'DM Sans', system-ui, sans-serif;
  --ff-mono:       'DM Mono', 'Courier New', monospace;

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
fieldset { border: none; }

/* ================================================================
   SKIP LINK
   ================================================================ */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--gold); color: var(--ink);
  padding: .5rem 1rem; border-radius: 4px;
  font-weight: 600; z-index: 10000;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ================================================================
   PRELOADER — JS adds .hidden, then display:none
   ================================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  transition: opacity .5s ease;
}
.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}
.preloader p {
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .15em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.loader {
  width: 36px; height: 36px;
  border: 2px solid var(--border-bright);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   PARTICLES — JS creates .particle elements
   ================================================================ */
.particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.25;
  animation: particleFloat 6s ease-in-out infinite;
}
@keyframes particleFloat {
  0%,100% { transform: translateY(0) scale(1); opacity: 0.25; }
  50%      { transform: translateY(-30px) scale(1.4); opacity: 0.5; }
}

/* ================================================================
   CONTAINER
   ================================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ================================================================
   HEADER / NAV
   ================================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s;
}
.header.scrolled {
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--border);
}
.header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.logo i { color: var(--gold); font-size: 1.05rem; }

/* Nav menu — JS toggles .active for mobile */
.nav-menu {
  display: flex; align-items: center; gap: .2rem;
}
.nav-menu li a {
  display: block;
  padding: .45rem .85rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-menu li a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-menu li:last-child a {
  background: var(--gold); color: var(--ink);
  font-weight: 600; padding: .45rem 1.1rem;
}
.nav-menu li:last-child a:hover { background: var(--gold-light); }

.mobile-menu-btn {
  display: none;
  color: var(--text); font-size: 1.2rem;
  padding: .4rem; line-height: 1;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 15% 80%, rgba(99,179,237,0.03) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; right: -100px; top: 60px;
  width: 550px; height: 550px;
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 740px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 1.4rem;
}
.hero-title em { font-style: normal; color: var(--gold); }

.hero-subtitle {
  font-size: clamp(.95rem, 1.8vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-bottom: 2.75rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-stat-number {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: .3rem;
}

.cta-container { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ================================================================
   BUTTONS
   ================================================================ */
.cta-primary, .cta-secondary,
.btn, .btn-primary, .btn-secondary, .btn-success {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.75rem;
  font-family: var(--ff-body);
  font-size: .9rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all .22s var(--ease-out);
  letter-spacing: .01em;
  cursor: pointer;
  border: 1px solid transparent;
}
.cta-primary, .btn-primary {
  background: var(--gold); color: var(--ink);
  border-color: var(--gold);
}
.cta-primary:hover, .btn-primary:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.22);
}
.cta-secondary, .btn-secondary {
  background: transparent; color: var(--text);
  border-color: var(--border-bright);
}
.cta-secondary:hover, .btn-secondary:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}
.btn-success {
  background: var(--success); color: #fff;
  border-color: var(--success);
}
.btn-success:hover {
  background: #16a34a; border-color: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34,197,94,0.22);
}

/* ================================================================
   FLOATING CARD (hero accent)
   ================================================================ */
.floating-card-2 {
  position: absolute;
  right: 7%; bottom: 20%;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 1rem 1.3rem;
  display: flex; align-items: center; gap: .85rem;
  animation: cardFloat 5s ease-in-out infinite;
  z-index: 3;
  min-width: 180px;
}
@keyframes cardFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.floating-card-2 .card-icon { font-size: 1.5rem; line-height: 1; }
.floating-card-2 h4 { font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .1rem; }
.floating-card-2 p  { font-size: .72rem; color: var(--text-muted); margin: 0; }

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 96px 0; position: relative; }
.section-dark     { background: var(--surface); }
.section-gradient { background: linear-gradient(180deg, var(--ink) 0%, var(--surface) 100%); }
.consultation-section { background: var(--surface); }

.section-header { max-width: 620px; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: .9rem;
}
.section-subtitle {
  font-size: .98rem;
  color: var(--text-muted);
  line-height: 1.75;
}
/* Gold underline on section headers */
.section-header .section-subtitle {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* ================================================================
   SERVICE CARDS GRID
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
/* Inner borders via gap trick */
.services-grid .service-card:not(:nth-child(3n)) {
  border-right: 1px solid var(--border);
}
.services-grid .service-card:nth-child(-n+3) {
  border-bottom: 1px solid var(--border);
}

.service-card {
  background: var(--ink);
  padding: 2.25rem 1.85rem;
  position: relative;
  overflow: hidden;
  transition: background .25s;
}
.service-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s var(--ease-out);
}
.service-card:hover { background: var(--surface-2); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.35rem;
  font-size: 1rem;
  color: var(--gold);
  background: var(--gold-dim);
  transition: border-color .25s, background .25s;
}
.service-card:hover .service-icon {
  border-color: rgba(201,168,76,0.45);
  background: rgba(201,168,76,0.18);
}
.service-title {
  font-family: var(--ff-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .55rem;
}
.service-description {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 1.1rem;
}
.service-features { display: flex; flex-direction: column; gap: .42rem; }
.service-features li {
  font-size: .8rem;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.service-features li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--gold); font-size: .7rem;
  top: .05em;
}

/* ================================================================
   FEATURE CARDS
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  padding: 1.85rem 1.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .25s, transform .3s var(--ease-out);
}
.feature-card:hover {
  border-color: rgba(201,168,76,0.28);
  transform: translateY(-3px);
}
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 6px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-size: .95rem;
}
.feature-card h3 {
  font-family: var(--ff-display);
  font-size: .98rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .5rem;
}
.feature-card p { font-size: .86rem; color: var(--text-muted); line-height: 1.7; }

/* ================================================================
   CONSULTATION FORM
   ================================================================ */
.form-container {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

/* Progress bar */
.form-progress {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--ink);
}
.progress-step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: .3rem;
  padding: 1.1rem .5rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s, background .25s;
}
.progress-step i { font-size: .9rem; }
/* JS sets .active on progress steps */
.progress-step.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}

/* Form steps — JS sets .active to show */
.form-step { display: none; padding: 2.25rem; }
.form-step.active { display: block; }

.step-title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.form-input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--border-bright);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: .9rem;
  padding: .72rem .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
/* select arrow */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238896aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
}
select.form-input option { background: var(--surface); color: var(--text); }
input[type="date"].form-input { color-scheme: dark; }
.form-textarea { min-height: 120px; resize: vertical; }

/* Error states — JS adds .error class to .form-group */
.form-group.error .form-input { border-color: var(--danger); }
.error-message {
  font-size: .76rem;
  color: var(--danger) !important;
  margin-top: .35rem;
  display: none;
  line-height: 1.4;
}
/* JS appends error-message divs and sets .color inline — we override */
.form-group.error .error-message,
.consent-section.error .error-message {
  display: block;
}

/* Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
  margin-top: .65rem;
}
.checkbox-label {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .86rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 15px; height: 15px; min-width: 15px;
  margin-top: .18rem;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Consent box */
.consent-section {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.14);
  border-radius: 8px;
  padding: 1.4rem;
  margin: 1.4rem 0;
}
.consent-section .checkbox-label {
  color: var(--text-muted); font-size: .84rem; margin-bottom: .75rem;
}
.consent-section .checkbox-label:last-child { margin-bottom: 0; }
.consent-section a { color: var(--gold); text-decoration: underline; }

/* Review summary — step 4 */
.review-content {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.4rem;
}
.review-content h4 {
  font-family: var(--ff-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 1.1rem 0 .5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.review-content h4:first-child {
  margin-top: 0; padding-top: 0; border-top: none;
}
.review-content p {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: .3rem;
}
.review-content strong { color: var(--text); }

/* Form nav bar — bottom of form */
.form-navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .9rem;
  padding: 1.25rem 2.25rem;
  border-top: 1px solid var(--border);
  background: rgba(13,17,23,0.5);
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.contact-card {
  padding: 2.25rem 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: border-color .25s, transform .3s var(--ease-out);
}
.contact-card:hover {
  border-color: rgba(201,168,76,0.3);
  transform: translateY(-3px);
}
.contact-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem;
  margin: 0 auto 1.15rem;
}
.contact-card h3 {
  font-family: var(--ff-display);
  font-size: .98rem; font-weight: 600;
  color: #fff; margin-bottom: .45rem;
}
.contact-card p {
  font-size: .88rem; color: var(--text-muted); margin-bottom: .4rem;
}
.contact-card a { color: var(--gold); }
.contact-card a:hover { color: var(--gold-light); }
.contact-card span {
  font-size: .7rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--success);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2.5rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.footer-section h3 {
  font-family: var(--ff-display);
  font-size: .9rem; font-weight: 600;
  color: #fff; margin-bottom: 1.1rem;
}
.footer-section > p {
  font-size: .83rem; color: var(--text-dim);
  line-height: 1.75; margin-bottom: .45rem;
}
.footer-section > p i { color: var(--gold); margin-right: .45rem; width: 14px; }
.footer-section a {
  display: block; font-size: .83rem;
  color: var(--text-dim); margin-bottom: .5rem;
  transition: color .2s;
}
.footer-section a:hover { color: var(--gold); }
.social-links { display: flex; gap: .65rem; margin-top: 1.1rem; }
.social-link {
  width: 34px; height: 34px;
  border: 1px solid var(--border-bright);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: .82rem;
  transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover {
  border-color: var(--gold); color: var(--gold);
  background: var(--gold-dim);
}
.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap;
  gap: .85rem; justify-content: space-between; align-items: flex-start;
}
.footer-bottom p { font-size: .78rem; color: var(--text-dim); }
.disclaimer { max-width: 580px; line-height: 1.6 !important; }

/* ================================================================
   LOADING OVERLAY — JS adds/removes .show
   ================================================================ */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(13,17,23,0.9);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 1.25rem;
}
.loading-overlay.show { display: flex; }
.loading-spinner {
  width: 38px; height: 38px;
  border: 2px solid var(--border-bright);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.loading-content { text-align: center; }
.loading-content h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem; color: #fff;
  margin-bottom: .35rem;
}
.loading-content p { font-size: .84rem; color: var(--text-muted); }

/* ================================================================
   NOTIFICATION — JS sets class="notification notification-success|notification-error"
                   then adds .show
   ================================================================ */
.notification {
  position: fixed;
  bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 1rem 2.5rem 1rem 1.2rem;
  max-width: 360px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s;
  font-size: .88rem; color: var(--text);
  line-height: 1.5;
}
.notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* JS builds class like "notification notification-success" */
.notification.notification-success,
.notification.success { border-color: rgba(34,197,94,0.4); }
.notification.notification-error,
.notification.error   { border-color: rgba(239,68,68,0.4); }

.notification-close {
  position: absolute; top: .55rem; right: .75rem;
  color: var(--text-dim); font-size: 1.05rem;
  transition: color .2s; line-height: 1;
}
.notification-close:hover { color: var(--text); }

/* ================================================================
   SUCCESS MESSAGE (injected by JS into .form-container)
   ================================================================ */
.success-message-wrapper {
  text-align: center;
  padding: 3rem 2rem;
}
.success-message-wrapper .success-icon {
  font-size: 3.5rem; color: var(--success);
  margin-bottom: 1.25rem;
}
.success-message-wrapper h3 {
  font-family: var(--ff-display);
  font-size: 1.6rem; color: var(--success);
  margin-bottom: 1rem;
}
.success-message-wrapper p { color: var(--text-muted); line-height: 1.7; margin-bottom: .75rem; }
.tracking-box {
  background: var(--ink);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 8px;
  padding: 1.5rem; margin: 1.75rem 0;
}
.tracking-box h4 { color: var(--success); margin-bottom: .75rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.tracking-id {
  font-family: var(--ff-mono);
  font-size: 1.3rem; font-weight: 600;
  color: var(--success); margin-bottom: .65rem;
}
.next-steps {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem; margin: 1.5rem 0;
  text-align: left;
}
.next-steps h4 { color: #fff; margin-bottom: 1rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.next-step-item {
  display: flex; align-items: center; gap: .85rem;
  margin-bottom: .85rem; font-size: .88rem; color: var(--text-muted);
}
.next-step-item:last-child { margin-bottom: 0; }
.step-num {
  width: 24px; height: 24px; min-width: 24px;
  background: var(--success); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
}

/* ================================================================
   BACK-TO-TOP (added by JS)
   ================================================================ */
.back-to-top {
  position: fixed; bottom: 2rem; left: 2rem;
  width: 40px; height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .9rem;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  z-index: 50;
}
.back-to-top:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ================================================================
   TOOLTIP (added by JS)
   ================================================================ */
.tooltip {
  position: absolute; z-index: 200;
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: .78rem;
  padding: .4rem .7rem;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}

/* ================================================================
   MISC / UTILITY
   ================================================================ */
.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;
}
.interactive-hover { transition: transform .3s var(--ease-out); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:not(:nth-child(3n)) { border-right: none; }
  .services-grid .service-card:nth-child(-n+3) { border-bottom: none; }
  .services-grid .service-card:not(:nth-child(2n)) { border-right: 1px solid var(--border); }
  .services-grid .service-card:nth-child(-n+4) { border-bottom: 1px solid var(--border); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
}

@media (max-width: 860px) {
  /* Mobile nav — JS toggles .active */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--ink);
    padding: 1.5rem;
    gap: .2rem;
    z-index: 99;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }
  .nav-menu.active { display: flex; }
  .nav-menu li a { font-size: .95rem; padding: .75rem 1rem; }
  .nav-menu li:last-child a { margin-top: .5rem; text-align: center; }
  .mobile-menu-btn { display: block; }

  .floating-card-2 { display: none; }
  .hero { padding: 96px 0 56px; }
  .hero-stats { gap: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; border-radius: 8px; }
  .services-grid .service-card { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .services-grid .service-card:last-child { border-bottom: none !important; }

  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .form-step { padding: 1.6rem; }
  .form-navigation { padding: 1.1rem 1.6rem; }

  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .container { padding: 0 1.1rem; }
  .header nav { padding: 0 1.1rem; }
  .hero-title { font-size: 2.1rem; }
  .cta-container { flex-direction: column; }
  .cta-primary, .cta-secondary { width: 100%; justify-content: center; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .progress-step span { display: none; }
  .progress-step { padding: 1rem .4rem; }
}
