/* ============================================
   HYPOTH INNOVATE — iPhone-style brand site
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  --brand: #e82050;
  --brand-light: #f43f6a;
  --brand-dark: #c0103c;
  --brand-soft: #fff0f3;

  --ink: #0a0a0a;
  --ink-2: #1d1d1f;     /* iOS dark */
  --ink-3: #2c2c2e;

  --paper: #ffffff;
  --paper-2: #fbfbfd;
  --paper-3: #f5f5f7;

  --type-1: #1d1d1f;
  --type-2: #6e6e73;
  --type-3: #86868b;

  --line: #d2d2d7;
  --line-2: #e5e5ea;

  --header-h: 4.5rem;
  --max-w: 1240px;

  --t-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family:
    "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--type-1);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,h5,h6,p,ul,ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img,svg { display: block; max-width: 100%; }
ul,ol { list-style: none; }
button,input,textarea { font: inherit; }
img { -webkit-user-drag: none; user-select: none; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  text-transform: none;
  margin-bottom: 0.875rem;
}
.eyebrow.on-dark { color: var(--brand-light); }
.eyebrow.muted { color: var(--type-3); }

/* ---------- Header (sticky minimal) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.site-header.is-stuck {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--line-2);
}
.site-header.is-dark {
  background: rgba(0,0,0,0.7);
  color: var(--paper);
  border-bottom-color: rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: inherit;
}
.brand-link img {
  height: 2.2rem;
  width: auto;
  object-fit: contain;
}
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
}
.lang-link {
  color: inherit;
  opacity: 0.7;
  transition: opacity var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.lang-link:hover { opacity: 1; }
.lang-link.is-active {
  font-weight: 700;
  opacity: 1;
  color: var(--brand);
}
.site-header.is-dark .lang-link.is-active { color: var(--brand-light); }
.lang-divider {
  opacity: 0.35;
  user-select: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: 1rem;
  color: inherit;
  opacity: 0.85;
  transition: opacity var(--t-fast);
}
.nav-link:hover { opacity: 1; }
.nav-link.is-active { font-weight: 600; opacity: 1; }
.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 2.25rem; height: 2.25rem;
  color: inherit;
  cursor: pointer;
}

/* ---------- HERO (灰底大字 + 视频动画) ---------- */
.hero-dark {
  background: #7f7f7f;
  color: #ffffff;
  padding: 3.5rem 0 0;
  position: relative;
  overflow: hidden;
}
.hero-dark .container {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
}
.hero-dark .eyebrow {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  max-width: 18ch;
  margin: 0 auto;
}
.hero-subtitle {
  margin-top: 1rem;
  font-size: 1.25rem;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 5px rgba(0,0,0,0.35);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-visual {
  margin-top: 2.5rem;
  margin-bottom: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual img {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
}
.hero-visual video {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #7f7f7f;
}

/* 右侧参数栏（iPhone 风格） */
.spec-side {
  position: absolute;
  right: 1.5rem;
  top: 4.5rem;
  display: grid;
  gap: 1.5rem;
  text-align: left;
  max-width: 13rem;
  z-index: 2;
}
.spec-side .specline { display: grid; gap: 0.125rem; }
.spec-side .specline .up {
  font-size: 0.75rem;
  color: #86868b;
  letter-spacing: 0.04em;
}
.spec-side .specline .num {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
}
.spec-side .specline .desc {
  font-size: 0.85rem;
  color: #a1a1a6;
}

/* 滚动锚点 */
.anchor-block { scroll-margin-top: var(--header-h); }

/* ---------- Sections: white ---------- */
.section-light {
  background: var(--paper-2);
  color: var(--type-1);
  padding: 6rem 0;
  position: relative;
}
.section-light .eyebrow { color: var(--brand); }
.section-white { background: #fff; padding: 6rem 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-visual img {
  max-height: 56vh;
  width: auto;
  object-fit: contain;
}
.split-copy {
  max-width: 32rem;
}
.split-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--type-1);
}
.split-desc {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--type-2);
  line-height: 1.6;
}
.feature-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.875rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.95rem;
  color: var(--type-2);
}
.feature-list li svg {
  flex: none;
  width: 1.125rem; height: 1.125rem;
  color: var(--brand);
  margin-top: 0.2rem;
}

