/* ═══════════════════════════════════════════════════════
   PREMIUM EFFECTS — Aceternity UI Inspired
   Lamp · Spotlight · Bento · Moving Border · Meteors
   ═══════════════════════════════════════════════════════ */

/* ── Custom property for animated gradient rotation ── */
@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ═══════════════════════════════════════
   1. HERO — Lamp Illumination
   ═══════════════════════════════════════ */

.hero-lamp {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 85%;
  background: conic-gradient(
    from 270deg at 50% 100%,
    transparent 0deg,
    rgba(184,150,62,0.03) 40deg,
    rgba(184,150,62,0.08) 70deg,
    rgba(184,150,62,0.14) 90deg,
    rgba(184,150,62,0.08) 110deg,
    rgba(184,150,62,0.03) 140deg,
    transparent 180deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(to top, rgba(255,255,255,0.9) 0%, transparent 65%);
  mask: linear-gradient(to top, rgba(255,255,255,0.9) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* Glowing horizon line at lamp base */
.hero-lamp::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(184,150,62,0.4) 20%,
    var(--gold) 50%,
    rgba(184,150,62,0.4) 80%,
    transparent
  );
  box-shadow:
    0 0 40px 8px rgba(184,150,62,0.15),
    0 0 120px 40px rgba(184,150,62,0.06);
}


/* ═══════════════════════════════════════
   2. HERO — Floating Ambient Orbs
   ═══════════════════════════════════════ */

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184,150,62,0.10), transparent 70%);
  top: 5%;
  left: 8%;
  animation: orb-drift-1 28s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,212,255,0.06), transparent 70%);
  top: 45%;
  right: 5%;
  animation: orb-drift-2 32s ease-in-out infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(196,122,106,0.06), transparent 70%);
  bottom: 15%;
  left: 35%;
  animation: orb-drift-3 26s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -35px) scale(1.1); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.08); }
  66% { transform: translate(25px, -20px) scale(0.92); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(35px, 40px) scale(1.05); }
  66% { transform: translate(-45px, -15px) scale(0.97); }
}


/* ═══════════════════════════════════════
   3. FLOATING PARTICLES (reusable)
   ═══════════════════════════════════════ */

.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.particle {
  position: absolute;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  8% { opacity: 0.5; transform: translateY(-15vh) scale(1); }
  80% { opacity: 0.2; }
  100% {
    opacity: 0;
    transform: translateY(-95vh) scale(0.4);
  }
}

/* Override hero child animations for premium decorative elements */
.hero > .hero-lamp,
.hero > .hero-orbs,
.hero > .particles-container {
  animation: none;
}


/* ═══════════════════════════════════════
   4. SPOTLIGHT CARD EFFECT
   Mouse-tracking radial highlight
   ═══════════════════════════════════════ */

.spotlight-card {
  position: relative;
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 10;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(184,150,62,0.08),
    transparent 40%
  );
}

.spotlight-card:hover .spotlight-overlay {
  opacity: 1;
}

/* Spotlight border glow — only where ::after is free */
.spotlight-border {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 11;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(184,150,62,0.3),
    transparent 40%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.spotlight-card:hover .spotlight-border {
  opacity: 1;
}

/* Override sec-cell white hover with subtle premium glow */
.spotlight-card.sec-cell:hover {
  background: rgba(184,150,62,0.04);
}

.spotlight-card.sec-cell.accent:hover {
  background: var(--slate-mid);
}


/* ═══════════════════════════════════════
   5. SECTION LABELS — Shimmer
   ═══════════════════════════════════════ */

.section-label {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold) 35%,
    var(--gold-light) 50%,
    var(--gold) 65%,
    var(--gold) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: label-shimmer 4s ease-in-out infinite;
}

@keyframes label-shimmer {
  0%, 100% { background-position: 100% center; }
  50% { background-position: 0% center; }
}


/* ═══════════════════════════════════════
   6. SECURITY — Bento Grid Layout
   Asymmetric cells, featured hero cell
   ═══════════════════════════════════════ */

.security-grid.bento-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
}

/* Cell 1: Physical Security — wide */
.bento-grid .sec-cell:nth-child(1) {
  grid-column: 1 / 3;
}

