/* ===== CSS Custom Properties ===== */
:root {
  --page-bg: #ffffff;
  --section-bg: #f5f5f7;
  --card-bg: #ffffff;
  --nav-bg: rgba(251, 251, 253, 0.8);
  --footer-bg: #f5f5f7;

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-link: #0071e3;

  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-active: #006edb;
  --blue-ring: rgba(0, 113, 227, 0.16);

  --border-subtle: #d2d2d7;
  --border-soft: #e8e8ed;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);

  --radius-pill: 980px;
  --radius-card: 18px;
  --radius-field: 10px;

  --nav-height: 44px;
  --content-max: 1068px;

  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #000000;
    --section-bg: #1c1c1e;
    --card-bg: #1c1c1e;
    --nav-bg: rgba(29, 29, 31, 0.8);
    --footer-bg: #1c1c1e;

    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --text-tertiary: #6e6e73;
    --text-link: #2997ff;

    --blue: #0071e3;
    --blue-hover: #2997ff;
    --blue-active: #0077ed;
    --blue-ring: rgba(41, 151, 255, 0.24);

    --border-subtle: #424245;
    --border-soft: #38383a;

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  }
}

/* ===== Reset & Baseline ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--text-primary);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.47059;
  letter-spacing: -0.022em;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--text-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(0, 113, 227, 0.2);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

/* ===== Container ===== */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 22px;
}

/* ===== Progress Bar ===== */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--blue);
  z-index: 400;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-badge {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.nav-links a {
  color: var(--text-primary);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.176;
  letter-spacing: -0.022em;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: none;
  min-width: 28px;
}

a.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: #ffffff;
}

.btn-primary:active {
  background: var(--blue-active);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.05);
  color: var(--blue);
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 22px 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 15px;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ===== Mobile Menu (legacy support) ===== */
.mobile-menu {
  display: none;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--section-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.083;
  letter-spacing: -0.015em;
  margin: 0 auto;
}

.section-sub {
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* Legacy class names */
section {
  padding: 100px 0;
}

.section-h {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.083;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  text-align: center;
}

.muted {
  color: var(--text-secondary);
}

.tips {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  background: var(--page-bg);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kicker {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: none;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 auto 12px;
  color: var(--text-primary);
  max-width: 800px;
}

.hero p {
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 14px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ===== Metrics Ribbon ===== */
.metrics-ribbon {
  width: 100%;
  margin-top: 60px;
}

.ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.metric-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 32px 24px 40px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-pill .num {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.metric-pill .txt .k {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.metric-pill .txt .desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.metric-pill .metric-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 4px;
}

@media (max-width: 780px) {
  .ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 430px) {
  .ribbon {
    grid-template-columns: 1fr;
  }
}

/* ===== Partners Marquee ===== */
.partners {
  padding: 18px 0;
  margin-top: 20px;
}

.marquee {
  display: flex;
  gap: 36px;
  align-items: center;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 36px;
  animation: scrollX 22s linear infinite;
}

.marquee img {
  height: 50px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
}

.marquee img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scrollX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 430px) {
  .partners .marquee img {
    height: 42px;
  }
}

/* ===== Grid System ===== */
.grid {
  display: grid;
  gap: 20px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 780px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-center {
  text-align: center;
}

/* ===== Tabs (Services) ===== */
.tabs {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

.tab-head {
  display: flex;
  border-bottom: 1px solid var(--border-soft);
  background: var(--section-bg);
}

.tab-head label {
  flex: 1;
  padding: 14px 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  border-radius: 0;
  background: none;
}

.tab-head label:hover {
  color: var(--text-primary);
}

.tab-panel {
  display: none;
  padding: 32px;
}

input[name="tabset"] {
  display: none;
}

input#tabA:checked ~ .tab-panels #panelA,
input#tabB:checked ~ .tab-panels #panelB,
input#tabC:checked ~ .tab-panels #panelC,
input#tabD:checked ~ .tab-panels #panelD {
  display: block;
}

input#tabA:checked ~ .tab-head label[for="tabA"],
input#tabB:checked ~ .tab-head label[for="tabB"],
input#tabC:checked ~ .tab-head label[for="tabC"],
input#tabD:checked ~ .tab-head label[for="tabD"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
  background: transparent;
  font-weight: 600;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  margin-top: 6px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
}

.tl-item {
  position: relative;
  padding-left: 52px;
  margin: 28px 0;
}

.tl-item:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
}

.tl-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

/* ===== Case / Solution Cards ===== */
.case {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.case .banner {
  height: 220px;
  background: var(--section-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case .meta {
  padding: 28px 32px;
}

.stat {
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

/* ===== Form ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 780px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-group.full-width {
  grid-column: 1 / -1;
}

.field-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-field);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  line-height: 1.333;
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-ring);
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868b' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-input.is-invalid {
  border-color: #ff3b30;
}

.form-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.16);
}

.form-input.is-valid {
  border-color: #34c759;
}

.form-input.is-valid:focus {
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.16);
}

.error-message {
  font-size: 12px;
  color: #ff3b30;
  min-height: 18px;
  line-height: 1.4;
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 4px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.agree-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  cursor: pointer;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ===== Contact Layout ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.contact-form {
  padding: 40px;
}

.contact-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.contact-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.47;
}

.contact-info {
  padding: 40px;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.contact-info-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: none;
}

.contact-item p {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.47;
}

.contact-item a {
  color: var(--text-link);
}

.contact-item .muted {
  color: var(--text-secondary);
  font-size: 14px;
}

.qr-area {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

.qr-area img {
  width: 168px;
  height: 168px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
}

/* Legacy form support */
.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 4px;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-item label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Validation states */
.success-box {
  background: #f0fff4;
  border: 1px solid #b7eb8f;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 18px;
  font-size: 14px;
  color: #389e0d;
  line-height: 1.5;
}

.form-error {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #ff3b30;
  line-height: 1.5;
}

.form-error div+div {
  margin-top: 4px;
}

@media (prefers-color-scheme: dark) {
  .success-box {
    background: rgba(52, 199, 89, 0.12);
    border-color: rgba(52, 199, 89, 0.3);
    color: #73d13d;
  }

  .form-error {
    background: rgba(255, 59, 48, 0.12);
    border-color: rgba(255, 59, 48, 0.3);
  }
}

/* Legacy danger/success */
.danger {
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #ff3b30;
  line-height: 1.5;
}

.success {
  background: #f0fff4;
  border: 1px solid #b7eb8f;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 18px;
  font-size: 14px;
  color: #389e0d;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .danger {
    background: rgba(255, 59, 48, 0.12);
    border-color: rgba(255, 59, 48, 0.3);
  }

  .success {
    background: rgba(52, 199, 89, 0.12);
    border-color: rgba(52, 199, 89, 0.3);
    color: #73d13d;
  }
}

.danger[hidden], .success[hidden],
.form-error[hidden], .success-box[hidden] {
  display: none;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  background: var(--footer-bg);
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-line a {
  color: var(--text-tertiary);
  transition: color 0.15s ease;
}

.footer-line a:hover {
  color: var(--text-link);
}

.police-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* Legacy footer classes */
footer {
  padding: 32px 0;
  background: var(--footer-bg);
  border-top: 1px solid var(--border-soft);
}

.foot-col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-tertiary);
}

.foot-col a {
  color: var(--text-tertiary);
  transition: color 0.15s ease;
}

.foot-col a:hover {
  color: var(--text-link);
}

/* ===== To Top ===== */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  font-size: 18px;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
}

.to-top.show {
  display: inline-flex;
}

.to-top:hover {
  background: var(--section-bg);
}

/* ===== Cover Page ===== */
html.cover-open,
body.cover-open {
  height: 100%;
  overflow: hidden;
}

.home-cover {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--page-bg);
  color: var(--text-primary);
  cursor: default;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.home-cover[aria-hidden="true"] {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  pointer-events: none;
  visibility: hidden;
}

.home-cover.leaving .home-lockup {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cover-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(16px, 4vw, 32px);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}

.cover-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cover-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.cover-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.cover-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.cover-links a {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.cover-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.home-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px);
}

.home-lockup {
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
  will-change: transform;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.home-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.home-summary {
  margin: 0 auto;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-secondary);
}

.home-ctas {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.enter-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 4px;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-tertiary);
}

.mouse {
  width: 22px;
  height: 32px;
  border: 2px solid var(--text-tertiary);
  border-radius: 14px;
  position: relative;
  display: inline-block;
}

.mouse:after {
  content: "";
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--text-tertiary);
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}

