:root {
  --bg: #ffffff;
  --ink: #111318;
  --muted: #5a626f;
  --line: #dfe4ea;
  --soft: #f5f7f9;
  --soft-2: #eef3f1;
  --red: #b4232a;
  --red-dark: #831b22;
  --teal: #147d6f;
  --green: #2d9b63;
  --amber: #c7862d;
  --shadow: 0 24px 70px rgba(18, 22, 28, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC",
    "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(223, 228, 234, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 1rem;
  font-weight: 760;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  font-weight: 860;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 0.92rem;
  font-weight: 640;
  color: #303640;
}

.nav-links a,
.footer-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--red);
}

.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-switch button {
  min-width: 42px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 720;
  cursor: pointer;
}

.language-switch button.active {
  color: #fff;
  background: var(--ink);
}

.section-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-right: clamp(20px, 4vw, 40px);
  padding-left: clamp(20px, 4vw, 40px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-top: 46px;
  padding-bottom: 64px;
}

.hero-copy h1,
.section-heading h2,
.platform-copy h2,
.languages h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.55rem, 5.6vw, 5.55rem);
  line-height: 0.98;
}

.hero-copy p,
.section-heading p,
.platform-copy p,
.languages p,
.footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy p {
  max-width: 610px;
  margin: 28px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 760;
}

.button.primary {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 12px 28px rgba(180, 35, 42, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
}

.hero-visual {
  min-width: 0;
}

.console {
  overflow: hidden;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.console-top {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
}

.dot.red {
  background: var(--red);
}

.dot.amber {
  background: var(--amber);
}

.dot.green {
  background: var(--green);
}

.console-title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.console-body {
  display: grid;
  grid-template-columns: 62px 1fr;
  min-height: 500px;
}

.console-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding-top: 24px;
  border-right: 1px solid var(--line);
  background: #f8fafb;
}

.console-sidebar span {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: #e0e6eb;
}

.console-sidebar span:first-child {
  background: var(--red);
}

.console-main {
  padding: 24px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.status-strip div,
.preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.status-strip div {
  padding: 13px 14px;
}

.status-strip strong,
.status-strip small {
  display: block;
}

.status-strip strong {
  font-size: 0.92rem;
}

.status-strip small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

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

.preview-card {
  min-height: 164px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #252a31;
  font-size: 0.84rem;
  font-weight: 780;
}

.preview-heading i {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--teal);
}

.message {
  height: 17px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: #dfe8e6;
}

.message.incoming {
  width: 72%;
}

.message.outgoing {
  width: 58%;
  margin-left: auto;
  background: #f1d8da;
}

.message.short {
  width: 46%;
}

.mail-preview code {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--red-dark);
  background: #fff1f2;
  font-size: 0.76rem;
}

.mail-line,
.plan-row {
  height: 12px;
  margin-top: 15px;
  border-radius: 4px;
  background: #e4e9ee;
}

.mail-line.narrow,
.plan-row.mid {
  width: 68%;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.roadmap span {
  aspect-ratio: 1;
  border: 1px solid #d9dee3;
  border-radius: 99px;
  background: #ffffff;
}

.roadmap span:nth-child(3n + 1) {
  background: #f4dddf;
  border-color: #e8bdc0;
}

.roadmap span:nth-child(4n) {
  background: #dff0eb;
  border-color: #b7dcd2;
}

.products,
.platform,
.languages,
.footer {
  padding-top: 92px;
  padding-bottom: 92px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading h2,
.platform-copy h2,
.languages h2 {
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.05;
}

.section-heading p,
.platform-copy p,
.languages p {
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.product-card:last-child {
  border-right: 0;
}

.product-card:hover {
  background: #fbfcfd;
}

.product-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--red);
  background: #fff1f2;
}

.product-icon svg {
  width: 22px;
  height: 22px;
}

.product-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.product-tagline {
  display: block;
  min-height: 48px;
  margin-top: 12px;
  color: #1d242d;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.45;
}

.product-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.feature-list {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 8px;
  color: #2f3742;
  font-size: 0.92rem;
  line-height: 1.45;
}

.feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--teal);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--red);
  font-weight: 800;
}

.product-link svg {
  width: 17px;
  height: 17px;
}

.platform {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.9fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform-copy {
  position: sticky;
  top: 110px;
}

.platform-copy p {
  margin-top: 24px;
}

.platform-rail {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.rail-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.rail-item:last-child {
  border-bottom: 0;
}

.rail-item span {
  color: var(--red);
  font-weight: 820;
}

.rail-item strong {
  display: block;
  font-size: 1.1rem;
}

.rail-item p {
  grid-column: 2;
  margin: -8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.languages {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.55fr);
  gap: 48px;
  align-items: center;
}

.languages p {
  margin-top: 20px;
}

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

.language-list span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  font-weight: 760;
}

.language-list span:last-child {
  grid-column: 1 / -1;
  color: #ffffff;
  background: var(--ink);
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.footer p {
  max-width: 560px;
  margin: 16px 0 0;
}

.footer-links {
  display: grid;
  gap: 10px;
  min-width: 180px;
  color: #303640;
  font-weight: 720;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section-heading,
  .platform,
  .languages,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .platform-copy {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card:nth-child(2) {
    border-right: 0;
  }

  .product-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .language-switch {
    max-width: 180px;
    overflow-x: auto;
  }

  .language-switch button {
    min-width: 38px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 13vw, 3.6rem);
    line-height: 1.03;
  }

  .console-body {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    display: none;
  }

  .product-grid,
  .language-list {
    grid-template-columns: 1fr;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .console-main {
    padding: 16px;
  }

  .preview-card {
    min-height: 122px;
    padding: 12px;
  }

  .preview-heading {
    margin-bottom: 12px;
    font-size: 0.76rem;
  }

  .mail-preview code {
    padding: 7px 8px;
    font-size: 0.68rem;
    white-space: normal;
  }

  .message {
    height: 12px;
    margin-bottom: 9px;
  }

  .mail-line,
  .plan-row {
    height: 9px;
    margin-top: 10px;
  }

  .product-card,
  .product-card:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-card:last-child {
    border-bottom: 0;
  }

  .rail-item {
    grid-template-columns: 1fr;
  }

  .rail-item p {
    grid-column: 1;
    margin-top: 0;
  }

  .language-list span:last-child {
    grid-column: auto;
  }
}
