/* iTime product site — calm dark tech, cool gray-blue accent */

:root {
  color-scheme: dark;
  --bg: #0f1419;
  --bg-elevated: #151b22;
  --bg-soft: #1a222c;
  --bg-tint: #121820;
  --surface: #1c2430;
  --text: #e8edf3;
  --text-secondary: #9aa8b6;
  --text-muted: #6f7f90;
  --border: rgba(154, 168, 182, 0.16);
  --border-strong: rgba(154, 168, 182, 0.28);
  --accent: #7d93a8;
  --accent-strong: #a8bccf;
  --accent-soft: rgba(125, 147, 168, 0.14);
  --ok: #7aa889;
  --danger-soft: rgba(169, 77, 85, 0.12);
  --danger-text: #d9a0a6;
  --ok-soft: rgba(122, 168, 137, 0.12);
  --ok-text: #a8d0b4;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --mono: "Cascadia Mono", "Segoe UI Mono", "Consolas", ui-monospace, monospace;
  --shell: 1120px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(125, 147, 168, 0.12), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(125, 147, 168, 0.06), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #d0dbe6;
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 8px;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  margin-left: 0.35rem;
  background: var(--accent-soft);
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.nav-star {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.15rem;
  background: linear-gradient(180deg, #2f2816 0%, #1a150b 100%);
  color: #ffe082 !important;
  border: 1px solid rgba(255, 213, 79, 0.7);
  font-weight: 750;
  box-shadow:
    0 0 0 1px rgba(255, 193, 7, 0.25),
    0 0 16px rgba(255, 193, 7, 0.35);
}

.nav-star:hover {
  color: #fff8e1 !important;
  background: linear-gradient(180deg, #3d3320 0%, #241c10 100%);
  border-color: rgba(255, 236, 179, 0.9);
  box-shadow:
    0 0 0 1px rgba(255, 213, 79, 0.4),
    0 0 24px rgba(255, 193, 7, 0.55);
}

.nav-star .star-icon {
  width: 20px;
  height: 20px;
  color: #ffeb3b;
  filter:
    drop-shadow(0 0 2px #fff59d)
    drop-shadow(0 0 8px rgba(255, 193, 7, 1))
    drop-shadow(0 0 14px rgba(255, 152, 0, 0.7));
}

.nav-star:hover .star-icon {
  color: #ffff00;
  filter:
    drop-shadow(0 0 3px #fffde7)
    drop-shadow(0 0 12px rgba(255, 235, 59, 1))
    drop-shadow(0 0 20px rgba(255, 152, 0, 0.85));
}

.mobile-star {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  color: #ffe082 !important;
  font-weight: 700;
}

.mobile-star .star-icon {
  color: #ffd54f;
  filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.9));
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--text);
}

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.96);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Hero */
.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16ch;
}

