/* AmyTelecom Design System - Pure Native CSS */
:root {
  --bg: #0b1020;
  --bg-elevated: #121933;
  --bg-card: #161f3d;
  --bg-soft: #1d284d;
  --text: #f3f6ff;
  --text-muted: #b8c4e0;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.18);
  --cta-bg: #22d3ee;
  --cta-text: #06121e;
  --cta-hover: #67e8f9;
  --border: rgba(148, 163, 184, 0.2);
  --success: #34d399;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-max: 1140px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--cta-bg);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section,
[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #06121e;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}

.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: var(--cta-text);
  background-color: var(--cta-bg);
}

.site-nav a.btn-primary:hover {
  background-color: var(--cta-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--cta-hover);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--bg-soft);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: #253361;
  text-decoration: none;
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

/* Hero */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  background: radial-gradient(circle at 75% 20%, rgba(56, 189, 248, 0.14), transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-4);
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.22;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-media {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

/* Sections */
.section {
  padding: var(--space-5) 0;
}

.section-alt {
  background-color: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.6rem;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Grids & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.tag-list li {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Pricing Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  text-align: left;
}

.pricing-table caption {
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.pricing-table thead th {
  background: rgba(29, 40, 77, 0.65);
  color: var(--text);
  font-size: 0.95rem;
}

.pricing-table tbody tr:last-child td,
.pricing-table tbody tr:last-child th {
  border-bottom: none;
}

.pricing-table .btn {
  white-space: nowrap;
}

.price-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.table-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Reviews */
.review-meta {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.25rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  list-style-position: inside;
  min-height: 44px;
}

.faq-answer {
  padding: 0 0 1.1rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.faq-answer p {
  margin: 0;
}

/* Article & Subpage Layout */
.page-banner {
  padding: var(--space-5) 0 var(--space-3);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.page-banner h1 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.article-body {
  max-width: 820px;
  padding: var(--space-4) 0;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.article-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.article-body p,
.article-body li {
  color: var(--text-muted);
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.inline-cta-box {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: #070b16;
  border-top: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Breakpoints (360, 390, 768, 1440) */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    width: 100%;
    gap: 0.25rem;
  }
  .hero {
    padding: var(--space-4) 0;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
