:root {
  /* Colors from TZ */
  --primary-gradient: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #F56040, #FCAF45);
  --text-primary: #111111;
  --text-secondary: #5B5B5B;
  --bg: #FFFFFF;
  --card: #F8F8F9;
  --border: #EAEAEA;
  
  /* Typography */
  --font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --h1-size: 48px;
  --h1-weight: 800;
  --h1-lh: 1.1;
  --h2-size: 32px;
  --h2-weight: 700;
  --h2-lh: 1.2;
  --h3-size: 24px;
  --h3-weight: 700;
  --h3-lh: 1.3;
  --body-size: 18px;
  --body-weight: 400;
  --body-lh: 1.6;
  --small-size: 14px;
  --small-weight: 400;
  --small-lh: 1.6;
  
  /* Radius */
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg);
  line-height: var(--body-lh);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
}

/* Global link styles */
a,
a:visited {
  text-decoration: none;
  color: inherit;
}

a:hover,
a:focus {
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(32px, 6vw, var(--h1-size));
  font-weight: var(--h1-weight);
  line-height: var(--h1-lh);
}

h2 {
  font-size: clamp(24px, 4vw, var(--h2-size));
  font-weight: var(--h2-weight);
  line-height: var(--h2-lh);
}

h3 {
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  line-height: var(--h3-lh);
}

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  gap: 24px;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-primary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(131, 58, 180, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(131, 58, 180, 0.4);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
}

.btn.ghost:hover {
  background: var(--card);
  border-color: var(--text-secondary);
}

.btn.large {
  padding: 16px 28px;
  font-size: 18px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  min-height: 80vh;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  color: var(--text-secondary);
  font-size: var(--small-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.subhead {
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.5;
  max-width: 500px;
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero Media */
.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mock {
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, #1a1a1a, #2d2d2d);
  border-radius: 40px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-mock__frame {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 30px;
  padding: 40px 20px 20px;
  position: relative;
}

.phone-mock__frame::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 6px;
  background: #333;
  border-radius: 3px;
}

.phone-mock__screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #833AB4, #E1306C);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-interface {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-message {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  font-size: 14px;
  max-width: 80%;
}

.user-message {
  background: var(--primary-gradient);
  color: white;
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  font-size: 14px;
  align-self: flex-end;
  max-width: 80%;
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  background: var(--card);
  border-radius: var(--radius-xl);
}

.about__content h2 {
  margin-bottom: 24px;
}

.about__content p {
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bullet {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bullet__icon {
  font-size: 24px;
  flex-shrink: 0;
}

.bullet__content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.bullet__content p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 16px;
}

/* About Media */
.chat-mock {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.chat-mock__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  max-width: 80%;
}

.message.bot {
  background: var(--card);
  color: var(--text-primary);
  align-self: flex-start;
}

.message.user {
  background: var(--primary-gradient);
  color: white;
  align-self: flex-end;
}

/* Section Head */
.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.kicker {
  color: var(--text-secondary);
  font-size: var(--small-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* Steps Section */
.steps {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

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

.step__icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.step h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.step p {
  color: var(--text-secondary);
  margin: 0;
}

.steps__note {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.1), rgba(252, 175, 69, 0.1));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(131, 58, 180, 0.2);
}

.steps__note p {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

/* Benefits Section */
.benefits {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  background: var(--card);
  border-radius: var(--radius-xl);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.benefit {
  padding: 32px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}

.benefit__icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.benefit h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.benefit p {
  color: var(--text-secondary);
  margin: 0;
}

.benefits__cta {
  text-align: center;
}

/* Theory Section */
.theory {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.theory__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.tip-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.tip-card__badge {
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--primary-gradient);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.tip-card__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.tip-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.tip-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14px;
}

.theory__aside {
  display: flex;
  justify-content: center;
}

.aside-card {
  max-width: 400px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.1), rgba(252, 175, 69, 0.1));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(131, 58, 180, 0.2);
  text-align: center;
}

.aside-card h3 {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.aside-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* Quotes Section */
.quotes {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.quotes__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.quote {
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border-left: 4px solid;
  border-image: var(--primary-gradient) 1;
  text-align: center;
}

.quote p {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.quote cite {
  color: var(--text-secondary);
  font-style: normal;
  font-size: 16px;
}

/* Final CTA Section */
.final-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  background: var(--primary-gradient);
  border-radius: var(--radius-xl);
  color: white;
}

.final-cta__content {
  text-align: left;
}

.final-cta__content h2 {
  color: white;
  margin-bottom: 16px;
  font-size: 36px;
}

.final-cta__content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  margin-bottom: 32px;
}

.final-cta .btn.primary {
  background: white;
  color: var(--text-primary);
}

.final-cta .btn.primary:hover {
  background: var(--card);
  transform: translateY(-2px);
}

/* Final CTA Media */
.cards-cascade {
  position: relative;
  height: 300px;
}

.card {
  position: absolute;
  width: 200px;
  height: 250px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card--1 {
  top: 0;
  left: 0;
  transform: rotate(-5deg);
}

.card--2 {
  top: 20px;
  left: 80px;
  transform: rotate(2deg);
}

.card--3 {
  top: 40px;
  left: 160px;
  transform: rotate(-2deg);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  color: var(--text-secondary);
  background: var(--card);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 16px;
}

.site-footer .brand {
  color: var(--text-primary);
  font-weight: 800;
  font-size: 18px;
}

.site-footer .links {
  display: flex;
  gap: 24px;
}

.site-footer .links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.copyright {
  text-align: center;
  font-size: var(--small-size);
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .steps__grid {
    grid-template-columns: 1fr;
  }
  
  .benefits__grid {
    grid-template-columns: 1fr;
  }
  
  .final-cta {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }
  
  .nav {
    display: none;
  }
  
  .hero {
    padding: 60px 16px;
  }
  
  .about, .steps, .benefits, .theory, .quotes, .final-cta {
    padding: 60px 16px;
  }
  
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-row .btn {
    text-align: center;
  }
  
  .phone-mock {
    width: 240px;
    height: 480px;
  }
  
  .cards-cascade {
    height: 200px;
  }
  
  .card {
    width: 150px;
    height: 180px;
  }
  
  .card--2 {
    left: 60px;
  }
  
  .card--3 {
    left: 120px;
  }
}

@media (min-width: 769px) {
  .nav {
    display: flex;
  }
}

/* Dark theme */
[data-theme="dark"] {
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --bg: #1a1a1a;
  --card: #2a2a2a;
  --border: #333333;
}

/* Theme and language switchers */
.controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 8px;
}

.control-btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn:hover {
  background: var(--card);
  border-color: var(--text-secondary);
}

.control-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
}