/* ============================================
   Callbreak Strategy Guide - Main Stylesheet
   ============================================ */

/* CSS Variables - Global Theme
   ============================================ */
:root {
  /* Colors */
  --bg: #0a0e17;
  --bg2: #111827;
  --bg-gradient: #0d1321;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-light: #60a5fa;
  --teal: #14b8a6;
  --text: #f1f5f9;
  --text-alt: #e2e8f0;
  --muted: #94a3b8;
  --muted-alt: #64748b;
  --accent: #1e3a5f;
  --accent-alt: #1e293b;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.32);
}

/* Reset & Base
   ============================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 30%),
    linear-gradient(180deg, #0f172a 0%, #0a0e17 50%, #060912 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout
   ============================================ */
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.container-narrow {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

/* Navigation - Topbar
   ============================================ */
.nav,
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(6, 9, 18, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner,
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #ffffff;
  box-shadow: var(--shadow);
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue-light);
}

/* Buttons
   ============================================ */
.cta-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.cta-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.28);
}

.cta-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.8;
}

/* Hero Section
   ============================================ */
.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 10px 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  min-height: 480px;
}

.hero-card-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-card img {
  width: 100%;
  max-height: 380px;
  height: auto;
  display: block;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -1.6px;
}

.hero p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

/* Sections
   ============================================ */
.section {
  padding: 34px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
}

/* Content & Articles
   ============================================ */
.content {
  padding: 18px 0 56px;
}

.article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.article h1,
.article h2,
.article h3 {
  line-height: 1.2;
  color: var(--text);
}

.article h1 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 0;
  margin-bottom: 18px;
}

.article h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.article h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--blue-light);
}

.article p,
.article li {
  color: var(--text);
  font-size: 17px;
}

.article p {
  margin: 0 0 14px;
}

.article ul,
.article ol {
  margin: 0 0 14px 0;
  padding-left: 22px;
}

.article li {
  margin: 6px 0;
}

.article hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 26px 0;
}

/* Images & Media
   ============================================ */
.article-image,
.article-thumb {
  margin: 18px 0 20px;
  border-radius: 22px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d1321;
}

.article-image img,
.article-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.article-thumb {
  border-radius: 18px;
  background: #111827;
}

.article-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Cards & Grids
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 14px 0 10px;
}

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

.feature-card,
.article-card,
.faq-card,
.info-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 18px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(20, 184, 166, 0.18));
  border: 1px solid rgba(59, 130, 246, 0.18);
  font-size: 22px;
}

.feature-card h3,
.article-card h3,
.faq-card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--blue-light);
  margin-top: 4px;
  transition: opacity 0.2s ease;
}

.article-link:hover {
  opacity: 0.8;
}

/* Highlight & FAQ
   ============================================ */
.highlight {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-panel {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.25), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.highlight-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.highlight-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-wrap {
  display: grid;
  gap: 14px;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
}

/* Footer
   ============================================ */
.footer {
  padding: 28px 0 44px;
  color: #64748b;
  text-align: center;
}

/* Utility Classes
   ============================================ */
.muted {
  color: var(--muted);
}

/* Responsive Design
   ============================================ */
@media (max-width: 920px) {

  .hero-grid,
  .highlight,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-inner,
  .topbar .container {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {

  .article,
  .hero-card {
    padding: 22px;
  }

  .topbar .container,
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 10px;
  }

  .nav-links a {
    margin-right: 14px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 42px 0 30px;
  }

  .hero h1 {
    font-size: clamp(32px, 5vw, 48px);
  }

  .hero p {
    font-size: 16px;
  }
}
