:root {
  --primary: #2F6BFF;
  --primary-hover: #1e56e0;
  --primary-light: #EAF1F8;
  --primary-glow: rgba(47, 107, 255, 0.15);
  --secondary: #273B66;
  --accent: #19C2FF;
  --accent-hover: #0fb2ed;
  --accent-light: #e0f7ff;
  --text-main: #273B66;
  --text-muted: #536b94;
  --text-light: #8da2c0;
  --bg-main: #FFFFFF;
  --bg-alt: #EAF1F8;
  --bg-card: #FFFFFF;
  --border-color: #d6e2ef;
  --border-focus: #19C2FF;
  --shadow-sm: 0 1px 3px 0 rgba(39, 59, 102, 0.06);
  --shadow-md: 0 4px 8px -1px rgba(39, 59, 102, 0.08), 0 2px 4px -2px rgba(39, 59, 102, 0.04);
  --shadow-lg: 0 12px 20px -3px rgba(39, 59, 102, 0.10), 0 4px 6px -4px rgba(39, 59, 102, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}

/* Focus styles for keyboard accessibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 2px;
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  transition: background-color 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 95px 20px 75px;
  background-color: var(--bg-alt);
  background-image: linear-gradient(180deg, rgba(234, 241, 248, 0.55) 0%, rgba(255, 255, 255, 0.75) 100%), url('public/assets/fastlink/fastlink-hero-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  color: var(--secondary);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--primary);
  color: #ffffff;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 48px;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: #ffffff;
  color: var(--text-main);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 48px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

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

.hero-highlights {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}

.hero-highlights li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  margin-right: 6px;
}

/* Section Common */
section {
  padding: 70px 20px;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature Cards (3 Cards) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Media & AI Acceleration Section */
.media-ai-section {
  background-color: var(--bg-alt);
}

.media-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tag-badge {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Pricing Table */
.pricing-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  text-align: left;
}

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

.pricing-table th, .pricing-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table thead th {
  background: #f1f5f9;
  font-size: 0.95rem;
  color: var(--secondary);
  font-weight: 700;
}

.pricing-table tbody tr:hover {
  background: #f8fafc;
}

.plan-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
}

.plan-badge {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 6px;
  font-weight: 600;
}

.plan-badge.popular {
  background: #dbeafe;
  color: var(--primary);
}

.price-cell {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.price-cell span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.table-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 8px 18px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 44px;
  line-height: 1;
  text-align: center;
  transition: background 0.2s;
}

.table-cta:hover {
  background: var(--primary-hover);
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  white-space: nowrap;
  min-width: 120px;
}

/* Testimonials / User Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-card p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.user-meta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--secondary);
}

.user-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Section */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  min-height: 44px;
  background: #ffffff;
  user-select: none;
}

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

.faq-item summary::after {
  content: "▾";
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.2s;
}

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

.faq-content {
  padding: 0 24px 20px;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
}

.faq-content p {
  margin-top: 12px;
}

.faq-content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

/* Footer Section */
footer.site-footer {
  background: var(--secondary);
  color: #94a3b8;
  padding: 48px 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #f8fafc;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #60a5fa;
}

.footer-copyright {
  font-size: 0.875rem;
  color: #64748b;
}

/* Article & Content Page Layout */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.article-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.article-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  color: var(--secondary);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
}

.article-body h2 {
  font-size: 1.55rem;
  color: var(--secondary);
  margin: 36px 0 16px;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.article-body h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  color: var(--text-main);
  font-style: italic;
}

.article-cta-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  padding: 28px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  text-align: center;
}

.article-cta-box h3 {
  font-size: 1.35rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.article-cta-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  gap: 8px;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumbs li+li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-light);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .features-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  .nav-container {
    flex-direction: column;
    padding: 12px 20px;
    gap: 12px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
  }

  .hero {
    padding: 55px 16px 45px;
    background-image: linear-gradient(180deg, rgba(234, 241, 248, 0.70) 0%, rgba(255, 255, 255, 0.85) 100%), url('public/assets/fastlink/fastlink-hero-bg.jpg');
    background-position: center center;
    background-size: cover;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .features-grid, .media-ai-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }

  .pricing-table th, .pricing-table td {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .article-header h1 {
    font-size: 1.7rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  .nav-menu {
    gap: 8px 12px;
  }

  .nav-link {
    font-size: 0.875rem;
  }
}

@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;
  }
}
