/* ========================================
   X-Telega Landing — Clean Slate Theme
   Mobile-first, 320–428px base
   Apple/Stripe-inspired ultra-clean light
   ======================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fustat', 'Inter', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Section spacing ---- */
.section {
  padding: 64px 0;
}

.section--alt {
  background: #f8fafc;
}

.section--white {
  background: #ffffff;
}

/* ---- Section headings ---- */
.section__title {
  font-size: 28px;
  margin-bottom: 12px;
  color: #0f172a;
}

.section__subtitle {
  font-size: 16px;
  color: #64748b;
  max-width: 560px;
  line-height: 1.6;
}

.section__header {
  margin-bottom: 40px;
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  padding: 10px 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(14, 165, 233, 0.3);
}

.btn--primary:hover {
  background: #0284c7;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn--outline {
  background: transparent;
  color: #0ea5e9;
  border: 1.5px solid #0ea5e9;
}

.btn--outline:hover {
  background: #0ea5e9;
  color: #ffffff;
}

.btn--large {
  padding: 14px 32px;
  font-size: 16px;
}

/* ---- Chip ---- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  background: #e0f2fe;
  color: #0369a1;
}

/* =======================================
   HEADER
   ======================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.header.hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Fustat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0ea5e9;
  letter-spacing: -0.02em;
}

.logo span {
  color: #0f172a;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s;
}

.nav__link:hover {
  color: #0ea5e9;
}

.header__cta {
  display: none;
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  z-index: 1001;
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: #ffffff;
  z-index: 999;
  padding: 80px 24px 32px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

.drawer.open {
  transform: translateX(0);
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer__link {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  border-radius: 10px;
  transition: background 0.2s;
}

.drawer__link:hover {
  background: #e0f2fe;
  color: #0ea5e9;
}

.drawer__cta {
  margin-top: 24px;
}

/* =======================================
   HERO
   ======================================= */
.hero {
  padding: 100px 0 64px;
  background: #ffffff;
  position: relative;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #0ea5e9;
  background: #e0f2fe;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero__rating svg {
  flex-shrink: 0;
}

.hero__title {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 540px;
  color: #0f172a;
}

.hero__subtitle {
  font-size: 16px;
  color: #64748b;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__image {
  /* max-width: 300px; */
  margin: 0 auto;
}

.hero__banner {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.hero__banner--large {
  max-width: 800px;
}

@media (min-width: 1024px) {
  .hero__banner--large {
    max-width: 900px;
  }
}

@media (min-width: 1280px) {
  .hero__banner--large {
    max-width: 1000px;
  }
}

@media (max-width: 768px) {
  .hero__banner {
    max-width: 350px;
    border-radius: 8px;
  }
}

.hero__banner:hover {
  transform: translateY(-5px);
}

/* =======================================
   STATEMENT
   ======================================= */
.statement__text {
  margin-bottom: 8px;
}

.statement__text h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.statement__text p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.65;
  max-width: 520px;
}

.statement__card {
  margin-top: 28px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 28px 24px;
}

.statement__card p {
  font-size: 15px;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 20px;
}

.statement__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =======================================
   FEATURES — Horizontal cards
   ======================================= */
.features__list {
  display: flex;
  flex-direction: column;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #e2e8f0;
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0ea5e9;
}

.feature-row__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #0f172a;
}

.feature-row__desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* =======================================
   WORKFLOW — Big numbers, no cards
   ======================================= */
.workflow__grid {
  display: grid;
  gap: 32px;
}

.workflow__num {
  display: block;
  font-family: 'Fustat', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #e0f2fe;
  line-height: 1;
  margin-bottom: 12px;
}

.workflow__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0f172a;
}

.workflow__desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* =======================================
   MATRIX — Icon-centered cards, 2x2
   ======================================= */
.matrix__grid {
  display: grid;
  gap: 16px;
}

.matrix-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.matrix-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.matrix-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #0ea5e9;
}

.matrix-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0f172a;
}

.matrix-card__desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* =======================================
   COMPARISON — Modern table
   ======================================= */
