:root {
  --primary: #1A1A2E;
  --accent: #3B5BDB;
  --bg-color: #F4F4F7;
  --card-bg: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #495057;
  --text-muted: #868E96;
  
  --accent-yellow: #F59F00;
  --accent-green: #2B8A3E;
  --accent-red: #E03131;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --border-radius: 12px;
  
  --container-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm {
  max-width: 800px;
}
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.text-green { color: var(--accent-green) !important; }
.text-red { color: var(--accent-red) !important; }
.text-yellow { color: var(--accent-yellow) !important; }
.bg-yellow { background-color: var(--accent-yellow) !important; }
.bg-red { background-color: var(--accent-red) !important; }
.mt-4 { margin-top: 1.5rem; }
.w-100 { width: 100%; }
.w-90 { width: 90%; }
.w-80 { width: 80%; }
.w-70 { width: 70%; }
.w-60 { width: 60%; }

.light-bg { background-color: #EAEBF0; }
.dark-bg { background-color: var(--primary); color: #fff; }
.brand-bg { background-color: var(--accent); color: #fff; }

.section {
  padding: 80px 0;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: -20px auto 40px auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-fixed-2 { grid-template-columns: repeat(2, 1fr); }
.flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
@media (max-width: 768px) {
  .flex-row { flex-direction: column; }
  .grid-fixed-2 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 16px;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 91, 219, 0.2);
}
.btn-primary:hover {
  background-color: #2b47bb;
  transform: translateY(-1px);
}
.btn-white {
  background-color: #fff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--primary);
}
.btn-link {
  color: var(--text-secondary);
  text-decoration: underline;
  font-size: 14px;
  font-weight: 500;
}
.btn-link:hover {
  color: var(--primary);
}

/* Navbar */
.navbar {
  background: var(--bg-color);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo-icon {
  font-size: 20px;
  color: var(--accent-yellow);
}
.logo-accent {
  color: var(--accent);
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  overflow: hidden;
}
.hero-container {
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-content {
  flex: 1;
  max-width: 550px;
}
.trust-badge {
  display: inline-block;
  background-color: rgba(59, 91, 219, 0.1);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Telegram UI Mockup */
.phone-mockup {
  width: 320px;
  height: 620px;
  background-color: var(--primary);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 48px rgba(26, 26, 46, 0.2);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background-color: #000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}
.phone-screen {
  background-color: #E2E9F0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tg-header {
  background-color: #FFFFFF;
  padding: 32px 16px 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tg-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.tg-title-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.tg-name {
  font-weight: 600;
  color: #000;
  font-size: 15px;
}
.tg-status {
  font-size: 12px;
  color: var(--accent);
}
.tg-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}
.tg-message {
  background-color: #FFFFFF;
  padding: 12px 14px;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  font-size: 13px;
  color: #000;
  line-height: 1.4;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.tg-msg-text { margin-bottom: 4px; }
.highlight-yellow { background-color: rgba(245, 159, 0, 0.2); font-weight: 600; padding: 2px 4px; border-radius: 4px; }
.urgent { color: var(--accent-red); font-weight: 600; }
.warning { color: var(--accent-yellow); font-weight: 600; }
.action { color: var(--accent-green); font-weight: 600; }
.tg-msg-time {
  text-align: right;
  font-size: 10px;
  color: var(--text-muted);
}
.tg-keyboard {
  display: flex;
  gap: 8px;
}
.tg-btn {
  flex: 1;
  background-color: rgba(255,255,255,0.7);
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .hero-actions {
    align-items: center;
  }
  .hero-title { font-size: 36px; }
  .hero-visual {
    justify-content: center;
  }
}

/* Cards */
.card {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.card-text {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Workflow Steps */
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 16px;
}
.step-icon {
  width: 64px;
  height: 64px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px auto;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--accent);
}
.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-text {
  font-size: 14px;
  color: var(--text-secondary);
}
.step-connector {
  flex-grow: 1;
  height: 2px;
  background-color: rgba(59, 91, 219, 0.2);
  margin-top: 32px;
  max-width: 40px;
}
@media (max-width: 768px) {
  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .step-connector {
    display: none;
  }
}

/* Features List */
.features-content { flex: 1.2; }
.features-visual { flex: 0.8; }

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 16px;
  color: rgba(255,255,255,0.9);
}
.feature-icon {
  font-size: 20px;
  min-width: 24px;
  margin-top: 2px;
}

/* Abstract Digest Visual */
.abstract-digest {
  background-color: #111122;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.ad-header {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}
.ad-block { display: flex; gap: 12px; margin-bottom: 20px; }
.ad-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.ad-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ad-line { height: 12px; background-color: rgba(255,255,255,0.1); border-radius: 4px; }
.ad-action-line { height: 12px; border-radius: 4px; background-color: rgba(43, 138, 62, 0.5); width: 40%; margin-top: 6px;}

/* Tags / Personalization */
.tags-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.tags-title {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag {
  background-color: #fff;
  border: 1px solid #D1D5DB;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  user-select: none;
}
.tag.active {
  background-color: rgba(59, 91, 219, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.note { font-size: 14px; color: var(--text-muted); }

/* Subscribe / Forms */
.subscribe-grid {
  display: flex;
  align-items: stretch;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  color: var(--text-primary);
}
.subscribe-box {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
}
.form-tg-box {
  background-color: #F8F9FA;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.subscribe-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1px;
  background-color: #EAEBF0;
  position: relative;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.subscribe-divider::before {
  content: "або";
  position: absolute;
  background: var(--card-bg);
  padding: 8px;
  border-radius: 50%;
  border: 1px solid #EAEBF0;
}
.box-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}
.box-title span { font-weight: 500; font-size: 14px; color: var(--accent-green); }
.box-text {
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.tg-btn-main {
  background-color: #2AABEE; /* Telegram Blue */
  color: white;
  border: none;
}
.tg-btn-main:hover {
  background-color: #229ED9;
}
.tg-btn-main .icon { margin-right: 8px; }

form.email-form { width: 100%; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.1);
}
select.form-control { appearance: none; background-color: #fff; cursor: pointer; }

/* Checkbox Groups */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  border: 1px solid #D1D5DB;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.check-label:has(input:checked) {
  background-color: rgba(59, 91, 219, 0.05);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}
.check-label input {
  accent-color: var(--accent);
  cursor: pointer;
}

.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 16px; }

@media (max-width: 768px) {
  .subscribe-grid { flex-direction: column; }
  .subscribe-divider { width: 100%; height: 1px; }
  .subscribe-box { padding: 32px 24px; }
}

/* FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background-color: var(--card-bg);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}
.faq-question:hover {
  background-color: rgba(0,0,0,0.02);
}
.faq-icon {
  font-size: 20px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.faq-item.open .faq-answer {
  max-height: 200px; /* arbitrary max height for transition */
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Footer */
.footer {
  padding: 40px 0;
  background-color: #FFFFFF;
}
.border-top { border-top: 1px solid #EAEBF0; }
.footer-desc { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}
.footer-link:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer-links { flex-direction: column; gap: 12px; }
}

.form-message {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  display: none;
}
.form-message.success { color: var(--accent-green); display: block; }
.form-message.error { color: var(--accent-red); display: block; }
