/* Kahel – Light color profile. No dark colors. */

:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #475569;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-light: #e0f2fe;
  --green: #22c55e;
  --error: #e11d48;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.06);
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
}

.btn:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-small {
  background: var(--surface);
  color: var(--text-secondary);
}

.btn-small:hover {
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Hero – moving background slideshow */
.hero {
  position: relative;
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-slide-1 {
  background-image: url('https://images.unsplash.com/photo-1590490360182-c33d57733427?auto=format&fit=crop&w=1600&q=80');
  animation: hero-bg-fade 20s ease-in-out infinite 0s;
}

.hero-bg-slide-2 {
  background-image: url('https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?auto=format&fit=crop&w=1600&q=80');
  animation: hero-bg-fade 20s ease-in-out infinite 5s;
}

.hero-bg-slide-3 {
  background-image: url('https://images.unsplash.com/photo-1631049307264-da0ec9d70304?auto=format&fit=crop&w=1600&q=80');
  animation: hero-bg-fade 20s ease-in-out infinite 10s;
}

.hero-bg-slide-4 {
  background-image: url('https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1600&q=80');
  animation: hero-bg-fade 20s ease-in-out infinite 15s;
}

@keyframes hero-bg-fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  20% { opacity: 1; }
  25% { opacity: 0; }
  25.001%, 100% { opacity: 0; }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.88) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

.hero-subtitle {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
}

.hero-cta {
  margin-top: 8px;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-title {
  margin: 0 0 40px;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* How it works */
.how-it-works {
  background: var(--bg-subtle);
}

.how-it-works .container {
  max-width: 560px;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.steps li {
  margin-bottom: 14px;
  padding-left: 8px;
  line-height: 1.6;
}

.steps strong {
  color: var(--text);
}

/* Tutorial */
.tutorial-section {
  background: var(--bg-subtle);
}

.tutorial-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.tutorial-video-wrap {
  max-width: 720px;
  margin: 0 auto 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tutorial-video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--border-light) 0%, var(--bg-subtle) 100%);
  color: var(--text-muted);
  padding: 24px;
  text-align: center;
}

.tutorial-video-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  line-height: 1;
}

.tutorial-video-placeholder p {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.tutorial-video-placeholder .tutorial-video-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.tutorial-video-placeholder code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.tutorial-steps {
  max-width: 640px;
  margin: 0 auto;
}

.tutorial-steps-title {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.tutorial-list {
  margin: 0;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.tutorial-list li {
  margin-bottom: 18px;
  padding-left: 8px;
}

.tutorial-list strong {
  color: var(--text);
}

.tutorial-list code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* Download */
section#download,
section.download-section {
  background-color: #bae6fd !important;
  background-image: none;
}


.download-intro {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.download-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.download-info h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
}

.download-info p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.download-info .btn {
  margin-bottom: 0;
}

.download-note {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin-top: 14px !important;
}

.download-meta {
  padding: 18px;
  background: var(--bg-subtle);
  border-radius: 6px;
  min-width: 180px;
  border: 1px solid var(--border-light);
}

.download-meta p {
  margin: 0 0 6px;
  font-size: 0.85rem;
}

.download-meta p:first-of-type {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 8px;
}

.download-meta ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.download-alt code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

/* Footer */
.footer-section {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-subtle);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 12px;
  line-height: 1.6;
}

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

@media (max-width: 720px) {
  .nav {
    gap: 14px;
  }
  .nav a:not(.btn) {
    display: none;
  }
  .download-card {
    grid-template-columns: 1fr;
  }
  .download-meta {
    min-width: auto;
  }
}
