/* Design Tokens */
:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --text: #f5f5f5;
  --muted: #888888;
  --accent: #e8a838;
  --radius: 8px;
  --font: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  color: var(--text);
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wordmark {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.btn-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(232, 168, 56, 0.07) 0%, transparent 70%),
    var(--bg);
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  max-width: 640px;
  color: var(--muted);
}

#cycle-text {
  color: var(--accent);
  border-right: 2px solid var(--accent);
  padding-right: 0.1em;
  transition: opacity 0.3s ease;
}

@keyframes blink {
  0%, 50% { border-color: var(--accent); }
  51%, 100% { border-color: transparent; }
}

#cycle-text {
  animation: blink 1s step-end infinite;
}

.hero-tagline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.brand-story {
  max-width: 560px;
  margin: 2.5rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.brand-story p + p {
  margin-top: 0.75rem;
}

/* Showcase Section */
#showcase {
  padding: 6rem 2rem;
  text-align: center;
}

.showcase-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.mockup-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mockup-screen {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  width: 320px;
  overflow: hidden;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
}

.mockup-titlebar {
  background: #161b22;
  padding: 0.5rem 1rem;
  color: #3fb950;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
}

.mockup-body {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1117;
}

.mockup-body img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.mockup-inputbar {
  background: #161b22;
  padding: 0.5rem 1rem;
  color: #8b949e;
  font-size: 0.85rem;
  text-align: left;
  font-family: monospace;
}

.mockup-frame figcaption {
  color: var(--accent);
  font-family: monospace;
  font-size: 0.85rem;
}

/* Use-Cases Section */
#use-cases {
  padding: 6rem 2rem;
  text-align: center;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 3rem auto 0;
  display: grid;
}

.card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 0 0 18px rgba(232, 168, 56, 0.25);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.card .emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.card p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}

/* Download Section */
#download {
  padding: 6rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.download-subheading {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .download-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-platform {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
  min-width: 260px;
}

.btn-platform:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(232, 168, 56, 0.15);
  background: rgba(232, 168, 56, 0.05);
}

.btn-platform svg {
  width: 24px;
  height: 24px;
  fill: var(--text);
  flex-shrink: 0;
}

.link-fallback {
  color: var(--accent);
  font-size: 0.875rem;
  margin-top: 1.5rem;
  display: inline-block;
  transition: color 0.2s ease;
}

.link-fallback:hover {
  color: #ffc857;
  text-decoration: underline;
}

/* Platform Download Button Enhancements */
.btn-platform .button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-platform .button-title {
  font-weight: 600;
  font-size: 1rem;
}

.btn-platform .button-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* Highlighted Platform Button */
.btn-platform[data-highlighted] {
  border-color: var(--accent);
  background: rgba(232, 168, 56, 0.08);
  box-shadow: 0 0 20px rgba(232, 168, 56, 0.2);
  position: relative;
}

.btn-platform[data-highlighted]::before {
  content: 'Recommended for you';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.btn-platform[data-highlighted] svg {
  fill: var(--accent);
}

.btn-platform[data-highlighted] .button-title {
  color: var(--accent);
}

/* Secondary Platform Button (Windows ARM64) */
.btn-platform--secondary {
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.08);
  min-width: 220px;
  padding: 0.7rem 1.2rem;
}

.btn-platform--secondary:hover {
  opacity: 1;
}

.btn-platform--secondary .button-title {
  font-size: 0.9rem;
}

.btn-platform--secondary .button-subtitle {
  font-size: 0.75rem;
}

/* Responsive adjustments for badge */
@media (max-width: 640px) {
  .btn-platform::before {
    font-size: 0.55rem;
    padding: 0.15rem 0.5rem;
  }
}

/* Footer */
footer {
  background: #080808;
  padding: 3rem 1.5rem;
  text-align: center;
  color: rgba(245, 245, 245, 0.4);
  font-size: 0.8rem;
  line-height: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

footer .wordmark {
  color: rgba(245, 245, 245, 0.4);
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

footer .tagline {
  color: rgba(245, 245, 245, 0.4);
  margin-bottom: 0.5rem;
}

footer .etymology {
  color: rgba(245, 245, 245, 0.3);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffc857;
  text-decoration: underline;
}

footer .copyright {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.25);
}
