/* ============================================================
   Glow Media Inc — Landing Page styles
   Brand: dark navy base + blue→purple glow gradient accent
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --c-bg:        #081325;   /* page base */
  --c-bg-2:      #0a1a2f;   /* hero / dark panels */
  --c-panel:     #0e2138;   /* cards / raised surfaces */
  --c-panel-2:   #122a47;   /* card hover */
  --c-light:     #eafbfb;   /* light split panel (verticals) */
  --c-ink:       #0a1a2f;   /* text on light */
  --c-text:      #ffffff;
  --c-muted:     #aebccf;   /* muted body text on dark */
  --c-border:    rgba(255,255,255,.10);

  --accent-1:    #4f8df5;   /* blue */
  --accent-2:    #a35be0;   /* purple */
  --grad:        linear-gradient(135deg, var(--accent-1), var(--accent-2));

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 76px;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(99,102,241,.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(99,102,241,.75); }
.btn--lg { padding: 15px 38px; font-size: 1rem; margin-top: 30px; }
.btn--light {
  background: #fff;
  color: var(--c-ink);
  padding: 13px 40px;
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(0,0,0,.5); }

/* ---- Section titles ---- */
.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
}
.section-title--center { text-align: center; margin-bottom: 56px; }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled {
  background: rgba(8,19,37,.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--c-border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,5vw,40px); }
.nav__logo img { height: 40px; width: auto; }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__toggle { display: none; }

/* ============================================================
   Section 1 — Hero
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: 100px;
  /* 天际线作为整块背景，叠左深右浅渐变保证文字可读 */
  background:
    linear-gradient(90deg, rgba(8,19,37,.95) 0%, rgba(8,19,37,.78) 45%, rgba(8,19,37,.5) 100%),
    url("../img/hero-skyline.png") center / cover no-repeat,
    var(--c-bg-2);
  overflow: hidden;
}
.hero__inner { width: 100%; }
.hero__copy { max-width: 640px; }
.hero__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 26px;
}
.hero__text { color: var(--c-muted); font-size: 1.02rem; max-width: 560px; margin: 0; }

/* ============================================================
   Section 2 — Strategic Verticals (split: dark left / light right)
   ============================================================ */