/* Cell 2: Network Protection — tall hero */
.bento-grid .sec-cell:nth-child(2) {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Cell 3 + 4: normal small */
.bento-grid .sec-cell:nth-child(3) {
  grid-column: 1 / 2;
}

.bento-grid .sec-cell:nth-child(4) {
  grid-column: 2 / 3;
}

/* Cell 5: Data Isolation — wide */
.bento-grid .sec-cell:nth-child(5) {
  grid-column: 1 / 3;
}

/* Cell 6: Audit — wide */
.bento-grid .sec-cell:nth-child(6) {
  grid-column: 3 / 5;
}

/* Ambient glow inside the hero cell */
.bento-grid .sec-cell:nth-child(2)::after {
  content: '';
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(184,150,62,0.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Number watermark gets bigger in the hero cell */
.bento-grid .sec-cell:nth-child(2)::before {
  font-size: 72px;
}


/* ═══════════════════════════════════════
   7. MOVING BORDER — Featured Pricing
   Rotating conic-gradient border
   ═══════════════════════════════════════ */

.tier-card.featured {
  border: 2px solid transparent;
  border-image: conic-gradient(
    from var(--border-angle),
    var(--gold) 0deg,
    transparent 60deg,
    transparent 180deg,
    var(--gold) 240deg,
    transparent 300deg,
    var(--gold) 360deg
  ) 1;
  animation: rotate-border 6s linear infinite;
}

/* Keep the top gradient bar via ::before */
.tier-card.featured::before {
  z-index: 2;
}

/* When flipped, disable moving border (conflicts with 3D transform) */
.tier-card.featured.flipped {
  border-image: none;
  border-color: var(--gold);
  animation: none;
}

@keyframes rotate-border {
  to { --border-angle: 360deg; }
}


/* ═══════════════════════════════════════
   8. METEORS — Diagonal Streaks
   ═══════════════════════════════════════ */

.meteors-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.meteor {
  position: absolute;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(184,150,62,0.6),
    rgba(184,150,62,0.15),
    transparent
  );
  transform: rotate(-35deg);
  opacity: 0;
  animation: meteor-fall linear infinite;
}

.meteor::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(184,150,62,0.4);
}

@keyframes meteor-fall {
  0% {
    opacity: 0;
    transform: rotate(-35deg) translate(0, -60px);
  }
  3% { opacity: 0.8; }
  60% { opacity: 0.4; }
  100% {
    opacity: 0;
    transform: rotate(-35deg) translate(-600px, 600px);
  }
}


/* ═══════════════════════════════════════
   9. SECTION DIVIDERS — Enhanced hr.rule
   ═══════════════════════════════════════ */

hr.rule {
  border: none;
  height: 80px;
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
  background: transparent;
  overflow: visible;
}

hr.rule::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.35;
}

hr.rule::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0.5;
}


/* ═══════════════════════════════════════
   10. 3D TILT CARDS
   ═══════════════════════════════════════ */

.tilt-card {
  transition: transform 0.25s ease, border-color 0.3s;
  will-change: transform;
}


/* ═══════════════════════════════════════
   11. WHY-US — Creative Staggered Layout
   ═══════════════════════════════════════ */

.why-grid .why-item:nth-child(2) {
  transform: translateY(16px);
}

.why-grid .why-item:nth-child(3) {
  transform: translateY(-8px);
}

.why-grid .why-item:nth-child(4) {
  transform: translateY(8px);
}


/* ═══════════════════════════════════════
   12. AMBIENT SECTION BACKGROUNDS
   Gradient meshes for depth
   ═══════════════════════════════════════ */

/* How it works — warm glow */
#how-section {
  position: relative;
}

#how-section::after {
  content: '';
  position: absolute;
  top: -50px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184,150,62,0.04), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Pricing — subtle gradient backdrop */
#pricing-section {
  position: relative;
  overflow: hidden;
}

#pricing-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.03), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Footer — particles + warm haze */
footer {
  overflow: hidden;
}

footer > .particles-container {
  z-index: 0;
}

footer > * {
  position: relative;
  z-index: 1;
}


/* ═══════════════════════════════════════
   13. ARCHITECTURE — Enhanced Depth
   ═══════════════════════════════════════ */

/* Stagger arch-nodes with slight offset for visual interest */
.arch-stack .arch-node:nth-child(odd) {
  transform: translateX(8px);
}

