/* BreakTimer-new landing page — local-only styles (SPEC-0016, ADR-0024). */

:root {
  color-scheme: light dark;
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-alt: #edf2ee;
  --text: #10241f;
  --muted: #4d625c;
  --brand: #1f7a66;
  --brand-strong: #125746;
  --on-brand: #ffffff;
  --accent: #c9f0df;
  --accent-text: #0d4a3a;
  --border: #d7e0d9;
  --border-strong: #b9cbc1;
  --focus: #b5551b;
  --shadow: 0 18px 45px rgba(16, 36, 31, 0.09);
  --shadow-soft: 0 8px 24px rgba(16, 36, 31, 0.07);
  --note-bg: #fff6e0;
  --note-border: #e3bf72;
  --note-text: #493812;
  --header-bg: rgba(246, 244, 238, 0.86);
  --hero-glow: rgba(31, 122, 102, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1512;
    --surface: #12211d;
    --surface-alt: #172a24;
    --text: #eef7f2;
    --muted: #a9c0b7;
    --brand: #72d6b5;
    --brand-strong: #72d6b5;
    --on-brand: #06211a;
    --accent: #1b3d33;
    --accent-text: #a9efd8;
    --border: #244239;
    --border-strong: #36584d;
    --focus: #f0b26b;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
    --note-bg: #2b2412;
    --note-border: #8a6c2c;
    --note-text: #f4e4bd;
    --header-bg: rgba(11, 21, 18, 0.86);
    --hero-glow: rgba(114, 214, 181, 0.12);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:where(a, summary, button):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  min-height: 68px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  padding-block: 4px;
  text-decoration: none;
}

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

.lang-link {
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-link:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.hero {
  position: relative;
  padding-block: 84px 96px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 42%, var(--hero-glow), transparent 34%),
    radial-gradient(circle at 8% 6%, rgba(201, 240, 223, 0.42), transparent 30%);
  content: "";
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background:
      radial-gradient(circle at 78% 42%, var(--hero-glow), transparent 34%),
      radial-gradient(circle at 8% 6%, rgba(31, 122, 102, 0.16), transparent 30%);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 5.4vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

h1 span {
  color: var(--brand-strong);
}

.lede {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.16rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand-strong);
  color: var(--on-brand);
}

.button-primary:hover {
  background: var(--brand);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.button svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--surface), var(--surface-alt));
  background-size:
    42px 42px,
    42px 42px,
    100% 100%;
  box-shadow: var(--shadow);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 42s linear infinite;
}

.orbit-a {
  width: 58%;
  height: 58%;
}

.orbit-b {
  width: 80%;
  height: 80%;
  animation-direction: reverse;
  animation-duration: 58s;
}

.orbit::after {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.hero-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 31%;
  height: auto;
  border-radius: 24%;
  box-shadow: 0 16px 34px rgba(9, 45, 37, 0.28);
  transform: translate(-50%, -50%);
}

.chip {
  position: absolute;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 0.79rem;
  font-weight: 650;
  white-space: nowrap;
}

.chip-a {
  top: 10%;
  left: 5%;
}

.chip-b {
  top: 26%;
  right: 3%;
}

.chip-c {
  bottom: 19%;
  left: 3%;
}

.chip-d {
  right: 7%;
  bottom: 7%;
}

@keyframes orbit-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.section {
  padding-block: 92px;
}

.section-alt {
  border-block: 1px solid var(--border);
  background: var(--surface-alt);
}

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

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: var(--accent-text);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: 9px;
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.download-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.download-card.featured {
  border-color: var(--brand);
}

.download-card h3 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.download-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.file-name {
  margin: 4px 0 18px;
  color: var(--brand-strong) !important;
  font-family:
    ui-monospace,
    "Cascadia Code",
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 0.84rem !important;
  overflow-wrap: anywhere;
}

.download-card .button {
  margin-top: auto;
}

.download-meta {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-code {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.download-code strong {
  color: var(--text);
  font-family:
    ui-monospace,
    "Cascadia Code",
    "SFMono-Regular",
    Consolas,
    monospace;
  font-size: 0.86rem;
}

.download-fallback {
  margin: 18px 0 0;
  padding: 16px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 0.92rem;
}

.download-kinds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.download-kind {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.download-kind h3 {
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.download-kind p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-kind .file-name {
  margin: 4px 0 8px;
}

.notice {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid var(--note-border);
  border-radius: 18px;
  background: var(--note-bg);
  color: var(--note-text);
}

.notice-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: rgba(181, 85, 27, 0.14);
}

.notice-icon svg {
  width: 25px;
  height: 25px;
}

.notice h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.notice p {
  margin-bottom: 0;
  font-size: 0.91rem;
}

.notice a {
  font-weight: 700;
}

.requirement {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.privacy {
  margin-top: 34px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.privacy summary {
  cursor: pointer;
  font-weight: 700;
}

.privacy summary:hover {
  color: var(--brand-strong);
}

.privacy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.site-footer {
  padding-block: 52px 40px;
  background: #0b1d18;
  color: #d7e8e1;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(215, 232, 225, 0.16);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f3fbf7;
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #b9d2c8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: grid;
  gap: 8px;
  padding-top: 24px;
}

.footer-bottom p {
  margin: 0;
  color: #9fbbb0;
  font-size: 0.84rem;
}

.footer-bottom a {
  color: #cde4da;
}

@media (max-width: 960px) {
  .hero {
    padding-block: 62px 76px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .hero-copy {
    max-width: 680px;
  }

  h1 {
    max-width: 16ch;
  }

  .hero-visual {
    width: min(100%, 390px);
  }

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

@media (max-width: 640px) {
  html {
    scroll-padding-top: 132px;
  }

  .container {
    width: min(100% - 36px, 1120px);
  }

  .header-inner {
    gap: 8px 16px;
    min-height: 0;
    padding-block: 11px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 2px;
    font-size: 0.88rem;
  }

  .lang-link {
    margin-left: auto;
  }

  .hero {
    padding-block: 46px 60px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 12vw, 3.1rem);
  }

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

  .button {
    width: 100%;
  }

  .hero-visual {
    width: min(100%, 340px);
    border-radius: 26px;
  }

  .chip {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .section {
    padding-block: 64px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .features,
  .download-grid,
  .download-kinds {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card,
  .download-card {
    padding: 24px 21px;
  }

  .notice {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .footer-top {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
