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

:root {
  --bg:        #0d0d1a;
  --surface:   #13132b;
  --card:      #1a1a2e;
  --primary:   #A48FC6;
  --secondary: #78B5FF;
  --text:      #c8c8d8;
  --heading:   #ffffff;
  --border:    rgba(164, 143, 198, 0.20);
  --radius-card: 12px;
  --radius-ui:    8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--heading); line-height: 1.25; }
a { color: inherit; text-decoration: none; }

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

/* ── Utility ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 96px 0; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 26, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar__logo img {
  height: 36px;
  width: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-ui);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #0d0d1a;
  box-shadow: 0 0 20px rgba(164, 143, 198, 0.30);
}

.btn-primary:hover {
  background: #b9a4d8;
  box-shadow: 0 0 32px rgba(164, 143, 198, 0.55);
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, #1a0d2e 0%, #0d0d1a 70%);
  padding: 64px 24px 80px;
}

/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(164, 143, 198, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 143, 198, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__logo {
  margin: 0 auto 40px;
  max-width: 220px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(120, 181, 255, 0.10);
  border: 1px solid rgba(120, 181, 255, 0.25);
  border-radius: 99px;
  padding: 4px 14px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 60%, #A48FC6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text);
  max-width: 580px;
  margin: 0 auto 48px;
}

/* ── Email Form ── */
.email-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.email-form input[type="email"] {
  flex: 1 1 280px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: var(--radius-ui);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input[type="email"]::placeholder { color: rgba(200, 200, 216, 0.45); }

.email-form input[type="email"]:focus {
  border-color: var(--primary);
  background: rgba(164, 143, 198, 0.08);
}

/* Scroll indicator */
.hero__scroll {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
  animation: bounce 2.2s infinite;
}

.hero__scroll span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll svg { width: 18px; height: 18px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

.hero__scroll.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Section separator ── */
.sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Pillars Section ── */
.pillars { background: var(--bg); }

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

.section-header h2 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.75;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(164, 143, 198, 0.55);
  box-shadow: 0 12px 40px rgba(164, 143, 198, 0.12);
}

.card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface);
}

.card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
}

.card__body { font-size: 14px; line-height: 1.75; }

.card__tag {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(120, 181, 255, 0.12);
  border: 1px solid rgba(120, 181, 255, 0.28);
  color: var(--secondary);
}

/* ── Document Preview Section ── */
.doc-section {
  background: var(--surface);
}

.doc-panel {
  max-width: 740px;
  margin: 0 auto;
  background: var(--card);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-card);
  padding: 48px 48px 48px 44px;
  box-shadow: 0 4px 60px rgba(0, 0, 0, 0.35);
}

.doc-panel h2 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.65;
}

.doc-list li .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(120, 181, 255, 0.15);
  border: 1px solid rgba(120, 181, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.doc-list li .check svg {
  width: 11px;
  height: 11px;
  stroke: var(--secondary);
  stroke-width: 2.5;
  fill: none;
}

/* ── CTA Band ── */
.cta-band {
  background: radial-gradient(ellipse 70% 100% at 50% 50%, #1a0d2e 0%, #0d0d1a 80%);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(164, 143, 198, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(164, 143, 198, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-band__inner h2 {
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 60%, #A48FC6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-band__inner p {
  margin-bottom: 40px;
  font-size: 16px;
  opacity: 0.8;
}

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

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__brand img { height: 28px; width: auto; }

.footer__copy {
  font-size: 13px;
  opacity: 0.5;
}

.footer__links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  opacity: 0.55;
  flex-wrap: wrap;
}

.footer__links a:hover { opacity: 1; color: var(--primary); }

/* ── Responsive ── */

/* Tablet landscape */
@media (max-width: 1023px) {
  .section-padding { padding: 80px 0; }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__logo { max-width: 180px; }
}

/* Mobile portrait */
@media (max-width: 767px) {
  .section-padding { padding: 56px 0; }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card__img { height: 200px; }

  .email-form { flex-wrap: nowrap; }
  .email-form input[type="email"] { flex: 1 1 180px; max-width: none; padding: 10px 14px; }

  .doc-panel {
    padding: 36px 24px 36px 20px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header { margin-bottom: 48px; }

  .navbar .btn { padding: 8px 14px; font-size: 13px; }

  .hero__logo { max-width: 160px; }

  .hero__subtitle { margin-bottom: 36px; }
}

/* Small phones */
@media (max-width: 479px) {
  .container { padding: 0 16px; }

  .section-padding { padding: 40px 0; }

  .hero__scroll { display: none; }

  /* Cap hero so the section below peeks into view (~60px visible) */
  .hero {
    min-height: unset;
    max-height: calc(100vh - 68px - 60px);
    overflow: hidden;
    padding: 40px 16px 32px;
  }

  /* Hide duplicate navbar CTA — hero form is immediately visible */
  .navbar .btn { display: none; }

  .hero__title { font-size: 22px; }

  .hero__subtitle { font-size: 14px; margin-bottom: 28px; }

  /* Stack email form vertically so both elements fit comfortably */
  .email-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .email-form input[type="email"] {
    flex: none;
    max-width: 100%;
  }
  .email-form .btn { width: 100%; }

  .doc-panel {
    padding: 28px 16px 28px 14px;
  }

  .hero__logo { max-width: 130px; }
}

.form-success {
  color: #A48FC6;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.form-error {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin: 8px 0 0;
}
