@import url('./variables.css');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
}

button {
  cursor: pointer;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

::selection {
  background: var(--color-primary);
  color: var(--bg-dark);
}

/* Typography Defaults — IBM Plex Serif SemiBold */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.015em;
}

h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

/* Exclude custom-styled em elements from the global heading-em rule */
h1 em.attention-wave,
h2 em.attention-wave {
  font-style: normal;
  color: inherit;
}

/* Buttons — Real Glass Glossy Edge Highlight (Reference Image Style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 0.5rem;
  white-space: nowrap;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  border: none;
}

/* Ensure text and nested elements render cleanly above optical glass layers */
.btn > *,
.newsletter-form button > * {
  position: relative;
  z-index: 4;
}

/* 1. Thin luminous edge highlights — brighter reflections along upper-left curve, soft darker shadow opposite */
.btn::before,
.newsletter-form button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; /* Thin luminous edge highlight */
  background:
    /* Brighter luminous reflection along upper-left curve */
    radial-gradient(
      140px 70px at 15% 0%,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.45) 35%,
      rgba(255, 255, 255, 0) 75%
    ),
    /* Thin luminous perimeter falloff towards opposite bottom-right edge */
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.35) 28%,
      rgba(255, 255, 255, 0.05) 55%,
      rgba(15, 23, 42, 0.12) 100%
    );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s ease;
}

/* 2. Gentle internal gradient and diffused light scattering for neutral glass buttons */
.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    /* Soft diffused internal refraction from upper-left */
    radial-gradient(
      160px 80px at 16% 0%,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 45%,
      transparent 75%
    );
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.btn:hover::before,
.newsletter-form button:hover::before {
  opacity: 1;
}

.btn-secondary:hover::after {
  opacity: 1;
}

/* Primary Button: Full rgba(55, 64, 123, 0.65) with glassmorphic depth & luminous rim */
.btn-primary {
  background: rgba(55, 64, 123, 0.65);
  color: #ffffff;
  border: none;
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  box-shadow:
    /* Soft darker shadow along opposite edges */
    3px 6px 18px 0 rgba(25, 32, 70, 0.32),
    1px 2px 6px 0 rgba(15, 20, 45, 0.14),
    /* Thin luminous edge highlights along upper and left rim */
    inset 0 1.2px 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 1.2px 0 1.5px 0 rgba(255, 255, 255, 0.60),
    /* Soft darker shadow along opposite interior edges */
    inset -1px -1.5px 2px 0 rgba(10, 14, 38, 0.55),
    inset -2px -2.5px 5px 0 rgba(10, 14, 38, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(55, 64, 123, 0.78);
  box-shadow:
    4px 8px 22px 0 rgba(25, 32, 70, 0.38),
    1px 3px 7px 0 rgba(15, 20, 45, 0.18),
    inset 0 1.2px 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 1.2px 0 1.5px 0 rgba(255, 255, 255, 0.70),
    inset -1px -1.5px 2px 0 rgba(10, 14, 38, 0.60),
    inset -2px -2.5px 5px 0 rgba(10, 14, 38, 0.40);
  color: #ffffff;
}

html[data-theme="dark"] .btn-primary {
  background: var(--primary);
  color: hsl(229 39% 8%) !important;
  font-weight: 400 !important;
  border: none;
  box-shadow:
    3px 5px 14px 0 rgba(0, 0, 0, 0.40),
    1px 2px 4px 0 rgba(0, 0, 0, 0.25),
    inset 0 1.2px 1.5px 0 rgba(255, 255, 255, 0.90),
    inset 1.2px 0 1.5px 0 rgba(255, 255, 255, 0.60),
    inset -1px -1.5px 2px 0 rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .btn-primary:hover {
  background: hsl(229 85% 84%);
  color: hsl(229 45% 6%) !important;
  box-shadow:
    4px 8px 18px 0 rgba(0, 0, 0, 0.45),
    1px 3px 5px 0 rgba(0, 0, 0, 0.30),
    inset 0 1.2px 1.5px 0 rgba(255, 255, 255, 0.98),
    inset 1.2px 0 1.5px 0 rgba(255, 255, 255, 0.70),
    inset -1px -1.5px 2px 0 rgba(0, 0, 0, 0.40);
}

/* Noncolored Buttons: Soft tactile untinted frosted glassmorphism */
.btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.12) 100%
  );
  color: var(--text);
  border: none;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  box-shadow:
    /* Soft darker shadow along opposite edges */
    3px 5px 14px 0 rgba(24, 32, 54, 0.10),
    1px 2px 4px 0 rgba(24, 32, 54, 0.06),
    /* Thin luminous edge highlights & upper-left reflections */
    inset 1px 1.5px 1px 0 rgba(255, 255, 255, 0.92),
    inset 2px 2px 5px 0 rgba(255, 255, 255, 0.45),
    inset 3px 4px 10px 0 rgba(255, 255, 255, 0.20),
    /* Soft darker shadow along opposite interior edges */
    inset -1px -1.5px 2px 0 rgba(15, 23, 42, 0.14),
    inset -2px -2.5px 5px 0 rgba(15, 23, 42, 0.07);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.16) 100%
  );
  box-shadow:
    4px 8px 18px 0 rgba(24, 32, 54, 0.13),
    1px 3px 5px 0 rgba(24, 32, 54, 0.08),
    inset 1px 1.5px 1px 0 rgba(255, 255, 255, 0.98),
    inset 2px 2px 6px 0 rgba(255, 255, 255, 0.52),
    inset 3px 4px 12px 0 rgba(255, 255, 255, 0.25),
    inset -1px -1.5px 2px 0 rgba(15, 23, 42, 0.16),
    inset -2px -2.5px 5px 0 rgba(15, 23, 42, 0.08);
  color: var(--text);
}