@keyframes wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  60% { opacity: 0; transform: translate(-50%, 8px); }
  100% { opacity: 0; transform: translate(-50%, 8px); }
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.01, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.01, 0.25, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Prevent reveal when cover is open */
.cover-open .reveal {
  opacity: 0 !important;
  transform: translateY(24px) !important;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-cover,
  .home-lockup {
    transition: none;
  }

  .marquee-track {
    animation: none;
  }
}

/* ===== Responsive: Hero & Sections ===== */
@media (max-width: 1068px) {
  .hero h1 {
    font-size: 52px;
  }

  .section-h,
  .section-header h2 {
    font-size: 40px;
  }

  .home-title {
    font-size: 52px;
  }

  .contact-wrap {
    grid-template-columns: 1fr 320px;
    gap: 28px;
  }
}

@media (max-width: 780px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section {
    padding: 60px 0;
  }

  .section-h {
    font-size: 32px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .home-title {
    font-size: 40px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .home-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .home-ctas .btn {
    width: 100%;
  }

  .tab-head {
    flex-wrap: wrap;
  }

  .tab-head label {
    flex: 1 1 50%;
    font-size: 12px;
    padding: 12px 10px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 34px;
  }

  .section-h {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .home-title {
    font-size: 34px;
  }

  .contact-form {
    padding: 24px;
  }

  .contact-info {
    padding: 24px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== noscript ===== */
noscript .home-cover {
  display: none;
}

/* ===== Tables ===== */
.leads-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.leads-table th,
.leads-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

.leads-table thead {
  font-weight: 600;
  color: var(--text-primary);
}

.leads-table tbody tr:hover {
  background: var(--section-bg);
}

.leads-table .empty-row td {
  color: var(--text-secondary);
  padding: 16px;
  text-align: center;
}

@media (max-width: 768px) {
  .leads-table thead { display: none; }

  .leads-table tr {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    margin-bottom: 12px;
    background: var(--section-bg);
  }

  .leads-table td {
    border-bottom: 0;
    padding: 6px 0;
  }

  .leads-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
  }

  .leads-table .empty-row {
    display: block;
    border: 0;
    background: none;
  }

  .leads-table .empty-row td {
    padding: 12px 0;
  }
}
