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

:root {
  --black: #000000;
  --deep: #080a0f;
  --surface: #0d1020;
  --surface2: #111526;
  --faint: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.07);
  --border-md: rgba(255, 255, 255, 0.11);

  --blue: #1468F0;
  --blue-b: #3d8bff;
  --blue-s: #85b7eb;
  --blue-glow: rgba(20, 104, 240, 0.18);

  --white: #ffffff;
  --off-white: #f5f5f7;
  --gray1: #1d1d1f;
  --gray3: #6e6e73;
  --gray4: #86868b;

  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'Epilogue', 'Helvetica Neue', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-full: 980px;

  --purple: #6a11cb;
  --purple-glow: rgba(106, 17, 203, 0.18);
}

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

html, body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-b);
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* ── Background ── */
.glow-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none
}

.glow-bg-1 {
  top: -20vh;
  left: 20vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(20, 104, 240, 0.11), transparent 70%)
}

.glow-bg-2 {
  bottom: -10vh;
  right: -10vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(61, 139, 255, 0.07), transparent 70%)
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px
}

/* ── Nav ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all .3s ease;

  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.8);
  border-bottom-color: var(--border);
  height: 50px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(20, 104, 240, 0.35);
}

.logo-text {
  font-family: var(--font-b);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--white)
}

.blue-x {
  color: var(--blue-b);
  font-weight: 400
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px
}

.nav-link {
  color: var(--gray4);
  text-decoration: none;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .3px;
  transition: color .2s
}

.nav-link:hover {
  color: var(--white)
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.nav-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0px);
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: var(--gray4);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.dropdown-content a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--r-full);
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 300;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .25s var(--ease);
  letter-spacing: .3px;
}

.btn-large {
  padding: 13px 28px;
  font-size: 15px
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 104, 240, 0.3)
}

.btn-primary:hover {
  background: #1d7cf5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 104, 240, 0.4)
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid var(--border-md)
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px)
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: all .3s var(--ease);
}

.mobile-nav.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

.mobile-nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 300;
  padding: 8px 0
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px;
  text-align: center;
  overflow: visible;
}

.hero-content {
  max-width: 820px;
  overflow: hidden;
  padding: 0 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(20, 104, 240, 0.08);
  border: 1px solid rgba(20, 104, 240, 0.25);
  border-radius: var(--r-full);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--blue-b);
  font-weight: 300;
  margin-bottom: 36px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-b);
  flex-shrink: 0
}

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.3px;
  margin-bottom: 28px;
  overflow: visible;
  padding-top: 4px;
}

.hero-title em {
  font-style: italic;
  color: var(--blue-b);
  background: linear-gradient(90deg, var(--blue-b), var(--blue-s));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray4);
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 48px;
  letter-spacing: -.1px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center
}

/* ── Mockup ── */
.hero-mockup-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 80px auto 0;
  padding: 0 48px
}

.browser-mockup {
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: perspective(1000px) rotateX(4deg);
  transition: transform .5s var(--ease);
}

.browser-mockup:hover {
  transform: perspective(1000px) rotateX(0deg)
}

.browser-header {
  background: #0a0d16;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%
}

.browser-dots span:nth-child(1) {
  background: #ff5f57
}

.browser-dots span:nth-child(2) {
  background: #febc2e
}

.browser-dots span:nth-child(3) {
  background: #28c840
}

.browser-url {
  font-size: 11px;
  color: var(--gray4);
  letter-spacing: .3px;
  font-weight: 300;
  margin: 0 auto
}

.browser-body {
  padding: 28px 28px 24px;
  background: var(--black)
}

.mockup-chat {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.mockup-message {
  display: flex
}

.mockup-message.user {
  justify-content: flex-end
}

.mockup-message.assistant {
  gap: 10px;
  align-items: flex-start
}

.mockup-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(20, 104, 240, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.mockup-bubble {
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 300;
  max-width: 85%;
}

.mockup-message.user .mockup-bubble {
  background: var(--surface2);
  border: 1px solid var(--border-md);
  color: var(--white)
}

.assistant-bubble {
  color: var(--off-white)
}

.assistant-bubble p {
  margin-bottom: 8px
}

.assistant-bubble ul {
  padding-left: 18px
}

.assistant-bubble li {
  margin-bottom: 4px;
  color: var(--gray4)
}

.assistant-bubble strong {
  color: var(--blue-b);
  font-weight: 400
}

.mockup-search-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(20, 104, 240, 0.08);
  border: 1px solid rgba(20, 104, 240, 0.2);
  border-radius: var(--r-full);
  font-size: 11px;
  color: var(--blue-b);
  font-weight: 300;
  letter-spacing: .5px;
  margin-left: 38px;
}

/* ── Ticker ── */
.ticker-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.ticker-inner {
  display: inline-flex;
  animation: ticker 32s linear infinite
}

.ticker-inner span {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--gray3);
  font-weight: 300;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 20px
}

