@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #040b1a;
  --blue-bright: #4a7fff;
  --blue-glow: #6ec6ff;
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.13);
  --white: #ffffff;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
  background: var(--navy);
  color: var(--white);
  cursor: none;
}

/* ── Custom Cursor ── */
#cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: rgba(160,200,255,0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .15s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(100,180,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: left .08s ease-out, top .08s ease-out, width .2s, height .2s;
}
body:has(button:hover) #cursor,
body:has(a:hover) #cursor,
body:has(.rate-card:hover) #cursor { width: 20px; height: 20px; background: rgba(200,230,255,1); }
body:has(button:hover) #cursor-ring,
body:has(a:hover) #cursor-ring,
body:has(.rate-card:hover) #cursor-ring { width: 50px; height: 50px; }

/* ── Background layers ── */
#bg-layer {
  position: fixed; inset: 0;
  z-index: 0;
  
}

#bg-aurora-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.9;
}

#bg-overlay {
  position: absolute; inset: 0;
  background-image: url(images/bg.png);
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

#bg-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* ── Lens image (bottom-right) ── */
#lens-img-wrap {
  position: fixed;
  bottom: -30px; right: -50px;
  width: 600px; height: 500px;
  z-index: 2;
  pointer-events: none;
  animation: lensFloat 9s ease-in-out infinite;
}
#lens-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
  mask-image: radial-gradient(ellipse 75% 75% at 65% 65%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 65% 65%, black 30%, transparent 80%);
}
@keyframes lensFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  40%     { transform: translateY(-22px) rotate(2deg); }
  70%     { transform: translateY(10px) rotate(-1.5deg); }
}

/* ── Mouse glow ── */
#mouse-glow {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,100,255,0.10) 0%, transparent 68%);
  pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: 3;
}

/* ── Page layout ── */
.page {
  position: relative;
  z-index: 10;
  width: 100%; height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 40px;
}

/* ── Logo ── */
.logo-wrap {
  position: fixed;
  top: 30px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.93);
  border-radius: 12px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  /* NO transform hover — prevents layout shake */
  transition: box-shadow 0.22s;
  animation: fadeDown 0.8s ease both;
  box-shadow: 0 2px 18px rgba(0,0,0,0.3);
  z-index: 50;
  white-space: nowrap;
}
.logo-wrap:hover {
  box-shadow: 0 8px 32px rgba(80,140,255,0.35);
}
/* logo image responsive */
.logo-wrap img.logo { max-width: 160px; width: 100%; height: auto; display: block; }



/* ── Headline ── */
.headline-wrap {
  text-align: center;
  animation: fadeUp 1s 0.35s ease both;
  /* Prevent layout reflow from nearby hover states */
  will-change: opacity, transform;
  transform: translateZ(0);
  
}
.headline {
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-size: 30px;
}
.headline .word-normal {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #dce8ff;
}
.headline .word-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(195,210,255,0.48);
}

/* ── CTA Button ── */
.cta-btn {
  margin-top: 34px;
  padding: 14px 50px;
  background: linear-gradient(135deg, #253488 0%, #3a5ad4 100%);
  border: 1px solid rgba(120,165,255,0.45);
  border-radius: 50px;
  color: #ccdeff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s;
  animation: fadeUp 1s 0.55s ease both;
  box-shadow: 0 4px 28px rgba(50,80,200,0.45);
}
.cta-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.cta-btn:hover { box-shadow: 0 10px 38px rgba(80,120,255,0.65); }
.cta-btn:hover::before { opacity: 1; }
.cta-btn:active { transform: scale(0.97); }

/* ── Rate Cards ── */
.cards-row {
  display: flex;
  gap: 22px;
  margin-top: 44px;
  animation: fadeUp 1s 0.75s ease both;
}
.rate-card {
  background: rgba(14,26,70,0.62);
  border: 1px solid rgba(100,155,255,0.22);
  border-radius: 22px;
  padding: 28px 46px;
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s;
  position: relative;
  overflow: hidden;
  min-width: 175px;
}
.rate-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(80,145,255,0.1), transparent 65%);
  opacity: 0; transition: opacity 0.3s;
}
.rate-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 52px rgba(55,115,255,0.32);
  border-color: rgba(100,185,255,0.5);
}
.rate-card:hover::before { opacity: 1; }
.rate-label {
  font-size: 14px; font-weight: 500;
  color: rgba(175,200,255,0.72);
  letter-spacing: 0.02em;
  margin-bottom: 9px;
}
.rate-value {
  font-size: 29px; font-weight: 700;
  color: #78b0ff;
  letter-spacing: -0.01em;
  transition: color 0.22s;
}
.rate-card:hover .rate-value { color: #aad2ff; }

.live-badge {
  position: absolute; top: 10px; right: 13px;
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: rgba(100,220,130,0.85); font-weight: 500;
}
.live-dot {
  width: 6px; height: 6px;
  background: #4cd88a; border-radius: 50%;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:0.45; transform:scale(0.65); }
}

/* ── Social Icons ── */
.social-row {
  position: fixed;
  bottom: 30px; left: 34px;
  display: flex; gap: 13px;
  z-index: 20;
  animation: fadeUp 1s 1.1s ease both;
}
.social-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.22s, background 0.22s, border-color 0.22s;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
}
.social-btn:hover {
  background: rgba(70,130,255,0.28);
  border-color: rgba(100,185,255,0.55);
  color: white;
  opacity: 0.95;
}
.social-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Tooltip ── */
#tooltip {
  position: fixed;
  background: rgba(8,18,55,0.92);
  border: 1px solid rgba(100,165,255,0.3);
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 13px; color: #b0d0ff;
  pointer-events: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s;
  z-index: 300;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
