/* Anything RE home page — sections above the ethereal background stack */

:root {
  --scroll-progress-1: 0;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: #f5f7ff;
  overflow-x: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: #111;
}

.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero {
  height: 100vh;
}

.brand h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.9;
  font-size: clamp(56px, 14vw, 200px);
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.05);
  transform: translateY(calc(var(--scroll-progress-1) * -50px));
  opacity: calc(1 - var(--scroll-progress-1) * 0.7);
}

.vision-section {
  background: transparent;
  z-index: 2;
  /* Soft portal reveal — wide feather avoids a hard ring line */
  -webkit-mask-image: radial-gradient(
    circle calc(180px + var(--scroll-progress-1) * 1200px) at 50% 42%,
    #000 0%,
    #000 calc(var(--scroll-progress-1) * 92%),
    transparent calc(var(--scroll-progress-1) * 92% + 38%)
  );
  mask-image: radial-gradient(
    circle calc(180px + var(--scroll-progress-1) * 1200px) at 50% 42%,
    #000 0%,
    #000 calc(var(--scroll-progress-1) * 92%),
    transparent calc(var(--scroll-progress-1) * 92% + 38%)
  );
  transform: translateY(calc((1 - var(--scroll-progress-1)) * 60px));
  opacity: var(--scroll-progress-1);
}

html.portal-open .vision-section {
  -webkit-mask-image: none;
  mask-image: none;
}

.vision-content {
  max-width: 1600px;
  text-align: center;
  padding: 40px 40px 80px;
}

.vision-content p {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.2;
  color: #ffffff;
  -webkit-text-stroke: 3px rgba(0, 0, 0, 0.9);
  paint-order: stroke fill;
  opacity: calc(var(--scroll-progress-1) * 1.5 - 0.5);
  transform: translateY(calc((1 - var(--scroll-progress-1)) * 30px));
  max-width: 1400px;
  letter-spacing: -0.01em;
}

.arroway-section {
  position: relative;
  z-index: 2;
  padding: 80px 40px;
}

.arroway-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  padding: 60px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}

.arroway-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arroway-logo img {
  max-width: 100%;
  height: auto;
}

.arroway-content .title-block {
  margin-bottom: 32px;
}

.arroway-content .product-name {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111;
  display: inline;
}

.arroway-content .tagline {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: #333;
  letter-spacing: -0.01em;
  display: inline;
}

.arroway-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.arroway-content li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: #111;
}

.arroway-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.6;
  color: #111;
}

.arroway-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.arroway-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 0;
  cursor: pointer;
}

.arroway-btn.primary {
  background: #111;
  color: #fff;
}

.arroway-btn.primary:hover {
  background: #333;
}

.arroway-btn.secondary {
  background: transparent;
  color: #111;
  border: 2px solid #111;
}

.arroway-btn.secondary:hover {
  background: #111;
  color: #fff;
}

.footer {
  position: relative;
  background: transparent;
  padding: 30px 40px;
  text-align: center;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer p {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
  -webkit-text-stroke: 3px rgba(0, 0, 0, 0.9);
  paint-order: stroke fill;
  line-height: 1.5;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  -webkit-text-stroke: 3px rgba(0, 0, 0, 0.9);
  paint-order: stroke fill;
  transition: all 0.3s ease;
}

.footer a:hover {
  -webkit-text-stroke: 3px rgba(0, 0, 0, 1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  z-index: 10;
  opacity: calc(1 - var(--scroll-progress-1) * 2);
}

@media (max-width: 768px) {
  .arroway-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
    text-align: center;
  }

  .arroway-content li {
    text-align: left;
  }

  .arroway-buttons {
    justify-content: center;
  }

  .arroway-btn {
    flex: 1;
    min-width: 200px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