.t-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .5
}

@keyframes ticker {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

/* ── Sections ── */
.features {
  padding: 120px 0;
  border-top: 1px solid var(--border)
}

.how-it-works {
  padding: 120px 0;
  border-top: 1px solid var(--border)
}

.section-header {
  text-align: center;
  margin-bottom: 72px
}

.section-label {
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--blue-b);
  font-weight: 300;
  margin-bottom: 20px
}

.section-header h2 {
  font-family: var(--font-d);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.2px;
  margin-bottom: 20px;
}

.section-header h2 em {
  font-style: italic;
  color: var(--blue-b)
}

.section-sub {
  font-size: 17px;
  color: var(--gray4);
  font-weight: 300;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border)
}

.feature-card {
  background: var(--black);
  padding: 52px 44px 56px;
  transition: background .3s var(--ease);
  cursor: default;
}

.feature-card:hover {
  background: #050810;
  box-shadow: inset 0 0 20px rgba(20, 104, 240, 0.05);
  border-color: rgba(20, 104, 240, 0.2);
}

.feat-rule {
  width: 24px;
  height: 1px;
  background: var(--blue);
  margin-bottom: 28px;
  transition: width .3s var(--ease)
}

.feature-card:hover .feat-rule {
  width: 48px
}

.feat-num {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--blue);
  font-weight: 300;
  margin-bottom: 20px
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -.2px;
  margin-bottom: 14px;
  color: var(--white)
}

.feature-card p {
  font-size: 14px;
  color: var(--gray4);
  line-height: 1.78;
  font-weight: 300
}

/* Steps */
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 16px
}

.step-number {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid rgba(20, 104, 240, 0.25);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 300;
  color: var(--blue-b);
  margin-bottom: 24px;
  font-family: var(--font-b);
  letter-spacing: 1px;
}

.step h3 {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 12px;
  letter-spacing: -.1px
}

.step p {
  font-size: 14px;
  color: var(--gray4);
  line-height: 1.75;
  font-weight: 300
}

.step-connector {
  flex: 0 1 80px;
  height: 1px;
  background: var(--border-md);
  margin-top: 28px
}

/* ── Product Suite Selection ── */
.product-suite {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.suite-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.suite-card {
  --p-color: var(--blue-b); /* Default color */
  flex: 1 1 340px;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-md);
  padding: 40px;
  border-radius: 4px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.suite-card:hover {
  transform: translateY(-8px);
  border-color: var(--p-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.suite-card.varta-card {
  --p-color: var(--purple);
}

/* Add more products easily by adding a class and setting --p-color */

.suite-badge {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--p-color);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.suite-card h2 {
  font-family: var(--font-b);
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 16px;
}

.suite-card p {
  font-size: 14px;
  color: var(--gray4);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.suite-btn {
  font-size: 13px;
  color: var(--white);
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.suite-btn:hover {
  gap: 12px;
  color: var(--p-color);
}

/* ── Coming Soon / Varta Section ── */
.coming-soon {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.varta-section .coming-soon-card {
  background: linear-gradient(135deg, rgba(8, 10, 15, 0.8), rgba(20, 10, 38, 0.8));
}

.varta-section .cs-content h2 em {
  color: var(--purple);
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.coming-soon-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(133, 183, 235, 0.05), transparent 70%);
  pointer-events: none;
}

.cs-content h2 {
  font-family: var(--font-d);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
}

.cs-content h2 em {
  font-style: italic;
  color: var(--blue-s);
}

.cs-content p {
  font-size: 16px;
  color: var(--gray4);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.cs-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(133, 183, 235, 0.1);
  border: 1px solid rgba(133, 183, 235, 0.2);
  color: var(--blue-s);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
}

.cs-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cs-orb-container {
  position: relative;
  width: 200px;
  height: 200px;
}

.cs-orb {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--blue-b), #6a11cb);
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.6;
  animation: orb-float 6s ease-in-out infinite;
}

.cs-orb-pulse {
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: orb-pulse 4s ease-out infinite;
}

@keyframes orb-float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

@keyframes orb-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .suite-grid {
    flex-direction: column;
    align-items: center;
  }

  .suite-card {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .coming-soon-card {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    text-align: center;
    overflow: hidden;
  }

  .cs-content p {
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
  }

  .cs-visual {
    margin-top: 40px;
  }
}

/* CTA */
.bottom-cta {
  padding: 120px 0;
  border-top: 1px solid var(--border)
}

.cta-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 64px;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: 2px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 104, 240, 0.08), transparent 65%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--font-d);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.2px;
  margin-bottom: 20px;
  position: relative;
}

.cta-card h2 em {
  font-style: italic;
  color: var(--blue-b)
}

.cta-card p {
  font-size: 17px;
  color: var(--gray4);
  margin-bottom: 48px;
  font-weight: 300;
  position: relative
}

.cta-btn {
  position: relative
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 40px
}

.footer-brand {
  display: flex;
  flex-direction: column
}

.footer-desc {
  font-size: 13px;
  color: var(--gray4);
  font-weight: 300;
  line-height: 1.8;
  margin-top: 8px
}

.footer-links {
  display: flex;
  gap: 80px
}

.link-group h4 {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--white);
  font-weight: 300;
  margin-bottom: 20px
}