.arch-stack .arch-node:nth-child(odd):hover {
  transform: translateX(8px);
  border-color: var(--gold);
  box-shadow: 0 2px 20px rgba(184,150,62,0.12);
}

/* Benefits — alternating indent */
.arch-benefits .benefit-item:nth-child(even) {
  margin-left: 20px;
}


/* ═══════════════════════════════════════
   14. PRICING — Glass Morphism Cards
   ═══════════════════════════════════════ */

.tier-card {
  background: transparent;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.tier-face {
  backdrop-filter: blur(12px);
  background: rgba(42,50,64,0.6);
}

.tier-card:not(.flipped):hover {
  transform: translateY(-4px);
}

.tier-card.flipped {
  transform: rotateY(180deg);
}

/* Move overflow:hidden to faces, not the card */
.tier-face {
  overflow: hidden;
}

.tier-back {
  overflow-y: auto;
  overflow-x: hidden;
}

.tier-card.featured > .tier-face {
  background: rgba(30,37,48,0.8);
}


/* ═══════════════════════════════════════
   15. HERO MODELS — Hover Glow
   ═══════════════════════════════════════ */

.model-badge {
  transition: color 0.3s, text-shadow 0.3s;
}

.model-badge:hover {
  text-shadow: 0 0 12px rgba(184,150,62,0.4);
}


/* ═══════════════════════════════════════
   16. PILLS — Enhanced Glass Effect
   ═══════════════════════════════════════ */

.pill {
  backdrop-filter: blur(12px);
  border-radius: 2px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.pill:hover {
  box-shadow: 0 4px 20px rgba(184,150,62,0.12);
}


/* ═══════════════════════════════════════
   17. PREMIUM SECTION REVEAL
   Enhanced entrance for sections
   ═══════════════════════════════════════ */

.premium-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-reveal.premium-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════
   18. AURORA GRADIENT — Animated Hero BG
   Multiple gradient blobs with blend-mode
   (Aceternity: Background Gradient Animation)
   ═══════════════════════════════════════ */

.hero-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  mix-blend-mode: normal;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  will-change: transform;
  mix-blend-mode: screen;
}

.aurora-blob-1 {
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(184,150,62,0.8), transparent 60%);
  top: -10%;
  left: -10%;
  animation: aurora-move-1 25s ease-in-out infinite;
}

.aurora-blob-2 {
  width: 45vw;
  height: 45vh;
  background: radial-gradient(circle, rgba(0,212,255,0.6), transparent 60%);
  top: 30%;
  right: -15%;
  animation: aurora-move-2 30s ease-in-out infinite;
}

.aurora-blob-3 {
  width: 40vw;
  height: 40vh;
  background: radial-gradient(circle, rgba(196,122,106,0.5), transparent 60%);
  bottom: -20%;
  left: 30%;
  animation: aurora-move-3 35s ease-in-out infinite;
}

.aurora-blob-4 {
  width: 35vw;
  height: 35vh;
  background: radial-gradient(circle, rgba(122,200,160,0.4), transparent 60%);
  top: 60%;
  left: -5%;
  animation: aurora-move-4 28s ease-in-out infinite;
}

@keyframes aurora-move-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(15vw, 10vh) rotate(60deg); }
  66% { transform: translate(-5vw, 20vh) rotate(-30deg); }
}

@keyframes aurora-move-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-20vw, -5vh) rotate(-90deg); }
  66% { transform: translate(5vw, -15vh) rotate(45deg); }
}

@keyframes aurora-move-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10vw, -20vh) rotate(120deg); }
  66% { transform: translate(-15vw, 5vh) rotate(-60deg); }
}

@keyframes aurora-move-4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20vw, 15vh) rotate(-45deg); }
  66% { transform: translate(10vw, -10vh) rotate(90deg); }
}

/* Override hero animations for aurora container */
.hero > .hero-aurora {
  animation: none;
}


/* ═══════════════════════════════════════
   19. CTA BUTTONS — Shimmer + Glow
   (Aceternity: Glowing Effect inspired)
   ═══════════════════════════════════════ */

.hero-btn-primary {
  position: relative;
  overflow: hidden;
}

/* Traveling shimmer highlight */
.hero-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  animation: btn-shimmer 4s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

/* Pulsing glow */
.hero-btn-primary {
  animation: btn-glow 3s ease-in-out infinite;
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(184,150,62,0.2); }
  50% { box-shadow: 0 0 30px rgba(184,150,62,0.4), 0 0 60px rgba(184,150,62,0.1); }
}

