:root {
  --bg: #09111b;
  --surface: rgba(12, 20, 32, 0.78);
  --surface-strong: #0d1724;
  --surface-soft: #121f30;
  --text: #edf4fb;
  --text-soft: #94a8bf;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #1f87ff;
  --accent-strong: #4ea0ff;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.3);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Segoe UI", "PingFang TC", "Microsoft JhengHei", Arial,
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(31, 135, 255, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(79, 121, 173, 0.14), transparent 24%),
    linear-gradient(180deg, #0a121c 0%, #071019 100%),
    var(--bg);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  min-height: 100dvh;
  padding: 20px 0 32px;
}

.hero-copy h1,
.section-heading h2,
.approach-copy h2,
.contact-copy h2 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.18;
  font-family:
    "Segoe UI", "PingFang TC", "Microsoft JhengHei", Arial,
    sans-serif;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-copy h1 {
  max-width: 11ch;
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  font-weight: 700;
}

.hero-text,
.section-heading p,
.approach-copy p,
.contact-copy p,
.service-card p,
.workflow-item p,
.approach-list p,
.coverage-card p {
  color: var(--text-soft);
  line-height: 1.8;
}

.hero-text {
  max-width: 34rem;
  margin: 18px 0 0;
  font-size: 1rem;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.brand-chip img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  background: #03070d;
}

.brand-chip span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: var(--accent);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(3, 105, 161, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-stage {
  position: relative;
  min-height: 560px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(31, 135, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(15, 23, 35, 0.96), rgba(8, 14, 22, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  pointer-events: none;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.34));
}

.hero-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 10px;
  width: min(380px, calc(100% - 36px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(7, 12, 20, 0.76);
  backdrop-filter: blur(14px);
}

.hero-panel-block {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.panel-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 0 0;
}

.proof-band article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.proof-band span,
.service-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-band strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.5;
}

.service-card,
.coverage-card,
.workflow-item {
  border-radius: var(--radius-sm);
}

.section {
  padding: 92px 0 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2,
.approach-copy h2,
.contact-copy h2 {
  max-width: 15ch;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-heading-wide h2 {
  max-width: 18ch;
}

.section-heading p,
.approach-copy p,
.contact-copy p {
  max-width: 42rem;
  margin-top: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.95fr;
  gap: 20px;
}

.service-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.service-card-feature {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(31, 135, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.service-card-tall {
  min-height: 260px;
}

.service-card h3,
.workflow-item h3 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.service-card p,
.workflow-item p {
  margin: 12px 0 0;
}

.service-card-visual {
  padding: 14px;
  overflow: hidden;
}

.service-card-visual img {
  width: 100%;
  height: 100%;
  min-height: 286px;
  object-fit: cover;
  border-radius: 14px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 20px;
}

.coverage-card {
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.coverage-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 600;
}

.coverage-card-image {
  grid-row: span 2;
  padding: 14px;
  overflow: hidden;
}

.coverage-card-image img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: 16px;
}

.approach-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.approach-copy {
  padding-right: 18px;
}

.approach-list {
  display: grid;
  gap: 16px;
}

.approach-list article {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.approach-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.workflow-item {
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.section-contact {
  padding-bottom: 40px;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(31, 135, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-soft);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.button:focus-visible,
.contact-form button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-form button[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.form-status.is-success {
  color: #7dd3fc;
}

.form-status.is-error {
  color: #fca5a5;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 32px 0 8px;
  color: var(--text-soft);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 14px;
  background: #02060b;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

@media (max-width: 1024px) {
  .hero,
  .approach-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-card-feature {
    grid-column: span 2;
  }

  .coverage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .coverage-card-image {
    grid-row: span 1;
  }

  .hero-copy h1,
  .section-heading h2,
  .approach-copy h2,
  .contact-copy h2 {
    max-width: 100%;
  }
}

@media (max-width: 840px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero,
  .proof-band,
  .coverage-grid,
  .workflow-grid,
  .services-grid,
  .approach-layout {
    grid-template-columns: 1fr;
  }

  .service-card-feature {
    grid-column: span 1;
  }

  .hero-panel {
    position: static;
    width: 100%;
    margin-top: 18px;
    flex-direction: column;
  }

  .section {
    padding-top: 76px;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions,
  .footer,
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .button,
  .contact-form button {
    width: 100%;
  }

  .brand-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-chip img {
    width: 46px;
    height: 46px;
  }
}
