/* components.css — ElaCloud UI components */

/* ── Header ── */

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--color-border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  white-space: nowrap;
}

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

/* ── Hero — Background ── */

.hero {
  background: var(--color-bg);
}

/* Dot grid overlay */
.hero__grid {
  display: none; /* Hidden in light theme */
  background-image:
    radial-gradient(circle, rgba(49, 84, 223, 0.22) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 40%, transparent 100%);
  opacity: 0.5;
}

/* Floating orbs */
.orb {
  display: none; /* Hidden in light theme */
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
}

.orb--1 {
  width: 560px;
  height: 560px;
  top: -10%;
  right: -8%;
  background: radial-gradient(circle, rgba(49, 84, 223, 0.35) 0%, transparent 70%);
}

.orb--2 {
  width: 420px;
  height: 420px;
  bottom: 5%;
  left: -6%;
  background: radial-gradient(circle, rgba(137, 226, 25, 0.2) 0%, transparent 70%);
}

.orb--3 {
  width: 300px;
  height: 300px;
  top: 40%;
  right: 30%;
  background: radial-gradient(circle, rgba(168, 136, 255, 0.18) 0%, transparent 70%);
}

/* ── Hero — Content ── */

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  padding: 6px 12px;
  border: 1px solid rgba(137, 226, 25, 0.2);
  border-radius: 100px;
  background: rgba(137, 226, 25, 0.05);
  width: fit-content;
}

.hero h1 {
  color: var(--color-text-primary);
  font-size: var(--font-size-h1-desktop);
  line-height: var(--line-height-h1);
}

/* Gradient highlight on "with care." using a background span */
.hero h1 em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subheadline {
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 480px;
}

.hero__gradient-line {
  width: 200px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  opacity: 0.7;
  margin-top: calc(var(--space-xs) * -1);
}

/* ── Values / Pillars ── */

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Gradient top border effect */
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0.7;
}

.value-card:nth-child(2)::before {
  background: linear-gradient(90deg, #3154DF, #A888FF);
}

.value-card:nth-child(3)::before {
  background: linear-gradient(90deg, #A888FF, #89E219);
}

.value-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(49, 84, 223, 0.1);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.value-card:nth-child(2) .value-card__icon {
  background: rgba(168, 136, 255, 0.1);
  color: var(--color-accent-lavender);
}

.value-card:nth-child(3) .value-card__icon {
  background: rgba(137, 226, 25, 0.08);
  color: var(--color-green-dark);
}

.value-card__title {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.value-card__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ── Mission ── */

.mission h2 {
  color: var(--color-text-primary);
}

/* Accent line left of H2 */
.mission__heading-wrap {
  position: relative;
  padding-left: var(--space-md);
}

.mission__heading-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

/* ── Footer ── */

.footer__gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand-line);
  opacity: 0.5;
}

.footer__tagline {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.footer__copyright {
  font-size: var(--font-size-caption);
  color: var(--color-text-tertiary);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__legal a {
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.footer__legal a:hover {
  color: var(--color-accent);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__contact a {
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
}

.footer__contact a:hover {
  color: var(--color-accent);
}

/* ── Legal document styles ── */

.legal-page h1 {
  font-size: var(--font-size-h2-desktop);
  font-weight: var(--font-weight-regular);
  margin-bottom: var(--space-xs);
}

.legal-effective-date {
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.legal-page h2 {
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.01em;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.legal-page p,
.legal-page li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.legal-page ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-page ol {
  list-style: decimal;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.legal-nav a {
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-nav a:hover {
  color: var(--color-text-primary);
}

.legal-nav a[aria-current="page"] {
  color: var(--color-text-primary);
}

.draft-notice {
  background: rgba(49, 84, 223, 0.05);
  border: 1px solid rgba(49, 84, 223, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-caption);
  line-height: var(--line-height-body);
  color: var(--color-accent-hover);
}

/* Plain-language summary box for legal pages */
.legal-summary-box {
  background: rgba(49, 84, 223, 0.05);
  border: 1px solid rgba(49, 84, 223, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.legal-summary-box strong {
  color: var(--color-text-primary);
}

/* ── 404 ── */

.not-found__code {
  font-size: 80px;
  font-weight: var(--font-weight-light);
  letter-spacing: -0.04em;
  color: var(--color-text-tertiary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.not-found h2 {
  font-size: 24px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.not-found__message {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.back-link {
  display: inline-block;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link:hover {
  color: var(--color-accent-hover);
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .hero h1 {
    font-size: var(--font-size-h1-mobile);
  }

  .hero__subheadline {
    font-size: 17px;
  }

  .orb--1 {
    width: 300px;
    height: 300px;
    opacity: 0.7;
  }

  .orb--2 {
    width: 220px;
    height: 220px;
  }

  .orb--3 {
    display: none;
  }
}