html[data-theme="dark"] .btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    rgba(255, 255, 255, 0.05) 100%
  );
  color: #f4f4f5;
  border: none;
  box-shadow:
    3px 5px 14px 0 rgba(0, 0, 0, 0.40),
    1px 2px 4px 0 rgba(0, 0, 0, 0.25),
    inset 1px 1.5px 1px 0 rgba(255, 255, 255, 0.55),
    inset 2px 2px 5px 0 rgba(255, 255, 255, 0.25),
    inset 3px 4px 10px 0 rgba(255, 255, 255, 0.10),
    inset -1px -1.5px 2px 0 rgba(0, 0, 0, 0.45),
    inset -2px -2.5px 5px 0 rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .btn-secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.07) 100%
  );
  box-shadow:
    4px 8px 18px 0 rgba(0, 0, 0, 0.50),
    1px 3px 5px 0 rgba(0, 0, 0, 0.30),
    inset 1px 1.5px 1px 0 rgba(255, 255, 255, 0.65),
    inset 2px 2px 6px 0 rgba(255, 255, 255, 0.30),
    inset 3px 4px 12px 0 rgba(255, 255, 255, 0.12),
    inset -1px -1.5px 2px 0 rgba(0, 0, 0, 0.50),
    inset -2px -2.5px 5px 0 rgba(0, 0, 0, 0.30);
  color: #ffffff;
}

.btn-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn-text:hover {
  color: var(--text);
}

/* Shared navigation: a quiet dark surface above the animated background. */
.navbar {
  position: fixed;
  inset: 20px 0 auto;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  z-index: 1100;
  background: rgba(12, 10, 23, .78);
  border: 1px solid rgba(193, 186, 240, .14);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .16);
  font-family: var(--font-sans);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  max-width: none;
  padding: 0 24px;
  position: relative;
}
.navbar .logo { gap: 10px; font-size: 1.45rem; flex-shrink: 0; min-height: 44px; }
.navbar .logo-img { height: 30px; max-width: 30px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: none !important;
  color: var(--text);
  line-height: 1;
}

