/* ===== NAVIGATION ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.nav-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(108, 245, 165, 0.25);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
}

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
  gap: 16px;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 4px 0;
}

.nav-mobile-menu a:last-child {
  color: var(--accent);
  font-weight: 600;
}

/* ===== PORTAL HERO ===== */
.portal-main {
  min-height: 100vh;
}

.portal-hero {
  padding: 80px 24px 64px;
  background: radial-gradient(ellipse 70% 50% at 50% -5%, rgba(108, 245, 165, 0.07) 0%, transparent 70%), var(--bg);
  border-bottom: 1px solid var(--border);
}

.portal-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
  max-width: 700px;
}

.portal-hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
  padding: 80px 0 40px;
}

.service-block {
  margin-bottom: 96px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block-header {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 20px;
}

.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-top: 6px;
  flex-shrink: 0;
}

.service-block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 6px;
}

.service-tagline {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.service-desc {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 48px;
}

/* ===== TIERS ===== */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tier:hover {
  border-color: rgba(108, 245, 165, 0.2);
}

.tier-featured {
  border-color: rgba(108, 245, 165, 0.35);
  box-shadow: 0 0 40px var(--accent-glow), 0 0 0 1px rgba(108, 245, 165, 0.1);
  background: linear-gradient(160deg, rgba(108, 245, 165, 0.05) 0%, var(--bg-card) 50%);
}

.tier-featured:hover {
  border-color: rgba(108, 245, 165, 0.5);
  box-shadow: 0 0 60px rgba(108, 245, 165, 0.1);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.tier-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}

.tier-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1;
}

.tier-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg-dim);
  margin-left: 2px;
}

.tier-features {
  list-style: none;
  margin: 0 0 32px 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-features li {
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}

.tier-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.tier-cta {
  display: block;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: transparent;
}

.tier-featured .tier-cta {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.tier-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tier-featured .tier-cta:hover {
  opacity: 0.88;
  color: var(--bg);
  box-shadow: 0 0 20px rgba(108, 245, 165, 0.25);
}

/* ===== CTA BAND ===== */
.pricing-cta-band {
  padding: 80px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-band-inner h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.cta-band-inner p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  max-width: 440px;
}

.cta-btn-primary {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bg);
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.cta-btn-primary:hover {
  opacity: 0.88;
  box-shadow: 0 0 28px rgba(108, 245, 165, 0.3);
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
  padding-bottom: 56px;
}

.contact-section {
  padding: 72px 0 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.form-field .req {
  color: var(--accent);
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2355556a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--fg-dim);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(108, 245, 165, 0.4);
  box-shadow: 0 0 0 3px rgba(108, 245, 165, 0.07);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.form-fine-print {
  font-size: 0.82rem;
  color: var(--fg-dim);
}

/* Form states */
.form-error-banner {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #ff8888;
  margin-bottom: 8px;
}

.form-success {
  text-align: center;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
}

.form-success h3 {
  font-size: 1.5rem;
  color: var(--fg);
}

.form-success p {
  font-size: 1rem;
  color: var(--fg-muted);
}

.back-link {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  margin-top: 8px;
}

.back-link:hover {
  text-decoration: underline;
}

/* Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.sidebar-icon {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.sidebar-block h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--fg);
}

.sidebar-block p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.inline-link {
  color: var(--accent);
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .tiers {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-band-inner {
    flex-direction: column;
    text-align: center;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .portal-hero {
    padding: 60px 20px 48px;
  }

  .service-block-header {
    flex-direction: column;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-footer .cta-btn-primary {
    width: 100%;
    text-align: center;
  }

  .pricing-cta-band .section-inner {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .portal-hero h1 {
    font-size: 1.75rem;
  }
}