/* ---------- Specifications table ---------- */
.section-spec {
  background: var(--paper-3);
  padding: 6rem 0;
}
.section-spec .eyebrow { color: var(--brand); }
.spec-table-wrap {
  margin-top: 2.5rem;
  background: #fff;
  border-radius: 1.25rem;
  padding: 0.5rem;
  overflow-x: auto;
  border: 1px solid var(--line-2);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th,
.spec-table td {
  padding: 1.1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
}
.spec-table th {
  background: transparent;
  font-weight: 600;
  color: var(--type-1);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.spec-table td.spec-name {
  font-weight: 600;
  color: var(--type-1);
  width: 22%;
  background: rgba(0,0,0,0.02);
}
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td.spec-value {
  font-weight: 500;
  color: var(--brand);
}
.spec-table td .extra {
  display: block;
  font-weight: 400;
  color: var(--type-2);
  font-size: 0.85rem;
  margin-top: 0.125rem;
}

/* ---------- KPI / big number strips (black bg) ---------- */
.kpi-dark {
  background: #000;
  color: #fff;
  padding: 5rem 0;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: left;
}
.kpi-cell .kpi-num {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--brand);
}
.kpi-cell .kpi-cap {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #a1a1a6;
  line-height: 1.5;
}

/* ---------- Section: Applications (cards) ---------- */
.section-apps { background: var(--paper); padding: 6rem 0; }
.app-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.app-card {
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  transition: transform var(--t);
}
.app-card:hover { transform: translateY(-4px); }
.app-card .img {
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.app-card .img img { max-height: 100%; width: 100%; object-fit: contain; }
.app-card .body { padding: 1.25rem 1.25rem 1.5rem; }
.app-card .body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--type-1);
  margin-bottom: 0.25rem;
}
.app-card .body p {
  font-size: 0.875rem;
  color: var(--type-2);
}

/* ---------- Contact form section (about) ---------- */
.form-section {
  background: var(--paper);
  padding: 5rem 0 6rem;
}
.form-shell {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 3rem;
}
.contact-info { display: grid; gap: 1rem; }
.info-card {
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 1.25rem;
  border: 1px solid var(--line-2);
  border-radius: 1rem;
  background: var(--paper-2);
}
.info-card .ico {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 0.625rem;
}
.info-card .ico svg { width: 1.25rem; height: 1.25rem; }
.info-card .label { font-size: 0.8125rem; color: var(--type-3); margin-bottom: 0.125rem; }
.info-card .value { font-size: 0.95rem; color: var(--type-1); font-weight: 600; }

.form {
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  border-radius: 1.25rem;
  padding: 1.75rem;
}
.form-success {
  display: none;
  padding: 0.875rem 1rem;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 0.625rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--type-2);
  margin-bottom: 0.375rem;
}
.form-group label .req { color: var(--brand); }
.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 0.625rem;
  outline: 0;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: 0.95rem;
  color: var(--type-1);
}
.form-control:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(232,32,80,0.12);
}
.form-control.is-invalid { border-color: var(--brand); }
.form-error {
  display: none;
  font-size: 0.8125rem;
  color: var(--brand);
  margin-top: 0.25rem;
}
.form-control.is-invalid + .form-error { display: block; }
textarea.form-control { min-height: 120px; resize: vertical; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(232,32,80,0.4);
}
.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  border: 0;
  transition: gap var(--t-fast);
}
.btn-ghost:hover { gap: 0.875rem; }
.btn-ghost svg { transition: transform var(--t-fast); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ---------- Feature Stages (4 product advantages, image + caption) ----------
   PDF 中每张图都配有解释文字；这里让 caption 紧贴图片下方，
   视觉上仍像同一段内容。 */
.feature-stage {
  background: var(--paper);
  padding: 0;
  overflow: hidden;
}
.feature-stage .stage-media {
  display: block;
  width: 100%;
  line-height: 0;
}
.feature-stage .stage-media img {
  display: block;
  width: 100%;
  height: auto;
}
.feature-stage .stage-caption {
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
.feature-stage .stage-caption .eyebrow {
  margin-bottom: 0.75rem;
}
.feature-stage .stage-caption h2 {
  font-size: clamp(1.75rem, 4.4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--type-1);
}
.feature-stage .stage-caption h2 em {
  font-style: italic;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", serif;
}
.feature-stage .stage-caption p {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--type-2);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.feature-stage.alt  { background: var(--paper-2); }
.feature-stage.dark {
  background: #000;
  color: #fff;
}
.feature-stage.dark .stage-caption h2 { color: #fff; }
.feature-stage.dark .stage-caption p  { color: #a1a1a6; }
.feature-stage.dark .stage-caption .eyebrow { color: var(--brand-light); }

@media (max-width: 640px) {
  .feature-stage .stage-caption { padding: 1.75rem 1rem 3.5rem; }
  .feature-stage .stage-caption p { font-size: 1rem; }
}

/* ---------- CTA Block (black bottom) ---------- */
.cta-dark {
  background: #000;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}
.cta-dark .eyebrow { color: var(--brand); }
.cta-dark h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 22ch;
  margin: 0.5rem auto 0;
}
.cta-dark p {
  margin: 1rem auto 2rem;
  color: #a1a1a6;
  max-width: 36rem;
  font-size: 1.05rem;
}

/* ---------- Timeline (about) ---------- */
.timeline {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}
.timeline-row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line-2);
}
.timeline-row:last-child { border-bottom: 1px solid var(--line-2); }
.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.timeline-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--type-1);
  margin-bottom: 0.375rem;
}
.timeline-body p {
  font-size: 0.95rem;
  color: var(--type-2);
  line-height: 1.6;
}

