/* Clariko landing page — design tokens mirror clariko-mobile/lib/app/design_tokens.dart */

:root {
  --ink: #0B102A;
  --ink-soft: #343B68;
  --muted: #7C83A8;

  --primary900: #3B168F;
  --primary800: #4C1D95;
  --primary700: #5B21B6;
  --primary600: #6D28D9;
  --primary500: #7C3AED;
  --primary400: #8B5CF6;
  --primary300: #A78BFA;
  --primary200: #C4B5FD;
  --primary100: #EDE9FE;
  --primary50: #F5F0FF;

  --surface: #FFFFFF;
  --surface-lavender: #FAF7FF;
  --border: #DDD4F7;
  --border-strong: #C7B8F4;

  --gold: #FBBF24;
  --orange: #F97316;
  --green: #10B981;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --max-width: 1120px;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(135deg, #F7F3FF 0%, #EFE6FF 50%, #E7DAFF 100%);
  background-attachment: fixed;
  line-height: 1.55;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.lang-switch a.active {
  color: var(--primary700);
  background: var(--primary100);
}

.lang-switch a:hover { color: var(--primary700); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  color: #fff;
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(109, 40, 217, 0.4); }

.btn-small {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 56px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--ink);
}

.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 46ch;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(340px, 80%);
  filter: drop-shadow(0 20px 40px rgba(109, 40, 217, 0.25));
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Sections */

section { padding-top: 48px; padding-bottom: 48px; }

.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
}

.section-lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 auto 48px;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
}

.step-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary600);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
}

.step-card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary100);
  color: var(--primary700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* Screenshot showcase */

.showcase {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.showcase img {
  width: 220px;
  border-radius: var(--radius-lg);
  border: 6px solid var(--surface);
  box-shadow: 0 20px 40px rgba(59, 22, 143, 0.18);
}

/* Who it's for */

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

.audience-item .check {
  color: var(--green);
  font-weight: 800;
  flex: 0 0 auto;
}

/* Languages */

.lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.lang-pill {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
}

/* Final CTA */

.final-cta {
  text-align: center;
  background: linear-gradient(135deg, #EEE7FF, #D9C8FF, #C8B6FF);
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  margin: 0 24px;
}

.final-cta img {
  width: 110px;
  margin: 0 auto 24px;
}

.final-cta h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 12px;
}

.final-cta p {
  color: var(--ink-soft);
  margin: 0 0 28px;
}

/* Footer */

.site-footer {
  padding-top: 48px;
  padding-bottom: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

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

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 12px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { order: -1; }
  .steps, .features-grid, .audience-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 26px; }
  .header-right { gap: 10px; }
  .lang-switch { display: none; }
}

/* Animation */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-visual img {
  animation: float 4.5s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered reveal within a row, up to 4 items */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