#tooltip.visible { opacity: 1; transform: translateY(0); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2,6,20,0.72);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: linear-gradient(155deg, #0c1840 0%, #060d26 100%);
  border: 1px solid rgba(100,165,255,0.25);
  border-radius: 26px;
  padding: 38px 42px;
  min-width: 320px; max-width: 490px; width: 90%;
  transform: scale(0.88) translateY(22px);
  transition: transform 0.32s cubic-bezier(.22,1,.36,1);
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal h2 { font-size: 22px; font-weight: 600; color: #c4daff; margin-bottom: 5px; }
.modal-sub { font-size: 13px; color: rgba(145,168,220,0.68); margin-bottom: 26px; }

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(100,165,255,0.14);
  border-radius: 15px;
  padding: 18px 16px;
  text-align: center;
  transition: background 0.2s;
}
.modal-card:hover { background: rgba(80,130,255,0.1); }
.modal-card .mlabel { font-size: 12px; color: rgba(155,180,255,0.65); margin-bottom: 7px; }
.modal-card .mval   { font-size: 26px; font-weight: 700; color: #78b0ff; }

.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  color: rgba(175,200,255,0.45);
  font-size: 24px; cursor: pointer;
  transition: color 0.2s; line-height: 1;
}
.modal-close:hover { color: white; }