/* Nav CTA also glows */
.nav-cta {
  animation: btn-glow 3s ease-in-out infinite;
  animation-delay: 1.5s;
}


/* ═══════════════════════════════════════
   20. TEXT GENERATE EFFECT
   Words fade in sequentially on scroll
   (Aceternity: Text Generate Effect)
   ═══════════════════════════════════════ */

.text-reveal .word {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

.text-reveal.text-revealed .word {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Stagger delays for each word — set dynamically by JS */


/* ═══════════════════════════════════════
   21. GRID DOT BACKGROUND
   Subtle dot pattern for sections
   (Aceternity: Grid and Dot Backgrounds)
   ═══════════════════════════════════════ */

.dot-bg {
  position: relative;
}

.dot-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(184,150,62,0.12) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  -webkit-mask: radial-gradient(ellipse at center, white 30%, transparent 70%);
  mask: radial-gradient(ellipse at center, white 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}


/* ═══════════════════════════════════════
   CONTACT MODAL — Aceternity-inspired
   ═══════════════════════════════════════ */

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease, background 0.4s ease, visibility 0s 0.4s;
}

.contact-overlay.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease, background 0.4s ease, visibility 0s 0s;
}

.contact-modal {
  position: relative;
  width: 90%;
  max-width: 540px;
  background: linear-gradient(165deg, #1a2030 0%, #0d1117 50%, #141a22 100%);
  border: 1px solid rgba(184, 150, 62, 0.15);
  border-radius: 20px;
  padding: 48px 40px 36px;
  text-align: center;
  overflow: hidden;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-overlay.active .contact-modal {
  transform: translateY(0) scale(1);
}

/* Animated border glow */
.modal-glow {
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    transparent 0%,
    rgba(184, 150, 62, 0.4) 10%,
    transparent 20%,
    transparent 80%,
    rgba(184, 150, 62, 0.2) 90%,
    transparent 100%
  );
  z-index: -1;
  animation: modal-border-spin 4s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

@keyframes modal-border-spin {
  0%   { --glow-angle: 0deg; }
  100% { --glow-angle: 360deg; }
}

@property --glow-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Floating particles */
.modal-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.modal-particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: modal-particle 6s ease-in-out infinite;
}

.modal-particles span:nth-child(1) { left: 15%; top: 80%; animation-delay: 0s; }
.modal-particles span:nth-child(2) { left: 35%; top: 90%; animation-delay: 1s; }
.modal-particles span:nth-child(3) { left: 55%; top: 85%; animation-delay: 2s; }
.modal-particles span:nth-child(4) { left: 75%; top: 75%; animation-delay: 3s; }
.modal-particles span:nth-child(5) { left: 25%; top: 70%; animation-delay: 4s; }
.modal-particles span:nth-child(6) { left: 65%; top: 95%; animation-delay: 5s; }

@keyframes modal-particle {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-80px); }
}

/* Close button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--divider);
  border-radius: 50%;
  background: rgba(20, 26, 34, 0.8);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  z-index: 2;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

/* Badge */
.modal-badge {
  display: inline-block;
  font-family: 'Goldman', sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184, 150, 62, 0.3);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
  background: rgba(184, 150, 62, 0.05);
}

/* Title */
.modal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.modal-title em {
  font-style: normal;
  color: var(--gold);
}

/* Subtitle */
.modal-subtitle {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 36px;
}

/* Cards row */
.modal-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

/* Individual card */
.modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px 24px;
  border: 1px solid var(--divider);
  border-radius: 14px;
  background: rgba(30, 37, 48, 0.4);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  cursor: pointer;
}

.modal-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow:
    0 8px 30px rgba(184, 150, 62, 0.1),
    0 0 60px rgba(184, 150, 62, 0.05);
}

/* Card spotlight glow */
.modal-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(184, 150, 62, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}

.modal-card:hover .modal-card-glow {
  opacity: 1;
}

/* Card icon */
.modal-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(184, 150, 62, 0.08);
  border: 1px solid rgba(184, 150, 62, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 4px;
  transition: background 0.3s, border-color 0.3s;
}

.modal-card:hover .modal-card-icon {
  background: rgba(184, 150, 62, 0.15);
  border-color: rgba(184, 150, 62, 0.3);
}