.lede {
  margin: 1rem 0 0;
  max-width: 42ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-meta {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-visual {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
}

.hero-visual figcaption {
  padding: 0.7rem 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #d7e2ec 0%, #b7c7d6 100%);
  color: #15202b;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  color: #0d141c;
  background: linear-gradient(180deg, #e8f0f7 0%, #c5d4e2 100%);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* Bright yellow star CTAs */
.star-icon {
  display: block;
  flex: 0 0 auto;
  color: #ffd54f;
  filter:
    drop-shadow(0 0 2px rgba(255, 236, 179, 0.95))
    drop-shadow(0 0 8px rgba(255, 193, 7, 0.85));
}

.star-icon--sm {
  width: 16px;
  height: 16px;
}

.star-icon--md {
  width: 22px;
  height: 22px;
}

.star-icon--lg {
  width: 28px;
  height: 28px;
  filter:
    drop-shadow(0 0 2px #fff59d)
    drop-shadow(0 0 10px rgba(255, 193, 7, 0.95))
    drop-shadow(0 0 18px rgba(255, 152, 0, 0.55));
}

.btn-star {
  gap: 0.55rem;
  background: linear-gradient(180deg, #2b2414 0%, #1c170c 100%);
  color: #ffe082;
  border-color: rgba(255, 213, 79, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 193, 7, 0.25),
    0 0 22px rgba(255, 193, 7, 0.28),
    inset 0 1px 0 rgba(255, 236, 179, 0.18);
}

.btn-star:hover {
  color: #fff8e1;
  background: linear-gradient(180deg, #3a3018 0%, #261e10 100%);
  border-color: rgba(255, 236, 179, 0.85);
  box-shadow:
    0 0 0 1px rgba(255, 213, 79, 0.4),
    0 0 30px rgba(255, 193, 7, 0.42),
    inset 0 1px 0 rgba(255, 248, 225, 0.28);
}

.btn-star:hover .star-icon {
  color: #ffeb3b;
  filter:
    drop-shadow(0 0 3px #fff59d)
    drop-shadow(0 0 12px rgba(255, 235, 59, 1))
    drop-shadow(0 0 22px rgba(255, 152, 0, 0.7));
}

.btn-star--lg {
  min-height: 52px;
  padding-inline: 1.3rem;
  font-size: 1rem;
}

.hero-actions .btn-star {
  min-height: 50px;
  padding-inline: 1.2rem;
  font-size: 1rem;
  font-weight: 700;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.download-actions .btn {
  margin-top: 0;
}

.star-banner {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.15rem;
  padding: 1.4rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 213, 79, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 193, 7, 0.16), transparent 52%),
    var(--bg-elevated);
  box-shadow: 0 0 28px rgba(255, 193, 7, 0.1);
}

.star-banner-label {
  margin: 0 0 0.4rem;
  color: #ffd54f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 193, 7, 0.55);
}

.star-banner h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.star-banner-copy p:last-child {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 48ch;
}

.star-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.footer-star {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  color: #ffe082 !important;
  font-weight: 700;
}

.footer-star .star-icon {
  color: #ffd54f;
}

.footer-star:hover {
  color: #fff8e1 !important;
}

.footer-star:hover .star-icon {
  color: #ffeb3b;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--tint {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015), transparent);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  max-width: 58ch;
}

/* Product */
.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.product-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.product-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.product-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.product-card--wide {
  background:
    linear-gradient(135deg, rgba(125, 147, 168, 0.12), transparent 55%),
    var(--bg-elevated);
}

/* Features */
.feature-list {
  display: grid;
  gap: 0.85rem;
}

.feature-row {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.feature-text h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-text p {
  margin: 0;
  color: var(--text-secondary);
}

.feature-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.feature-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Screenshots */
.shot-grid {
  display: grid;
  gap: 1rem;
}

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.shot img {
  width: 100%;
}

.shot figcaption {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Privacy */
.privacy-grid {
  display: grid;
  gap: 1rem;
}

.privacy-card {
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.privacy-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
}

.privacy-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
}

.privacy-card li + li {
  margin-top: 0.4rem;
}

.privacy-yes {
  background: linear-gradient(180deg, var(--ok-soft), var(--bg-elevated));
  border-color: rgba(122, 168, 137, 0.28);
}

.privacy-yes h3 {
  color: var(--ok-text);
}

.privacy-no {
  background: linear-gradient(180deg, var(--danger-soft), var(--bg-elevated));
  border-color: rgba(169, 77, 85, 0.28);
}

.privacy-no h3 {
  color: var(--danger-text);
}

.privacy-note {
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Changelog */
.changelog-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.changelog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.changelog-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.changelog-card > p {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
}

.changelog-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
}

.changelog-card li + li {
  margin-top: 0.35rem;
}

.changelog-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.text-link {
  font-size: 0.92rem;
}

/* Download */
.section--download {
  padding-bottom: 5rem;
}

.download-grid {
  display: grid;
  gap: 1rem;
}

.download-card {
  padding: 1.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.download-card--primary {
  background:
    linear-gradient(160deg, rgba(125, 147, 168, 0.16), transparent 50%),
    var(--bg-elevated);
  border-color: rgba(168, 188, 207, 0.28);
}

.download-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.download-file {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--accent-strong);
  word-break: break-all;
}

.download-size {
  min-height: 1.25em;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.download-card > p:not(.download-label):not(.download-file) {
  margin: 0 0 0.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.download-card .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.req-box,
.hash-box {
  margin-top: 1.25rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.req-box h3,
.hash-head h3 {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
}

.req-box ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--text-secondary);
}

.req-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hash-head p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.hash-rows {
  display: grid;
  gap: 0.85rem;
}

.hash-row {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.hash-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.hash-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.hash-value {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--accent-strong);
  word-break: break-all;
}

.copy-btn {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.copy-btn:hover,
.copy-btn.is-copied {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.copy-btn:disabled {
  cursor: wait;
  opacity: 0.48;
}

.hash-cmd {
  margin: 1rem 0 0;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0b1015;
  overflow-x: auto;
}

.hash-cmd code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #c5d2de;
  white-space: pre;
}

.hash-note {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  background: rgba(0, 0, 0, 0.18);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  border-radius: 7px;
}

.footer-brand strong {
  display: block;
  letter-spacing: -0.02em;
}

.footer-brand p {
  margin: 0.1rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero {
    padding: 3rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 2.5rem;
  }

  .product-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .product-card--wide {
    grid-column: 1 / -1;
  }

  .feature-row {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }

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

  .shot--hero {
    grid-column: 1 / -1;
  }

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

  .download-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .star-banner {
    grid-template-columns: 1.3fr auto;
    align-items: center;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
  }

  .product-card--wide {
    grid-column: auto;
  }
}

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

  .btn {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: #0f1419;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