.modal-note {
  margin-top: 20px; font-size: 11px;
  color: rgba(120,145,200,0.5);
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.modal-note-dot { width: 6px; height: 6px; background: #4cd88a; border-radius: 50%; animation: pulseDot 2s infinite; }

/* ── Keyframes ── */
@keyframes fadeDown {
  from { opacity:0; transform:translateY(-22px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(32px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ════════════════════════════════════════
   RESPONSIVE — full breakpoint system
   ════════════════════════════════════════

   Breakpoints:
   xs  — up to 480px   (small phones)
   sm  — 481–768px     (large phones / phablets)
   md  — 769–1024px    (tablets / small laptops)
   lg  — 1025–1280px   (desktops)
   xl  — 1281px+       (large / wide screens)
*/

/* ── Touch devices: hide custom cursor, restore native ── */
@media (hover: none) and (pointer: coarse) {
  html, body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}

/* ── XL — large / ultrawide screens ── */
@media (min-width: 1600px) {
  .logo-wrap { top: 40px; }
  .logo-wrap img.logo { max-width: 190px; }
  .page { padding: 52px 60px 60px; }
  .headline { font-size: clamp(80px, 6vw, 110px); }
  .rate-card { padding: 34px 58px; min-width: 200px; }
  .rate-value { font-size: 34px; }
  .cards-row { gap: 28px; margin-top: 52px; }
  .cta-btn { padding: 16px 60px; font-size: 16px; margin-top: 40px; }
  #lens-img-wrap { width: 720px; height: 600px; }
}

/* ── LG — standard desktops (1025–1280) ── */
@media (max-width: 1280px) {
  #lens-img-wrap { width: 520px; height: 440px; right: -40px; }
}

/* ── MD — tablets & small laptops (769–1024) ── */
@media (max-width: 1024px) {
  .page { padding: 32px 32px 40px; }
  #lens-img-wrap {
    width: 400px; height: 340px;
    right: -30px; bottom: -20px;
    opacity: 0.7;
  }
  .headline { font-size: clamp(44px, 6.5vw, 72px); }
  .rate-card { padding: 24px 38px; }
  .cards-row { gap: 18px; margin-top: 38px; }
  .cta-btn { margin-top: 30px; }
  .modal { padding: 32px 34px; }
}

/* ── SM — large phones / phablets (481–768) ── */
@media (max-width: 768px) {
  .page {
    padding: 80px 20px 80px;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    justify-content: center;
  }

  /* Allow body scroll on small screens */
  html, body { overflow: auto; }

  /* headline-wrap no margin needed */

  .headline {
    font-size: clamp(36px, 9vw, 58px);
    line-height: 1.08;
  }

  .cta-btn {
    margin-top: 28px;
    padding: 13px 40px;
    font-size: 14px;
  }

  .cards-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    margin-bottom: 24px;
    width: 100%;
  }

  .rate-card {
    padding: 20px 28px;
    flex: 1 1 140px;
    max-width: 200px;
    min-width: 130px;
  }

  .rate-value { font-size: 24px; }
  .rate-label { font-size: 13px; }

  #lens-img-wrap {
    width: 280px; height: 240px;
    right: -20px; bottom: 60px;
    opacity: 0.5;
  }

  .logo-wrap { top: 20px; padding: 7px 14px; }
  .logo-wrap img.logo { max-width: 130px; }
  .social-row {
    bottom: 20px; left: 20px;
    gap: 10px;
  }
  .social-btn { width: 40px; height: 40px; }
  .social-btn svg { width: 18px; height: 18px; }

  .modal { padding: 28px 24px; border-radius: 20px; }
  .modal h2 { font-size: 19px; }
  .modal-grid { gap: 10px; }
  .modal-card { padding: 14px 10px; }
  .modal-card .mval { font-size: 22px; }
}

/* ── XS — small phones (up to 480) ── */
@media (max-width: 480px) {
  .logo-wrap { top: 14px; padding: 6px 12px; }
  .logo-wrap img.logo { max-width: 110px; }
  .page { padding: 24px 16px 80px; }

  .logo-wrap { padding: 8px 14px; gap: 8px; }
  .logo-icon { width: 30px; height: 30px; font-size: 14px; border-radius: 6px; }
  .logo-name { font-size: 12px; }
  .logo-sub  { font-size: 9px; }

  .headline-wrap { margin-top: 36px; }
  .headline { font-size: clamp(32px, 10vw, 46px); }

  .cta-btn {
    margin-top: 24px;
    padding: 12px 32px;
    font-size: 13px;
  }

  .cards-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 20px;
  }

  .rate-card {
    width: 100%;
    max-width: 280px;
    padding: 18px 24px;
    border-radius: 16px;
  }

  .rate-value { font-size: 26px; }

  #lens-img-wrap {
    width: 220px; height: 190px;
    right: -15px; bottom: 50px;
    opacity: 0.4;
  }

  .social-row { bottom: 16px; left: 16px; }

  .modal { padding: 24px 18px; border-radius: 18px; }
  .modal h2 { font-size: 18px; }
  .modal-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .modal-card { padding: 12px 8px; }
  .modal-card .mval { font-size: 20px; }
  .modal-card .mlabel { font-size: 11px; }
}

/* ── Landscape phones — short viewport fix ── */
@media (max-height: 500px) and (orientation: landscape) {
  .page {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    padding: 20px 32px 60px;
    justify-content: flex-start;
    align-items: center;
  }
  html, body { overflow: auto; }

  .headline-wrap { margin-top: 20px; }
  .headline { font-size: clamp(28px, 5vw, 46px); }

  .cards-row {
    flex-direction: row;
    gap: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .rate-card { padding: 14px 28px; }
  .rate-value { font-size: 22px; }
  .cta-btn { margin-top: 18px; padding: 11px 36px; }

  #lens-img-wrap {
    width: 200px; height: 180px;
    right: 0; bottom: 0;
    opacity: 0.45;
  }
}

/* ── Injected image backgrounds ── */