.verticals {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
}
.verticals__intro {
  background: var(--c-bg-2);
  padding: clamp(50px, 7vw, 110px) clamp(28px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.verticals__text { color: var(--c-muted); margin: 26px auto 0; max-width: 420px; }
.verticals__grid {
  background: var(--c-light);
  color: var(--c-ink);
  padding: clamp(50px, 7vw, 110px) clamp(28px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: center;
  gap: clamp(28px, 4vw, 54px) clamp(40px, 5vw, 80px);
  align-content: center;
}
.vert { display: flex; align-items: center; gap: 16px; }
.vert__icon {
  width: 58px; height: 58px;
  object-fit: contain;
  border-radius: 12px;
  flex: 0 0 auto;
}
.vert__label { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }

/* ============================================================
   Section 3 — Why Glow Media (dark, 2x2 cards, no images)
   ============================================================ */
.why { padding: clamp(70px, 9vw, 130px) 0; background: var(--c-bg); }
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.card {
  background: var(--c-panel);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); background: var(--c-panel-2); border-color: rgba(99,102,241,.35); }
.card:hover::before { transform: scaleX(1); }
.card__title { font-size: 1.3rem; font-weight: 600; margin: 0 0 12px; }
.card__text { color: var(--c-muted); margin: 0; font-size: .98rem; }

/* ============================================================
   Section 4 — Get in Touch (split: graphic left / form right)
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
}
.contact__media {
  background: radial-gradient(circle at 50% 45%, #14213d, var(--c-bg) 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 90px);
}
.contact__media img { max-width: 460px; width: 100%; filter: drop-shadow(0 20px 50px rgba(80,120,255,.35)); }
.contact__panel {
  background: var(--grad);
  padding: clamp(48px, 6vw, 96px) clamp(28px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact__title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 0 0 32px; }

/* ---- Form ---- */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { margin-bottom: 22px; display: flex; flex-direction: column; }
.form__field label { font-size: .82rem; font-weight: 600; margin-bottom: 8px; letter-spacing: .02em; }
.form input, .form textarea {
  font-family: inherit;
  font-size: .95rem;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  width: 100%;
  resize: vertical;
  transition: border-color .2s ease, background .2s ease;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.7); }
.form input:focus, .form textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.2); }
/* 表单状态条：默认中性（发送中），成功=绿，失败=红，带图标 */
.form__note {
  margin: 18px 0 0;
  font-size: .92rem;
  font-weight: 600;
  padding: 12px 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  animation: noteIn .25s ease;
}
.form__note::before {
  content: "…";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 800;
  background: rgba(255, 255, 255, .25);
}
.form__note--success { background: #10b981; }                 /* emerald */
.form__note--success::before { content: "✓"; background: rgba(255, 255, 255, .25); }
.form__note--error { background: #ef4444; }                   /* red */
.form__note--error::before { content: "!"; background: rgba(255, 255, 255, .25); }
@keyframes noteIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* 蜜罐字段：display:none，杜绝浏览器/密码管理器自动填充导致真人提交被误杀 */
.hp { display: none; }

/* ============================================================
   Section 5 — Footer
   ============================================================ */
.footer { background: var(--c-bg-2); padding: clamp(56px, 7vw, 90px) 0 50px; border-top: 1px solid var(--c-border); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.footer__logo { height: 72px; width: auto; }
.footer__info { display: flex; flex-direction: column; gap: 8px; color: var(--c-muted); font-size: .98rem; }
.footer__info span { color: #fff; font-weight: 600; }
.footer__info a { color: var(--accent-1); }
.footer__bottom {
  width: 100%;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.footer__copy { grid-column: 2; text-align: center; color: var(--c-muted); font-size: .88rem; margin: 0; }
.footer__links { grid-column: 3; justify-self: end; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer__links a { color: var(--c-muted); font-size: .92rem; transition: color .2s ease; }
.footer__links a:hover { color: #fff; }
@media (max-width: 640px) {
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; }
  .footer__copy { grid-column: 1; }
  .footer__links { grid-column: 1; justify-self: center; }
}

/* ============================================================
   Legal pages — Privacy Policy / Terms of Service
   ============================================================ */
.legal { padding: calc(var(--nav-h) + 60px) 0 90px; background: var(--c-bg); }
.legal .container { max-width: 880px; }
.legal__header { border-bottom: 1px solid var(--c-border); padding-bottom: 26px; margin-bottom: 40px; }
.legal__header h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 0 0 10px; }
.legal__updated { color: var(--c-muted); font-size: .9rem; margin: 0; }
.legal__body h2 { font-size: 1.35rem; font-weight: 600; margin: 42px 0 14px; }
.legal__body p { color: var(--c-muted); margin: 0 0 16px; }
.legal__body ul { color: var(--c-muted); padding-left: 1.25em; margin: 0 0 18px; list-style: disc; }
.legal__body li { margin-bottom: 8px; }
.legal__body a { color: var(--accent-1); }
.legal__body strong { color: #fff; font-weight: 600; }
.legal__contact { line-height: 1.9; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  /* 移动端文字全宽居中，背景改为平铺暗罩保证可读 */
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(8,19,37,.82), rgba(8,19,37,.9)),
      url("../img/hero-skyline.png") center / cover no-repeat,
      var(--c-bg-2);
  }
  .hero__inner { text-align: center; }
  .hero__copy { max-width: none; }
  .hero__text { margin-inline: auto; }
  .verticals, .contact { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }

  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav__toggle span { width: 26px; height: 2px; background: #fff; transition: .25s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__actions {
    position: fixed;
    top: var(--nav-h); right: 0; left: 0;
    background: rgba(8,19,37,.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 22px;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    border-bottom: 1px solid var(--c-border);
  }
  .nav__actions.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
}

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .verticals__grid { grid-template-columns: max-content; }
}
