/* ===== SMS API Page — Section Layout ===== */
.section { padding: 80px 0; }

/* ===== HERO ===== */
.hero {
  padding-top: 140px; padding-bottom: 80px;
  background: var(--gradient-hero); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(238,80,80,.06) 0%, transparent 70%);
}
.hero .container { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero-content { flex: 1; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px; font-size: 13px;
  background: var(--primary-light); color: var(--primary);
  font-weight: 600; margin-bottom: 24px; border: 1px solid rgba(238,80,80,.15);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }
.hero h1 { font-size: 48px; line-height: 1.2; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); }
.hero p { font-size: 18px; color: var(--text-mid); margin-bottom: 32px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 24px; }
.hero-trust { font-size: 13px; color: var(--text-light); }
.hero-visual { flex: 1; max-width: 480px; }
.hero-card {
  background: #fff; border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-hover); border: 1px solid var(--border);
}
.hero-card .code-block {
  background: #1a1a2e; border-radius: 10px; padding: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: #e9f0fc; overflow-x: auto; line-height: 1.8;
}
.hero-card .card-label { font-size: 12px; color: var(--text-light); margin-bottom: 8px; font-weight: 500; }

/* Code syntax highlighting */
.code-block .kw { color: #ee5050; }
.code-block .str { color: #ee9250; }
.code-block .key { color: #63b1bd; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .overline {
  font-size: 13px; color: var(--primary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section-header h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-mid); }

/* ===== CAPABILITIES ===== */
.capabilities { background: var(--bg-gray); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cap-card {
  background: #fff; border-radius: 12px; padding: 32px 24px;
  border: 1px solid var(--border); transition: all .3s;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(238,80,80,.15); }
.cap-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 22px;
}
.cap-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.cap-card p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ===== TECHNICAL SPECS ===== */
.specs-section { padding: 80px 0; }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.specs-col h3 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.spec-item {
  display: flex; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px;
}
.spec-item:last-child { border-bottom: none; }
.spec-label { color: var(--text-mid); }
.spec-value { font-weight: 600; }

/* ===== COVERAGE ===== */
.coverage-section { background: var(--bg-gray); }
.coverage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 24px; }
.coverage-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; background: #fff; border-radius: 10px; border: 1px solid var(--border);
}
.coverage-region { font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.coverage-carriers { font-size: 13px; color: var(--text-light); }

/* ===== TABLES (Webhooks & Pricing) ===== */
.webhook-table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px;
  background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
}
.webhook-table th {
  text-align: left; padding: 14px 16px; background: var(--bg-gray);
  font-weight: 600; border-bottom: 2px solid var(--border); font-size: 14px;
}
.webhook-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.webhook-table tr:last-child td { border-bottom: none; }
.webhook-table code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  background: var(--primary-light); padding: 2px 8px; border-radius: 4px; color: var(--primary);
}

/* ===== DEVELOPERS / SDKs (dark section) ===== */
.dev-section { background: #1a1a2e; color: #fff; }
.dev-section .section-header h2 { color: #fff; }
.dev-section .section-header p { color: rgba(255,255,255,.6); }
.code-example {
  background: rgba(255,255,255,.06); border-radius: 12px; padding: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  line-height: 1.8; overflow-x: auto; color: #e9f0fc; margin: 16px 0;
}
.code-example .comment { color: #737e97; }
.code-example .string { color: var(--accent); }
.code-example .keyword { color: #ee5050; }
.code-example .func { color: #63b1bd; }
.lang-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.lang-tab {
  padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  cursor: pointer; transition: all .2s; border: none; font-family: inherit;
}
.lang-tab.active, .lang-tab:hover { background: var(--primary); color: #fff; }

/* ===== FAQ ===== */
.faq-section { background: var(--bg-gray); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: 20px 0; font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q .arrow { transition: transform .3s; font-size: 18px; color: var(--text-light); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }
.faq-a p { font-size: 14px; color: var(--text-mid); line-height: 1.7; }

/* ===== CTA ===== */
.cta-section { background: var(--gradient-primary); padding: 80px 0; text-align: center; color: #fff; }
.cta-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: .9; margin-bottom: 32px; }
.cta-section .btn-white { padding: 14px 36px; font-size: 16px; border: none; }
.cta-section .btn-outline-white {
  background: transparent; border: 2px solid #fff; color: #fff;
  padding: 12px 36px; font-size: 16px; border-radius: 100px;
  font-weight: 600; cursor: pointer; transition: all .25s ease;
}
.cta-section .btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid, .coverage-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero { padding-top: 100px; padding-bottom: 48px; }
  .hero h1 { font-size: 32px; }
  .hero-buttons { justify-content: center; flex-wrap: wrap; }
  .cap-grid, .specs-grid, .coverage-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 28px; }
  .section { padding: 48px 0; }
  .cta-section h2 { font-size: 28px; }
  .cta-section p { font-size: 15px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 90px; padding-bottom: 36px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-visual { display: none; }
  .cap-card { padding: 24px 18px; }
  .section-header h2 { font-size: 24px; }
  .spec-item { font-size: 14px; }
  .code-example { font-size: 11px; padding: 16px; }
  .lang-tab { padding: 6px 12px; font-size: 12px; }
  .cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 22px; }
  .webhook-table { font-size: 13px; }
}