.logo-text {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
  font-weight: 500;
  text-transform: none !important;
  background: linear-gradient(
    165deg,
    hsl(225 35% 55%) 0%,
    hsl(230 48% 28%) 45%,
    hsl(233 62% 7%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  line-height: 1.1;
}

html[data-theme="dark"] .logo-text {
  background: linear-gradient(
    165deg,
    hsl(228 100% 99%) 0%,
    hsl(228 35% 86%) 45%,
    hsl(229 75% 78%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.logo-img {
  width: auto;
  height: 24px;
  max-width: 24px;
  display: block;
  object-fit: contain;
  padding: 1px 0;
  box-sizing: border-box;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--primary) 30%, transparent));
}


.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: .9rem;
  font-weight: 500;
  color: #b8b3cb;
  white-space: nowrap;
  transition: color .18s ease;
}
.nav-link:hover, .nav-link.active { color: #f4f0ff; }
.nav-link.active { text-decoration: underline; text-underline-offset: 7px; text-decoration-color: #a9a3eb; }
.nav-waitlist span { color: #8e879f; transition: color .18s ease; }
.nav-waitlist:hover span { color: #f4f0ff; }
html[data-theme="dark"] .navbar .nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: #b6adf5;
  color: #19132e;
  box-shadow: none;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  white-space: nowrap;
  transition: background .18s ease;
}
html[data-theme="dark"] .navbar .nav-download:hover { background: #c8c0ff; transform: none; box-shadow: none; }
.navbar a:focus-visible, .nav-toggle:focus-visible { outline: 2px solid #c8c0ff; outline-offset: 5px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .06); }
.nav-toggle span { width: 28px; height: 2px; background: #d8d1ed; border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
@media (max-width: 768px) {
  .navbar { top: 12px; width: calc(100% - 24px); border-radius: 14px; }
  .navbar .container { height: 64px; padding: 0 16px; }
  .navbar .logo { font-size: 1.3rem; }
  .navbar .logo-img { height: 28px; max-width: 28px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border: 1px solid rgba(193, 186, 240, .16);
    border-radius: 14px;
    background: #110f1c;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .nav-links.active { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav-links .nav-link { padding: 8px 12px; font-size: 1rem; }
  .nav-links .nav-download { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .nav-links, .nav-toggle span { transition: none; } }

/* Footer styling */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-muted);
  padding: 5rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 280px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-newsletter h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-muted);
  padding: 0.25rem;
  border-radius: var(--radius-full);
}

.newsletter-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  outline: none;
  background: transparent;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  background: rgba(55, 64, 123, 0.65);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: none;
  box-shadow:
    3px 6px 18px 0 rgba(25, 32, 70, 0.32),
    1px 2px 6px 0 rgba(15, 20, 45, 0.14),
    inset 0 1.2px 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 1.2px 0 1.5px 0 rgba(255, 255, 255, 0.60),
    inset -1px -1.5px 2px 0 rgba(10, 14, 38, 0.55),
    inset -2px -2.5px 5px 0 rgba(10, 14, 38, 0.35);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 400;
  font-size: 0.85rem;
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

html[data-theme="dark"] .newsletter-form button {
  background: var(--primary);
  color: hsl(229 39% 8%) !important;
  font-weight: 400 !important;
  border: none;
  box-shadow:
    0 3px 12px 0 hsla(229, 75%, 78%, 0.25),
    0 1px 2px 0 rgba(0, 0, 0, 0.35),
    inset 0 1.2px 1.5px 0 rgba(255, 255, 255, 0.85),
    inset 1.2px 0 1.5px 0 rgba(255, 255, 255, 0.60),
    inset -1px -1.5px 2px 0 hsla(229, 75%, 50%, 0.35);
}

html[data-theme="dark"] .newsletter-form button:hover {
  background: hsl(229 85% 84%);
  color: hsl(229 45% 6%) !important;
  transform: translateY(-1px);
  box-shadow:
    0 5px 16px 0 hsla(229, 75%, 78%, 0.40),
    0 2px 4px 0 rgba(0, 0, 0, 0.45),
    inset 0 1.2px 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 1.2px 0 1.5px 0 rgba(255, 255, 255, 0.70),
    inset -1px -1.5px 2px 0 hsla(229, 75%, 50%, 0.45);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  color: var(--text);
  border-color: var(--border);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* PRIVACY DRAWER & OVERLAY */
.privacy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998; /* Under the drawer, above main page content */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.privacy-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.privacy-panel {
  position: fixed;
  top: 0;
  right: -460px; /* Initially off screen */
  width: 440px;
  height: 100vh;
  background: color-mix(in srgb, var(--bg-light) 95%, transparent);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-muted);
  z-index: 1000; /* Above navbar and overlay */
  padding: 3rem 2.5rem;
  overflow-y: auto;
  box-shadow: none;
  transition: right var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.privacy-panel.active {
  right: 0;
}

.privacy-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 1.5rem;
}

.privacy-panel-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.privacy-panel-title svg {
  color: var(--secondary);
  width: 28px;
  height: 28px;
}

.privacy-panel-close {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.privacy-panel-close:hover {
  color: var(--primary);
}

.privacy-pillar-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  list-style: none;
}

.privacy-pillar-item h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-pillar-item h4::before {
  content: '🛡️';
  font-size: 1rem;
}

.privacy-pillar-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.privacy-panel-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

@media (max-width: 480px) {
  .privacy-panel {
    width: 100%;
    right: -100%;
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   Section Scroll Reveals: Fade In (Text, Laptop, Cards) & Blur Fade (Buttons)
   Applied across all sections on the site
   ========================================================================== */

/* Hidden baseline when JS has initialized the reveal system */
html.reveal-init section:not(.section-revealed) .section-title,
html.reveal-init section:not(.section-revealed) .section-desc,
html.reveal-init section:not(.section-revealed) .section-tag,
html.reveal-init section:not(.section-revealed) .section-subtitle,
html.reveal-init section:not(.section-revealed) .privacy-main-title,
html.reveal-init section:not(.section-revealed) .privacy-lead-desc,
html.reveal-init section:not(.section-revealed) .calc-title,
html.reveal-init section:not(.section-revealed) .calc-control p,
html.reveal-init section:not(.section-revealed) .subpage-title,
html.reveal-init section:not(.section-revealed) .subpage-desc,
html.reveal-init footer:not(.section-revealed) .footer-brand,
html.reveal-init footer:not(.section-revealed) .footer-col {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Specific delay staggers for text */
html.reveal-init section .section-title { transition-delay: 0.05s; }
html.reveal-init section .section-desc  { transition-delay: 0.16s; }
html.reveal-init section .privacy-main-title { transition-delay: 0.08s; }
html.reveal-init section .privacy-lead-desc { transition-delay: 0.2s; }
html.reveal-init section .calc-title { transition-delay: 0.08s; }
html.reveal-init section .calc-control p { transition-delay: 0.2s; }

/* Laptop & Hero Mockup Fade-In */
html.reveal-init section:not(.section-revealed) .hero-mockup-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.38s,
              transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.38s;
  will-change: opacity, transform;
}

/* Buttons Fade-In AND Blur (the "start focus" buttons and all section action buttons) */
html.reveal-init section:not(.section-revealed) .hero-cta-group,
html.reveal-init section:not(.section-revealed) .intro-actions .btn,
html.reveal-init section:not(.section-revealed) .privacy-btn-wrapper,
html.reveal-init section:not(.section-revealed) .privacy-link-btn,
html.reveal-init section:not(.section-revealed) .privacy-action-btn,
html.reveal-init section:not(.section-revealed) .pricing-toggle-wrapper,
html.reveal-init section:not(.section-revealed) .pricing-card .btn,
html.reveal-init section:not(.section-revealed) .section-action-btn,
html.reveal-init footer:not(.section-revealed) .newsletter-form button {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.28s,
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.28s,
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.28s;
  will-change: opacity, filter, transform;
}

/* Cards & Visual Layouts Fade-In */
html.reveal-init section:not(.section-revealed) .privacy-portal-panel,
html.reveal-init section:not(.section-revealed) .calc-results,
html.reveal-init section:not(.section-revealed) .slider-group,
html.reveal-init section:not(.section-revealed) .features-grid .feature-card,
html.reveal-init section:not(.section-revealed) .comparison-grid .comparison-card,
html.reveal-init section:not(.section-revealed) .pricing-grid .pricing-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s,
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
  will-change: opacity, transform;
}

/* Stagger card reveals */
html.reveal-init section .features-grid .feature-card:nth-child(1),
html.reveal-init section .comparison-grid .comparison-card:nth-child(1),
html.reveal-init section .calc-results .result-card:nth-child(1),
html.reveal-init section .pricing-grid .pricing-card:nth-child(1) { transition-delay: 0.15s; }

html.reveal-init section .features-grid .feature-card:nth-child(2),
html.reveal-init section .comparison-grid .comparison-card:nth-child(2),
html.reveal-init section .calc-results .result-card:nth-child(2),
html.reveal-init section .pricing-grid .pricing-card:nth-child(2) { transition-delay: 0.26s; }

html.reveal-init section .features-grid .feature-card:nth-child(3),
html.reveal-init section .calc-results .result-card:nth-child(3),
html.reveal-init section .pricing-grid .pricing-card:nth-child(3) { transition-delay: 0.37s; }

html.reveal-init section .features-grid .feature-card:nth-child(4) { transition-delay: 0.48s; }
html.reveal-init section .features-grid .feature-card:nth-child(5) { transition-delay: 0.59s; }
html.reveal-init section .features-grid .feature-card:nth-child(6) { transition-delay: 0.7s; }

/* ── Active Revealed States ── */
section.section-revealed .section-title,
section.section-revealed .section-desc,
section.section-revealed .section-tag,
section.section-revealed .section-subtitle,
section.section-revealed .privacy-main-title,
section.section-revealed .privacy-lead-desc,
section.section-revealed .calc-title,
section.section-revealed .calc-control p,
section.section-revealed .subpage-title,
section.section-revealed .subpage-desc,
footer.section-revealed .footer-brand,
footer.section-revealed .footer-col {
  opacity: 1;
  transform: translateY(0);
}

section.section-revealed .hero-mockup-wrapper {
  opacity: 1;
  transform: translateY(0);
}

section.section-revealed .hero-cta-group,
section.section-revealed .intro-actions .btn,
section.section-revealed .privacy-btn-wrapper,
section.section-revealed .privacy-link-btn,
section.section-revealed .privacy-action-btn,
section.section-revealed .pricing-toggle-wrapper,
section.section-revealed .pricing-card .btn,
section.section-revealed .section-action-btn,
footer.section-revealed .newsletter-form button {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

section.section-revealed .privacy-portal-panel,
section.section-revealed .calc-results,
section.section-revealed .slider-group,
section.section-revealed .features-grid .feature-card,
section.section-revealed .comparison-grid .comparison-card,
section.section-revealed .pricing-grid .pricing-card {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html.reveal-init * {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   OpenAI-Style "Try Attentus Today" CTA Banner Section
   ========================================================================== */

.try-attentus-section {
  position: relative;
  padding: 4.5rem 0 6.5rem 0;
  background: var(--bg);
  z-index: 2;
}

.try-attentus-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.try-attentus-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.75rem 3.5rem;
  border-radius: 20px;
  background: #f4f4f6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

html[data-theme="dark"] .try-attentus-card {
  background: #11131c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.try-attentus-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.try-attentus-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.45rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.try-attentus-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #ffffff;
}

html[data-theme="dark"] .try-attentus-btn {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .try-attentus-btn:hover {
  opacity: 0.92;
  color: #000000;
}

.try-attentus-arrow {
  font-size: 1.15rem;
  line-height: 1;
  transform: translateY(-0.5px);
  transition: transform 0.2s ease;
}

.try-attentus-btn:hover .try-attentus-arrow {
  transform: translateY(-0.5px) translateX(2.5px);
}

@media (max-width: 640px) {
  .try-attentus-section {
    padding: 3rem 0 4.5rem 0;
  }

  .try-attentus-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .try-attentus-title {
    font-size: 1.45rem;
  }

  .try-attentus-btn {
    width: 100%;
    justify-content: center;
  }
}
