/* ==========================================================================
   PAGES
   - Page-specific overrides and sections
   ========================================================================== */

.subpage .hero {
  min-height: auto;
  padding: 6rem 2rem 5rem;
  background: var(--white);
  text-align: center;
  position: relative;
  display: block;
}

.subpage .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  z-index: 0;
}

.subpage .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.subpage .hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  animation: none;
}

.subpage .hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: none;
}

.subpage .hero h1 em {
  font-style: italic;
  color: var(--teal-dark);
}

.subpage .hero p {
  font-size: 1.25rem;
  color: var(--stone);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Features page */
.features-page-hero {
  padding: 6rem 2rem 5rem;
  background: var(--white);
  text-align: center;
}

.features-page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.features-page-hero h1 em {
  color: var(--teal-dark);
  font-style: italic;
}

.features-page-hero p {
  font-size: 1.25rem;
  color: var(--stone);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Sovereignty page */
.sovereignty-page-hero {
  padding: 6rem 2rem 5rem;
  background: var(--white);
  text-align: center;
}

.sovereignty-page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.sovereignty-page-hero h1 em {
  color: var(--teal-dark);
  font-style: italic;
}

.sovereignty-badge-section {
  text-align: center;
  padding: 1.5rem;
  background: rgba(43, 122, 120, 0.05);
  border-radius: 8px;
  margin-top: 2rem;
}

/* How it works page */
.how-it-works-hero {
  padding: 6rem 2rem 5rem;
  background: var(--white);
  text-align: center;
}

.how-it-works-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 3rem 2rem;
  background: var(--cream);
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 12px;
  position: relative;
  text-align: center;
}

.process-step::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 2px;
  background: var(--teal);
}

.process-step:last-child::after {
  display: none;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--cream);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--teal);
}

.step-icon i {
  font-size: 1.625rem;
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.6;
}

/* About page */
.about-page-hero {
  padding: 6rem 2rem 5rem;
  background: var(--white);
  text-align: center;
}

.about-page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.about-content {
  padding: var(--section-padding) 2rem;
  background: var(--ivory);
  max-width: 1000px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.about-content h2 em {
  color: var(--teal-dark);
  font-style: italic;
}

.about-content > p {
  font-size: 1.125rem;
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--sand);
  margin: 2rem 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 1rem;
  color: var(--graphite);
}

.about-list li i {
  color: var(--teal);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  padding: 2rem;
  background: var(--cream);
  border-radius: 12px;
  text-align: center;
}

.member-avatar {
  width: 100px;
  height: 100px;
  background: var(--teal);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 500;
}

.member-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.member-role {
  font-size: 0.875rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.member-bio {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.6;
}

/* Contact page */
.contact-page-hero {
  padding: 6rem 2rem 5rem;
  background: var(--white);
  text-align: center;
}

.contact-page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.contact-page-hero p {
  font-size: 1.25rem;
  color: var(--stone);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem 2rem;
  background: var(--ivory);
  margin: 3rem auto;
  max-width: 1000px;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .contact-methods {
    grid-template-columns: 1fr;
  }
}

.contact-method {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 12px;
  text-align: center;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--cream);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--teal);
}

.contact-icon i {
  font-size: 1.625rem;
}

.contact-method h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.contact-method p {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-method a {
  display: inline-block;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-method a:hover {
  color: var(--teal-dark);
  transform: translateY(-2px);
}

/* Index/homepage specific */
.hero-demo {
  animation: fade-in 0.8s ease-out 0.6s backwards;
}

.chat-container {
  background: var(--ivory);
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02),
              0 8px 24px rgba(0,0,0,0.06),
              0 24px 60px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 460px;
  margin-left: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
}

.chat-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
}

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--charcoal);
  margin-bottom: 0.125rem;
}

.chat-header-status {
  font-size: 0.8125rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.chat-header-status::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
}

.chat-modes {
  display: flex;
  gap: 0.5rem;
}

.chat-mode {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--stone);
}

.chat-mode i {
  font-size: 1.25rem;
}

.chat-mode:hover {
  background: var(--sand);
  color: var(--charcoal);
}

.chat-mode.active {
  background: var(--teal);
  color: var(--white);
}

.chat-body {
  padding: 1.5rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-message {
  max-width: 85%;
  animation: messageAppear 0.4s ease-out backwards;
}

.chat-message:nth-child(1) {
  animation-delay: 1.2s;
}

.chat-message:nth-child(2) {
  animation-delay: 2s;
}

.chat-message:nth-child(3) {
  animation-delay: 3.2s;
}

.chat-message.user {
  margin-left: auto;
}

.chat-message.user .chat-bubble {
  background: var(--teal);
  color: var(--white);
  border-radius: 18px 18px 4px 18px;
}

.chat-message.assistant .chat-bubble {
  background: var(--white);
  color: var(--charcoal);
  border-radius: 18px 18px 18px 4px;
  border: 1px solid var(--sand);
}

.chat-bubble {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
}

.chat-bubble strong {
  color: var(--teal-dark);
}

.chat-bubble .highlight {
  background: var(--success-light);
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
  font-weight: 500;
}

.chat-meta {
  font-size: 0.75rem;
  color: var(--silver);
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-message.user .chat-meta {
  justify-content: flex-end;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--sand);
}

.chat-input input {
  flex: 1;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--sand);
  border-radius: 24px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--ivory);
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input input:focus {
  border-color: var(--teal);
}

.chat-input input::placeholder {
  color: var(--silver);
}

.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  border: none;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-send:hover {
  background: var(--teal-dark);
  transform: scale(1.05);
}

.phone-mockup {
  width: 300px;
  background: var(--charcoal);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.18),
              0 10px 30px rgba(0,0,0,0.12);
}

.phone-screen {
  background: var(--ivory);
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 9/16;
  display: flex;
  flex-direction: column;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
}

.phone-avatar {
  width: 40px;
  height: 40px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
}

.phone-header-text {
  flex: 1;
}

.phone-header-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
}

.phone-header-status {
  font-size: 0.6875rem;
  color: var(--success);
}

.phone-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  overflow: hidden;
}

.phone-message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  border-radius: 14px;
}

.phone-message.user {
  background: var(--teal);
  color: var(--white);
  margin-left: auto;
  border-radius: 14px 14px 3px 14px;
}

.phone-message.assistant {
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--sand);
  border-radius: 14px 14px 14px 3px;
}

.phone-video-call {
  background: var(--white);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--sand);
}

.phone-video-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  border-radius: 50%;
  margin: 0 auto 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.125rem;
  color: var(--white);
}

.phone-video-label {
  font-size: 0.6875rem;
  color: var(--stone);
}

/* Value strip */
.value-strip {
  background: var(--teal);
  padding: 1.75rem 2rem;
}

.value-strip-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 400;
}

.value-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-light);
}

.value-item .icon i {
  font-size: 1.375rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step::after {
    display: none;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

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

  nav {
    padding: 1rem 1.5rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .value-strip-content {
    gap: 2rem;
  }

  .nav-links {
    gap: 1.5rem;
  }
}
