/* ==========================================================================
   aetara inc. — 首页样式
   深空底色 + 轨道视角地球（夜晚 ↔ 轨道日出 交叉淡入）+ 毛玻璃顶栏
   ========================================================================== */

:root {
  --primary: #4a90e2;
  --background: #0a0e1a;
  --foreground: #e8eaf0;
  --font-heading: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* 整页竖向弹性布局：首屏撑满，页脚贴底，正常屏幕下不产生滚动条 */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   背景：轨道视角的地球，单张静态图
   -------------------------------------------------------------------------- */

.animated-starry-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: 50%;
  background-size: cover;
}

.bg-earth { background-image: url(images/earth-hero.webp); }

/* 流星：由 JS 动态插入，2s 后自动移除 */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px #fffc;
  animation: shootingStar 2s ease-out forwards;
}

.shooting-star::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, #fff0, #fffc);
  transform: translate(-100px) rotate(45deg);
}

@keyframes shootingStar {
  0%   { opacity: 1; transform: translate(0) scale(1); }
  100% { opacity: 0; transform: translate(300px, 300px) scale(0); }
}

@media (prefers-reduced-motion: reduce) {
  .shooting-star { display: none; }
}

/* --------------------------------------------------------------------------
   布局
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* --------------------------------------------------------------------------
   顶栏
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: #13182499;
  border-bottom: 1px solid #ffffff1a;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark .suffix {
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #ffffff80;
  margin-left: 0.6rem;
}

/* --------------------------------------------------------------------------
   首屏
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem; /* 顶部留出固定顶栏的高度 */
}

/* 左侧压暗，保证文字在亮星空上也读得清 */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.4) 50%,
    transparent
  );
}

.hero .container { position: relative; z-index: 10; }

.hero-inner { max-width: 64rem; }

.hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.hero-sub {
  margin: 2rem 0 0;
  max-width: 42rem;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.6;
  color: #e0e0e0;
}

.hero-actions { margin-top: 2.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  background: #fff;
  color: #000;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover { background: #f3f4f6; transform: scale(1.05); }

.btn svg { width: 1.25rem; height: 1.25rem; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid #ffffff1a;
  background: #13182466;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.site-footer a { color: #9ca3af; text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