.comparison {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.comparison__th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.comparison__th--accent {
  color: #0ea5e9;
}

.comparison__th--feature {
  color: #0f172a;
}

.comparison__td {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.comparison__table tbody tr:nth-child(even) .comparison__td {
  background: #f8fafc;
}

.comparison__table tbody tr:last-child .comparison__td {
  border-bottom: none;
}

.comparison__td--label {
  font-weight: 600;
  color: #0f172a;
}

.comparison__td--highlight {
  color: #0369a1;
}

/* =======================================
   TRUST — Three equal cards
   ======================================= */
.trust__grid {
  display: grid;
  gap: 16px;
}

.trust-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.trust-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.trust-card__icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #0ea5e9;
}

.trust-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0f172a;
}

.trust-card__desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* =======================================
   INSTALL — Left text + Right steps
   ======================================= */
.install__left {
  margin-bottom: 40px;
}

.install__heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

.install__desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
}

.install__btn {
  margin-bottom: 12px;
}

.install__version {
  font-size: 13px;
  color: #94a3b8;
}

.install__steps {
  display: grid;
  gap: 20px;
}

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

.install-step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0ea5e9;
  font-family: 'Fustat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-step__text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #0f172a;
}

.install-step__text p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* =======================================
   FAQ — Minimal accordion
   ======================================= */
.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  color: #0f172a;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  color: #0ea5e9;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  color: #0ea5e9;
}

.faq-item__body {
  padding: 0 0 20px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
}

/* =======================================
   FINAL CTA
   ======================================= */
.cta-final {
  text-align: center;
}

.cta-final h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.cta-final p {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 28px;
}

/* =======================================
   FOOTER
   ======================================= */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0 24px;
  font-size: 13px;
}

.footer__inner {
  display: grid;
  gap: 24px;
}

.footer__brand {
  font-family: 'Fustat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0ea5e9;
  margin-bottom: 8px;
}

.footer__brand span {
  color: #ffffff;
}

.footer__company {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__link {
  color: #64748b;
  font-size: 13px;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #0ea5e9;
}

.footer__copy {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #475569;
  text-align: center;
}

/* =======================================
   MEDIA: TABLET 768px
   ======================================= */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 80px 0;
  }

  .section__title {
    font-size: 34px;
  }

  /* Header */
  .nav {
    display: block;
  }

  .burger {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }

  /* Hero */
  .hero {
    padding: 120px 0 80px;
  }

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__image {
    /* max-width: 340px; */
    /* margin: 0; */
    justify-self: end;
  }

  /* Statement */
  .statement__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .statement__card {
    margin-top: 0;
  }

  /* Workflow */
  .workflow__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* Matrix */
  .matrix__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Trust */
  .trust__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Install */
  .install__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .install__left {
    margin-bottom: 0;
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* =======================================
   MEDIA: DESKTOP 1024px
   ======================================= */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .section {
    padding: 96px 0;
  }

  .section__title {
    font-size: 40px;
  }

  .section__subtitle {
    font-size: 17px;
  }

  /* Header */
  .header__inner {
    height: 72px;
  }

  .logo {
    font-size: 24px;
  }

  .nav__list {
    gap: 36px;
  }

  /* Hero */
  .hero {
    padding: 140px 0 100px;
  }

  .hero__inner {
    gap: 20px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__image {
    /* max-width: 380px; */
  }

  /* Features illustration */
  .features__illustration {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem 0;
  }

  .features__img {
    max-width: 450px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .features__img:hover {
    transform: translateY(-5px);
    opacity: 1;
  }

  @media (max-width: 768px) {
    .features__illustration {
      margin-top: 2rem;
      padding: 1.5rem 0;
    }
    
    .features__img {
      max-width: 240px;
    }
  }

  .feature-row {
    gap: 28px;
    padding: 28px 0;
  }

  /* Workflow */
  .workflow__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .workflow__num {
    font-size: 56px;
  }

  /* Matrix */
  .matrix__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Comparison */
  .comparison__table {
    min-width: unset;
  }

  .comparison__th,
  .comparison__td {
    padding: 18px 28px;
    font-size: 15px;
  }

  /* Install */
  .install__steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* FAQ */
  .faq__list {
    max-width: 760px;
  }

  .cta-final h2 {
    font-size: 36px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 28px;
  }

  .footer__inner {
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
  }
}