.modal-card-icon svg {
  width: 26px;
  height: 26px;
}

/* Card text */
.modal-card-label {
  font-family: 'Goldman', sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-card-value {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.modal-card:hover .modal-card-value {
  color: var(--gold);
}

.modal-card-hint {
  font-family: 'IBM Plex Serif', serif;
  font-size: 0.7rem;
  color: var(--muted);
  opacity: 0.6;
}

/* Footer */
.modal-footer-line {
  width: 40px;
  height: 1px;
  background: var(--divider);
  margin: 0 auto 12px;
}

.modal-footer-text {
  font-family: 'Goldman', sans-serif;
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #556677;
}

/* Mobile */
@media (max-width: 500px) {
  .contact-modal { padding: 40px 24px 28px; }
  .modal-cards { grid-template-columns: 1fr; }
  .modal-title { font-size: 1.5rem; }
}


/* ═══════════════════════════════════════
   22. WAVY SECTION DIVIDER
   SVG wave transition between sections
   ═══════════════════════════════════════ */

.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin: 0;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wave-divider path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.5;
  opacity: 0.2;
}


/* ═══════════════════════════════════════
   23. ENCRYPTED TEXT EFFECT
   For security section titles
   (Aceternity: Encrypted Text)
   ═══════════════════════════════════════ */

.sec-cell h3 {
  transition: letter-spacing 0.3s ease;
}

.sec-cell:hover h3 {
  letter-spacing: 0.06em;
}


/* ═══════════════════════════════════════
   24. RTL OVERRIDES for Premium Effects
   ═══════════════════════════════════════ */

[dir="rtl"] .arch-stack .arch-node:nth-child(odd) {
  transform: translateX(-8px);
}

[dir="rtl"] .arch-stack .arch-node:nth-child(odd):hover {
  transform: translateX(-8px);
}

[dir="rtl"] .arch-benefits .benefit-item:nth-child(even) {
  margin-left: 0;
  margin-right: 20px;
}

[dir="rtl"] .meteor {
  transform: rotate(35deg);
}

[dir="rtl"] hr.rule::before {
  background: linear-gradient(270deg, transparent, var(--gold), transparent);
}


/* ═══════════════════════════════════════
   19. RESPONSIVE — Premium Overrides
   ═══════════════════════════════════════ */

@media (max-width: 900px) {
  .hero-lamp {
    width: 200%;
    height: 60%;
    opacity: 0.7;
  }

  .hero-orbs .orb {
    filter: blur(60px);
  }

  .orb-2,
  .orb-3 {
    display: none;
  }

  .security-grid.bento-grid {
    grid-template-columns: 1fr !important;
  }

  .bento-grid .sec-cell:nth-child(1),
  .bento-grid .sec-cell:nth-child(2),
  .bento-grid .sec-cell:nth-child(3),
  .bento-grid .sec-cell:nth-child(4),
  .bento-grid .sec-cell:nth-child(5),
  .bento-grid .sec-cell:nth-child(6) {
    grid-column: 1 !important;
    grid-row: auto !important;
    min-height: auto !important;
  }

  .bento-grid .sec-cell:nth-child(2)::before {
    font-size: 48px;
  }

  .meteors-wrap {
    display: none;
  }

  .why-grid .why-item:nth-child(2),
  .why-grid .why-item:nth-child(3),
  .why-grid .why-item:nth-child(4) {
    transform: none;
  }

  .arch-stack .arch-node:nth-child(odd) {
    transform: none;
  }

  .arch-benefits .benefit-item:nth-child(even) {
    margin-left: 0;
  }

  hr.rule {
    height: 50px;
  }

  .section-divider {
    height: 50px;
  }

  .tier-card:not(.flipped):hover {
    transform: none;
  }
  .tier-card.flipped {
    transform: rotateY(180deg);
  }

  /* Aurora: simplify on mobile */
  .hero-aurora .aurora-blob {
    filter: blur(80px);
    opacity: 0.08;
  }

  .aurora-blob-3,
  .aurora-blob-4 {
    display: none;
  }

  /* Wave dividers: smaller on mobile */
  .wave-divider {
    height: 50px;
  }

  /* Dot background: lighter on mobile */
  .dot-bg::before {
    background-size: 32px 32px;
  }
}