.link-group a {
  display: block;
  color: var(--gray4);
  text-decoration: none;
  font-size: 13px;
  font-weight: 300;
  margin-bottom: 14px;
  transition: color .2s
}

.link-group a:hover {
  color: var(--blue-b)
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  font-size: 12px;
  color: var(--gray3);
  text-align: center;
  font-weight: 300;
  letter-spacing: .3px
}

/* ── Animations ── */
.fade-in-up {
  opacity: 1;
  transform: none
}

[data-delay="1"] {
  transition-delay: .1s
}

[data-delay="2"] {
  transition-delay: .25s
}

[data-delay="3"] {
  transition-delay: .4s
}

[data-delay="4"] {
  transition-delay: .55s
}

[data-delay="5"] {
  transition-delay: .7s
}

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

.reveal.active {
  opacity: 1;
  transform: none
}

/* ── Responsive ── */
@media(max-width:1024px) {
  .container {
    padding: 0 32px
  }

  .hero-mockup-wrapper {
    padding: 0 32px
  }

  .hero-title {
    font-size: 64px
  }

  .cta-card {
    padding: 60px 40px
  }
}

@media(max-width:768px) {
  .nav-links {
    display: none
  }

  .mobile-menu-btn {
    display: block
  }

  .hero {
    padding: 100px 0 60px
  }

  .hero-title {
    font-size: clamp(36px, 12vw, 44px);
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 14px;
    padding: 0 4px;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center
  }

  .hero-mockup-wrapper {
    padding: 0 16px;
    margin-top: 52px;
    overflow: hidden;
  }

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

  .feature-card {
    padding: 36px 28px
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 40px
  }

  .step-connector {
    display: none
  }

  .step {
    max-width: 320px
  }

  .cta-card {
    padding: 48px 28px
  }

  .footer-content {
    flex-direction: column;
    gap: 48px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .container {
    padding: 0 20px
  }
}

@media(max-width:480px) {
  .hero-title {
    font-size: 36px
  }

  .section-header h2 {
    font-size: 32px
  }

  .browser-body {
    padding: 16px
  }
}
/* ── Request Access Modal ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--surface);
  border: 1px solid var(--border-md);
  width: 90%;
  max-width: 480px;
  padding: 50px;
  border-radius: 4px;
  position: relative;
  transform: translateY(20px);
  transition: all 0.4s var(--ease);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--gray4);
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--white);
}

.modal-header {
  margin-bottom: 32px;
  text-align: center;
}

.modal-header h2 {
  font-family: var(--font-b);
  font-weight: 300;
  font-size: 28px;
}

.modal-header h2 em {
  color: var(--purple);
  font-style: normal;
}

.access-form {
  display: block;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 11px;
  color: var(--gray4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 14px 20px;
  color: var(--white);
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(106, 17, 203, 0.05);
}

.form-feedback {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.form-feedback svg {
  margin-bottom: 20px;
}

.form-feedback h3 {
  font-family: var(--font-b);
  font-weight: 300;
  margin-bottom: 12px;
}

.form-feedback p {
  color: var(--gray4);
  font-size: 14px;
  line-height: 1.6;
}

.modal-container.form-success .access-form {
  display: none;
}

.modal-container.form-success .form-feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Mobile Modal Refinements ── */
@media (max-width: 580px) {
  .modal-container {
    padding: 40px 24px;
    width: 95%;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .form-group label {
    font-size: 10px;
  }

  .form-group input {
    padding: 12px 16px;
    font-size: 13px;
  }

  .form-feedback h3 {
    font-size: 20px;
  }
}