/* ---------- Culture cards (about) ---------- */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.culture-cell {
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: transform var(--t), box-shadow var(--t);
}
.culture-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.culture-cell .ico {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.625rem;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.culture-cell .ico svg { width: 1.25rem; height: 1.25rem; }
.culture-cell h3 { font-size: 1.0625rem; font-weight: 700; color: var(--type-1); margin-bottom: 0.375rem; }
.culture-cell p { font-size: 0.875rem; color: var(--type-2); line-height: 1.6; }

/* ---------- Footer (black) ---------- */
.site-footer {
  background: #000;
  color: #d2d2d7;
  padding: 3.5rem 0 2rem;
  font-size: 0.875rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer .foot-brand { display: flex; flex-direction: column; gap: 1rem; }
.site-footer .foot-brand img { max-height: 1.75rem; max-width: 10rem; width: auto; height: auto; }
.site-footer .foot-brand p {
  color: #86868b;
  max-width: 22rem;
  font-size: 0.8125rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer ul a {
  color: #a1a1a6;
  font-size: 0.875rem;
  transition: color var(--t-fast);
}
.site-footer ul a:hover { color: var(--brand-light); }
.site-footer .foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #86868b;
  font-size: 0.8125rem;
}

/* ---------- Reveal animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fade-up.is-in {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.d1 { transition-delay: 80ms; }
.fade-up.d2 { transition-delay: 160ms; }
.fade-up.d3 { transition-delay: 240ms; }
.fade-up.d4 { transition-delay: 320ms; }

/* Language chooser (root /index.html) */
.chooser {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #000;
  color: #fff;
}
.chooser-inner {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 920px;
}
.chooser h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.chooser p { color: #a1a1a6; margin-bottom: 3rem; }
.chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .chooser-grid { grid-template-columns: 1fr; }
}
.chooser-card {
  display: block;
  padding: 2rem;
  border-radius: 1.5rem;
  background: #1d1d1f;
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  transition: transform var(--t), background var(--t);
}
.chooser-card:hover {
  transform: translateY(-3px);
  background: #2c2c2e;
}
.chooser-card img { height: 2rem; width: auto; margin: 0 auto 1rem; }
.chooser-card .lang {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.chooser-card .hint { color: #86868b; font-size: 0.875rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .split.flip, .form-shell { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.flip { direction: ltr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .culture-grid { grid-template-columns: 1fr 1fr; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .spec-side {
    position: static;
    margin: 1.5rem auto 0;
    text-align: center;
    justify-items: center;
    max-width: 100%;
  }
  .section-light, .section-white, .section-spec, .kpi-dark, .section-apps, .form-section { padding: 4rem 0; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 3.5rem; }
  .brand-link img { height: 1.7rem; }
  .lang-current { padding: 0.25rem 0.55rem; font-size: 0.75rem; }
  .nav { display: none; }
  .menu-btn { display: flex; align-items: center; justify-content: center; }
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-visual img { max-height: 50vh; }
  .kpi-grid, .culture-grid, .app-grid, .form-row { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none; opacity: 1; transform: none; }
}
