/* ── Reset & Base ─────────────────────────────────────── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Encode Sans', Arial, Helvetica, sans-serif;
  font-weight: 300;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2d6cdf;
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: #1a4fa0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

.accent {
  color: #2d6cdf;
}

/* ── Hero ────────────────────────────────────────────── */

#hero {
  padding: 40px 0 10px;
  text-align: center;
}

#hero h1 {
  font-size: 4em;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.tagline {
  font-size: 1.5em;
  font-weight: 400;
  color: #333;
  margin-bottom: 12px;
}

.tagline-local {
  font-size: 1.1em;
  font-weight: 500;
  color: #2d6cdf;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.05em;
  color: #666;
  max-width: 480px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-block;
  background: #2d6cdf;
  color: #fff;
  padding: 12px 36px;
  border: 1.5px solid #2d6cdf;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1em;
  transition: background .2s, border-color .2s, transform .15s;
}

.btn:hover {
  background: #1a4fa0;
  color: #fff;
  border-color: #1a4fa0;
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 48px;
  font-size: 1.1em;
}


/* ── Sections common ─────────────────────────────────── */

section {
  padding: 40px 0;
}

section:nth-child(odd) {
  background: #fafbfc;
}


/* ── Features grid ───────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color .2s, box-shadow .2s;
}

.feature-card:hover {
  border-color: #c8d4e8;
  box-shadow: 0 4px 20px rgba(45, 108, 223, 0.06);
}

.feature-icon {
  font-size: 1.6em;
  font-weight: 700;
  color: #2d6cdf;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.feature-card h3 {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 8px;
}

.feature-card p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
}



/* ── Desktop label in hero ───────────────────────────── */

.desktop-label {
  font-weight: 300;
  font-size: 0.55em;
  color: #666;
  vertical-align: baseline;
}

/* ── Tabs list (how section) ────────────────────────── */

#how h2, #compat h2 {
  text-align: center;
  font-weight: 600;
  font-size: 1.6em;
  margin-bottom: 28px;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tab-item {
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  padding: 28px 24px;
}

.tab-item h3 {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #2d6cdf;
}

.tab-item p {
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .tabs-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ── Compat section ─────────────────────────────────── */

.compat-section {
  text-align: center;
  max-width: 640px;
}

.compat-section p {
  color: #555;
  font-size: 1.05em;
  line-height: 1.7;
}

/* ── Download ────────────────────────────────────────── */

.download-section {
  text-align: center;
}

.download-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.88em;
  color: #888;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.8em;
  }

  .tagline {
    font-size: 1.2em;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  section {
    padding: 36px 0;
  }

  #hero {
    padding: 100px 0 48px;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 2.2em;
  }

  .container {
    padding: 0 20px;
  }

}

/* ── Demo animation (commented out — HTML section also commented) ──

#demo {
  padding: 24px 0 32px;
  background: #fff;
}

.demo-screens {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.screen {
  width: 320px;
  flex-shrink: 0;
}

.screen-frame {
  border: 1px solid #d0d4dc;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a2e;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.screen-titlebar {
  background: #2a2a3e;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen-dots {
  display: flex;
  gap: 5px;
}

.screen-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.screen-dots i:nth-child(1) { background: #ff5f57; }
.screen-dots i:nth-child(2) { background: #febc2e; }
.screen-dots i:nth-child(3) { background: #28c840; }

.screen-title {
  color: #888;
  font-size: 0.75em;
  font-family: 'Courier New', Courier, monospace;
}

.screen-content {
  position: relative;
  height: 180px;
  padding: 14px 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82em;
  line-height: 1.6;
  color: #ccc;
  overflow: hidden;
}

.screen-stand {
  width: 60px;
  height: 20px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #c0c4cc, #d8dce4);
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.demo-sync-arrow {
  font-size: 2em;
  color: #2d6cdf;
  opacity: 0;
  flex-shrink: 0;
  animation: sync-arrow 16s infinite;
}

@keyframes sync-arrow {
  0%, 35%   { opacity: 0; transform: scale(0.8); }
  40%, 85%  { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(0.8); }
}

.demo-step {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  opacity: 0;
  white-space: pre-line;
}

.c-green  { color: #6ec86e; }
.c-cyan   { color: #6ec8d8; }
.c-yellow { color: #e8d86e; }
.c-gray   { color: #888; }
.c-red    { color: #e87070; }
.c-white  { color: #eee; }

.screen-left .step-1 { animation: left-1 16s infinite; }
.screen-left .step-2 { animation: left-2 16s infinite; }
.screen-left .step-3 { animation: left-3 16s infinite; }
.screen-left .step-4 { animation: left-4 16s infinite; }

@keyframes left-1 {
  0%        { opacity: 0; }
  3%, 18%   { opacity: 1; }
  22%, 100% { opacity: 0; }
}

@keyframes left-2 {
  0%, 18%   { opacity: 0; }
  22%, 38%  { opacity: 1; }
  42%, 100% { opacity: 0; }
}

@keyframes left-3 {
  0%, 38%   { opacity: 0; }
  42%, 58%  { opacity: 1; }
  62%, 100% { opacity: 0; }
}

@keyframes left-4 {
  0%, 58%   { opacity: 0; }
  62%, 88%  { opacity: 1; }
  92%, 100% { opacity: 0; }
}

.screen-right .step-1 { animation: right-1 16s infinite; }
.screen-right .step-2 { animation: right-2 16s infinite; }
.screen-right .step-3 { animation: right-3 16s infinite; }
.screen-right .step-4 { animation: right-4 16s infinite; }

@keyframes right-1 {
  0%, 5%    { opacity: 0; }
  8%, 18%   { opacity: 1; }
  22%, 100% { opacity: 0; }
}

@keyframes right-2 {
  0%, 22%   { opacity: 0; }
  26%, 38%  { opacity: 1; }
  42%, 100% { opacity: 0; }
}

@keyframes right-3 {
  0%, 42%   { opacity: 0; }
  46%, 58%  { opacity: 1; }
  62%, 100% { opacity: 0; }
}

@keyframes right-4 {
  0%, 62%   { opacity: 0; }
  66%, 88%  { opacity: 1; }
  92%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
  .demo-screens {
    flex-direction: column;
    gap: 16px;
  }

  .screen {
    width: 280px;
  }

  .demo-sync-arrow {
    transform: rotate(90deg);
  }

  @keyframes sync-arrow {
    0%, 35%   { opacity: 0; transform: rotate(90deg) scale(0.8); }
    40%, 85%  { opacity: 1; transform: rotate(90deg) scale(1); }
    90%, 100% { opacity: 0; transform: rotate(90deg) scale(0.8); }
  }
}

── end Demo animation ───────────────────────────────── */
