/* ============================================================
   SKAIWALK · Landing page (index.html) + Drive page (drive.html)
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  /* Hero typography system. */
  --hero-setup-size: 48px;
  --hero-claim-size: 72px;
  --hero-product-size: 64px;
  --hero-edition-size: 36px;

  /* Fills the viewport. flex-column: inner block centers in the available
     space; learn-more sits naturally at the bottom. */
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 48px 32px;
  overflow: hidden;
}
.hero__atmosphere {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 38% 38% at 50% 56%,
      rgba(166,211,230,0.32) 0%,
      rgba(166,211,230,0.10) 40%,
      transparent 70%),
    radial-gradient(ellipse 80% 90% at 50% 45%,
      rgba(245,238,228,0.35) 0%,
      rgba(245,238,228,0.05) 55%,
      transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1240px;
  width: 100%;
  text-align: center;
}

/* Two-line statement */
.hero__statement {
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
.hero__statement-setup,
.hero__statement-claim {
  display: block;
}
.hero__statement-setup {
  font-size: var(--hero-setup-size);
  font-weight: var(--sk-weight-light);
  color: var(--sk-fg-muted);
}
.hero__statement-claim {
  font-size: var(--hero-claim-size);
  font-weight: var(--sk-weight-light);
  color: var(--sk-fg);
  margin-top: 8px;
}
/* AIR initials — plain spans, capitalization alone implies the acronym. */
.hero__air-letter { font-style: normal; }

/* Product photo with horizontal edge fade. */
.hero__watch-stage {
  position: relative;
  width: min(720px, 80vw);
  margin: 100px auto 0;
}
.hero__product-photo {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%, #000 7%, #000 93%, transparent 100%);
  filter:
    drop-shadow(0 24px 40px rgba(35, 60, 90, 0.22))
    drop-shadow(0 6px 12px rgba(35, 60, 90, 0.14));
}

/* Buy block: product wordmark + cursive edition + cta. */
.hero__buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
}
.hero__product {
  margin: 0;
  line-height: 1;
  text-align: center;
}
.hero__product-mark {
  height: calc(var(--hero-product-size) * 0.62);
  width: auto;
  display: inline-block;
  opacity: 0.95;
}
.hero__edition {
  display: inline-block;
  font-family: 'Italianno', cursive;
  font-size: var(--hero-edition-size);
  font-weight: 400;
  line-height: 1;
  color: var(--sk-fg-muted);
  letter-spacing: 0.01em;
  margin-top: 36px;
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__cta .sk-btn--primary {
  padding: 18px 56px;
  min-width: 240px;
  font-size: 16px;
  justify-content: center;
}

/* "Learn more" — sits at hero bottom in normal flow. */
.hero__learn-more {
  position: relative;
  z-index: 2;
  margin-top: 32px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sk-fg-subtle);
  opacity: 0.55;
  transition: opacity 280ms var(--sk-ease-flow), transform 280ms var(--sk-ease-flow);
}
.hero__learn-more:hover {
  opacity: 0.9;
  transform: translateY(2px);
}
.hero__learn-more svg {
  animation: heroLearnMoreBreathe 2.4s var(--sk-ease-flow) infinite;
}
@keyframes heroLearnMoreBreathe {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(4px); opacity: 1; }
}

/* ---------- Device glyphs (used in eco-node icons) ---------- */
.device-phone, .device-desktop {
  position: relative;
}
.device-phone {
  width: 56px; height: 100px;
  border-radius: 14px;
  background: linear-gradient(180deg, #E5ECF4, #C2CFDC);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 4px 12px -4px rgba(35,60,90,0.18);
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
}
.device-phone__screen {
  width: 100%; height: 100%;
  border-radius: 11px;
  background: linear-gradient(180deg, #EFF3F8 0%, #DDE4ED 100%);
  position: relative;
  overflow: hidden;
}
.device-phone__screen::after {
  content: "";
  position: absolute;
  left: 22%; right: 22%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166,211,230,0.9), transparent);
}
.device-desktop {
  width: 132px; height: 80px;
  border-radius: 8px;
  background: linear-gradient(180deg, #E5ECF4, #C2CFDC);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 4px 12px -4px rgba(35,60,90,0.18);
  padding: 5px;
}
.device-desktop::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #C2CFDC, #A6B4C5);
}
.device-desktop__screen {
  width: 100%; height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, #EFF3F8 0%, #DDE4ED 100%);
  position: relative;
  overflow: hidden;
}
.device-desktop__screen::after {
  content: "";
  position: absolute;
  left: 24%; right: 24%;
  top: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166,211,230,0.9), transparent);
}

/* ---------- Ecosystem (drive.html) ---------- */
.ecosystem {
  padding: 120px 48px 160px;
}
.ecosystem__inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.ecosystem__head .sk-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
}
.ecosystem__head h2 {
  font-weight: var(--sk-weight-regular);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--sk-fg);
  margin: 0 0 20px;
}
.ecosystem__lede {
  color: var(--sk-fg-muted);
  font-weight: var(--sk-weight-light);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 72px;
  line-height: 1.6;
}
.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.eco-node {
  padding: 40px 24px 32px;
  border-radius: var(--sk-radius-lg);
  background: var(--sk-glass-bg);
  backdrop-filter: var(--sk-glass-blur);
  -webkit-backdrop-filter: var(--sk-glass-blur);
  border: var(--sk-glass-border);
  box-shadow: var(--sk-glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition:
    transform 480ms var(--sk-ease-flow),
    background 480ms var(--sk-ease-flow),
    border-color 480ms var(--sk-ease-flow),
    box-shadow 480ms var(--sk-ease-flow);
}
.eco-node:hover {
  transform: translateY(-4px);
  background: var(--sk-glass-bg-hover);
  border: var(--sk-glass-border-hover);
  box-shadow: var(--sk-glass-shadow-hover);
}
.eco-node__icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eco-node__icon .sk-watch { width: 64px; height: 64px; }
.eco-node__icon .device-phone { width: 42px; height: 76px; }
.eco-node__icon .device-desktop { width: 100px; height: 62px; }
.eco-node__icon .cloud-glyph {
  width: 96px; height: 62px;
  display: flex; align-items: center; justify-content: center;
}
.cloud-glyph svg { opacity: 0.85; }
.eco-node__label {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sk-fg-muted);
}
.eco-node__name {
  font-weight: var(--sk-weight-medium);
  font-size: 15px;
  color: var(--sk-fg);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 96px 20px 64px; min-height: auto; }
  .hero__inner { gap: 48px; }
  .hero__watch-stage { width: 260px; }
  .ecosystem { padding: 80px 20px; }
  .ecosystem__grid { grid-template-columns: repeat(2, 1fr); }
}
