/* Tempo64 marketing site */

:root {
  --bg: #18181c;
  --bg-elev: #232328;
  --text: #f5f5f7;
  --text-dim: #b6b6bd;
  --accent: #ff8c1a;
  --accent-soft: rgba(255, 140, 26, 0.18);
  --border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse at top, rgba(255, 140, 26, 0.13), transparent 60%),
    linear-gradient(180deg, #18181c, #0d0d11);
  text-align: center;
}

.hero-inner .logo {
  display: inline-block;
  width: 96px; height: 96px;
  /* iOS app-icon corner radius is ~22.37% of side length. */
  border-radius: 21px;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.tagline {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
}

.subtitle {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
}
.btn-primary:hover { background: #ffa64d; text-decoration: none; }
.btn-primary[aria-disabled="true"] { opacity: 0.7; cursor: default; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-elev); text-decoration: none; }

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 720px;
}

/* Screenshots */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 18px;
  justify-content: center;
}

.screenshot-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #1c1c22;
}

/* Features */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-grid li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 20px;
}

.feature-grid h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
}

.feature-grid p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* Steps */
.steps {
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
  display: grid;
  gap: 14px;
}

.steps li {
  position: relative;
  padding: 16px 18px 16px 56px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  counter-increment: steps;
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  background: var(--accent);
  color: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* Privacy + support */
.privacy p, .support p {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 720px;
}

/* Footer */
footer {
  padding: 32px 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer nav { display: flex; gap: 20px; }
footer nav a { color: var(--text-dim); }
footer nav a:hover { color: var(--accent); }

/* Mobile */
@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 40px; }
  .tagline { font-size: 18px; }
  .subtitle { font-size: 15px; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 24px; }

  /* Screenshots → horizontal snap-scroll carousel.
     Negative margin lets cards bleed to the screen edge for an
     App-Store-style preview; padding restores the gutter. */
  .screenshot-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 24px 12px;
    margin: 0 -24px;
    justify-content: flex-start;
  }
  .screenshot-grid img {
    flex: 0 0 200px;
    scroll-snap-align: center;
    width: 200px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
  footer nav { justify-content: center; }
}
