:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #141417;
  --surface-raised: #1c1c21;
  --border: #26262c;
  --border-subtle: #1c1c22;
  --text-main: #f4f4f6;
  --text-muted: #8e8e93;
  --text-dim: #a1a1a8;
  --accent-yellow: #ffcc00;
  --accent-amber: #ff9f0a;
  --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro", "DIN Alternate", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.site-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.2rem;
}

.lang-switch button {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.lang-switch button:hover {
  color: var(--text-main);
}

.lang-switch button[aria-pressed="true"] {
  background: rgba(255, 204, 0, 0.12);
  color: var(--accent-yellow);
  border-color: rgba(255, 204, 0, 0.3);
}

.js-lang-ready [data-lang-panel][hidden] {
  display: none;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  width: fit-content;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: #141417;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
}

.brand-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-badge {
  font-size: 0.75rem;
  color: var(--accent-yellow);
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Hero Section */
.hero {
  padding: 2.5rem 0 3.5rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-desc {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}

/* Dual State Mechanical Demo Graphic */
.interactive-preview {
  margin: 0 auto 3rem;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.preview-clock-face {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.flip-plate {
  width: 140px;
  height: 110px;
  background: #18181c;
  border: 1px solid #282830;
  border-radius: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.flip-plate::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #09090b;
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.08);
}

.hinge-barrel {
  position: absolute;
  width: 8px;
  height: 22px;
  background: linear-gradient(90deg, #3a3a42, #1c1c20);
  border: 1px solid #4a4a54;
  border-radius: 3px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.hinge-barrel.left {
  left: -4px;
}

.hinge-barrel.right {
  right: -4px;
}

.plate-digit {
  font-size: 64px;
  font-weight: 700;
  color: #f5f5f7;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.preview-subtext {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1f1f26;
  padding-top: 0.75rem;
}

.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  display: inline-block;
  margin-right: 6px;
}

/* Highlights Grid */
.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.highlight-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Download / CTA Section */
.cta-box {
  background: linear-gradient(180deg, #18181d 0%, #111114 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  margin-bottom: 4rem;
}

.cta-box h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Document & Content Pages (Support / Privacy) */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-header .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.content-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1rem, 4vw, 2rem);
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

.content-section h2:first-of-type {
  margin-top: 0;
}

.content-section p, .content-section ul {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.content-section ul {
  padding-left: 1.25rem;
}

.content-section li {
  margin-bottom: 0.4rem;
}

.content-section a {
  color: var(--accent-yellow);
  text-decoration: none;
}

.content-section a:hover {
  text-decoration: underline;
}

.contact-card {
  background: #18181d;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.contact-card .email-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-yellow);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.made-with-airbuild {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.made-with-airbuild:hover {
  color: var(--text-main);
}

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

@media (max-width: 639px) {
  .page-header h1 {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
