:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f8fafc;
  font-synthesis: none;
}

html[lang="zh-Hant"] {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans CJK TC",
    "Microsoft JhengHei", sans-serif;
}

html[lang="ja"] {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans CJK JP", "Meiryo", sans-serif;
}

html[lang="ja"] h1 {
  font-size: clamp(40px, 6.2vw, 66px);
}

html[lang="ko"] {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans CJK KR",
    "Malgun Gothic", sans-serif;
  word-break: keep-all;
}

html[lang="ko"] h1 {
  font-size: clamp(38px, 5.8vw, 60px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 8%, rgba(204, 251, 241, 0.72), transparent 25rem),
    linear-gradient(180deg, #ffffff 0, #f8fafc 52rem);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), 1120px);
  min-height: 72px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 0 0;
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #134e4a;
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.22);
  font-size: 18px;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: #0f766e;
}

main,
footer {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 620px;
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  padding: 88px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #115e59;
}

.button-secondary {
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
}

.transcript-preview {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(153, 246, 228, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
  transform: rotate(1.5deg);
}

.transcript-preview::before {
  position: absolute;
  z-index: -1;
  inset: 38px -26px -24px 24px;
  border-radius: 28px;
  background: #ccfbf1;
  content: "";
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
  color: #1e293b;
  font-size: 15px;
  font-weight: 700;
}

.preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d54941;
  box-shadow: 0 0 0 5px rgba(213, 73, 65, 0.12);
}

.preview-time {
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.preview-wave {
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 16px 0 20px;
  padding: 0 10px;
  border-radius: 16px;
  background: #f0fdfa;
}

.preview-wave span {
  width: 3px;
  height: 14px;
  border-radius: 4px;
  background: #0f766e;
}

.preview-wave span:nth-child(3n + 1) {
  height: 32px;
}

.preview-wave span:nth-child(4n + 2) {
  height: 48px;
}

.preview-wave span:nth-child(5n) {
  height: 22px;
}

.preview-segment {
  margin-top: 18px;
}

.speaker {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.speaker-a {
  background: #ecfdf5;
  color: #0f766e;
}

.speaker-b {
  background: #eff6ff;
  color: #2563eb;
}

.preview-segment p {
  margin: 8px 0 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
}

.search-chip {
  margin-top: 22px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: 252px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.055);
}

.card-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.card h3 {
  margin: 48px 0 10px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

.privacy-panel,
.contact-panel {
  display: grid;
  align-items: center;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding: 56px;
  border-radius: 30px;
}

.privacy-panel {
  background: #134e4a;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(19, 78, 74, 0.18);
}

.privacy-panel .eyebrow {
  color: #99f6e4;
}

.privacy-panel p:last-child {
  margin: 0;
  color: #ccfbf1;
  font-size: 16px;
  line-height: 1.95;
}

.help-section {
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
}

.faq-list {
  border-top: 1px solid #dbe3e8;
}

details {
  border-bottom: 1px solid #dbe3e8;
}

summary {
  position: relative;
  padding: 22px 44px 22px 0;
  color: #1e293b;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 20px;
  right: 4px;
  color: #0f766e;
  content: "+";
  font-size: 24px;
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: -4px 44px 20px 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.85;
}

.contact-panel {
  margin-bottom: 72px;
  border: 1px solid #d1fae5;
  background: linear-gradient(135deg, #f0fdfa, #ffffff);
}

.contact-panel p {
  margin: 18px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.85;
}

.contact-panel .privacy-note {
  color: #64748b;
  font-size: 13px;
}

.contact-link {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid #99f6e4;
  border-radius: 20px;
  background: #ffffff;
  color: #134e4a;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.09);
}

.contact-link span {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
}

.contact-link strong {
  font-size: clamp(18px, 2.2vw, 26px);
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 13px;
}

footer a {
  color: #0f766e;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.language-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.language-links a {
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
}

.language-links a:hover,
.language-links a:focus-visible {
  color: #0f766e;
}

.language-links a[aria-current="page"] {
  color: #0f766e;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .transcript-preview {
    width: min(100%, 560px);
    margin: 0 auto;
    transform: none;
  }

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

  .privacy-panel,
  .contact-panel,
  .help-section {
    grid-template-columns: 1fr;
  }

  .help-section {
    gap: 24px;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), 1120px);
  }

  .site-header {
    min-height: 64px;
  }

  nav {
    gap: 16px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    gap: 52px;
    padding: 58px 0 76px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .transcript-preview {
    padding: 18px;
    border-radius: 22px;
  }

  .transcript-preview::before {
    inset: 22px -10px -12px 12px;
  }

  .section {
    padding: 72px 0;
  }

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

  .card {
    min-height: auto;
  }

  .card h3 {
    margin-top: 30px;
  }

  .privacy-panel,
  .contact-panel {
    gap: 26px;
    padding: 32px 24px;
    border-radius: 24px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

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