/* AcesoAI — Apple-adjacent calm UI */
:root {
  --bg: #fbfbfd;
  --bg-elevated: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.12);
  --hero-mid: #e8f4ff;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", system-ui, sans-serif;
  --max: 980px;
  --header-h: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .feature-card,
  .hero-glow {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html[lang="zh-TW"] body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Heiti TC",
    "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  letter-spacing: 0.02em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  z-index: 1000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

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

.nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
}

.lang-switch__btn {
  margin: 0;
  padding: 5px 10px;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn[aria-pressed="true"] {
  color: var(--text);
  background: var(--bg-elevated);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 22px 88px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 85%;
  background: radial-gradient(
      ellipse 70% 55% at 50% 0%,
      var(--hero-mid) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 40% at 80% 20%,
      rgba(0, 113, 227, 0.08) 0%,
      transparent 65%
    );
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(.hero-glow) {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 36em;
  margin: 0 auto 36px;
  font-size: 21px;
  line-height: 1.381;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-decoration: none;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-large {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
}

/* Sections */
.section {
  padding: 80px 22px;
}

.section-head {
  max-width: 42em;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.08349;
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 0;
  font-size: 19px;
  line-height: 1.4211;
  color: var(--text-secondary);
}

/* Feature grid */
.features {
  background: var(--bg);
}

.feature-grid {
  list-style: none;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 36px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 24px 48px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.19048;
}

.feature-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.feature-title-link:hover {
  color: var(--accent);
}

.feature-demo {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.4;
}

.feature-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 0.2s ease, gap 0.2s ease;
}

.feature-demo-link:hover {
  color: var(--accent-hover);
  gap: 8px;
}

.feature-demo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.feature-demo-arrow {
  flex-shrink: 0;
  opacity: 0.85;
}

.feature-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

/* Band */
.band {
  padding: 72px 22px;
  background: linear-gradient(180deg, #f5f5f7 0%, var(--bg) 100%);
}

.band-inner {
  max-width: 720px;
  margin: 0 auto;
}

.band-quote {
  margin: 0;
  text-align: center;
}

.band-quote p {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14286;
  letter-spacing: -0.025em;
  color: var(--text);
}

.band-quote footer {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* CTA */
.cta {
  padding-bottom: 100px;
}

.cta-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 36px 52px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.cta-card p {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 22px 40px;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

.footer-brand {
  letter-spacing: -0.01em;
}

@media (max-width: 734px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .lang-switch__btn {
    padding: 6px 8px;
    font-size: 10px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }

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

  .band-quote p {
    font-size: 22px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}
