@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Design Tokens ────────────────────────────────────────────────────── */
:root {
  --navy-950: #050d1a;
  --navy-900: #0a1628;
  --navy-800: #0f2040;
  --navy-700: #142b58;
  --navy-600: #1a3870;
  --navy-500: #1e4a8c;
  --navy-400: #2560b0;
  --navy-300: #3a7bd5;
  --navy-200: #6aa3e8;
  --navy-100: #a8c8f4;
  --navy-50:  #deeaf9;

  --green-900: #061a0a;
  --green-800: #0d3015;
  --green-700: #144d21;
  --green-600: #1a6a2d;
  --green-500: #20873a;
  --green-400: #27a449;
  --green-300: #3cc25e;
  --green-200: #72d98a;
  --green-100: #aeebbe;
  --green-50:  #dcf5e4;

  --gray-900: #0c0f14;
  --gray-800: #161b24;
  --gray-700: #222a36;
  --gray-600: #2e3848;
  --gray-500: #3d4d62;
  --gray-400: #556070;  
  --gray-300: #7a8a9c;
  --gray-200: #a8b5c4;
  --gray-100: #d4dce7;
  --gray-50:  #eef2f7;
  --white: #ffffff;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 1px 3px rgba(5,13,26,0.15), 0 8px 24px rgba(5,13,26,0.08);
  --shadow-elevated: 0 4px 12px rgba(5,13,26,0.2), 0 20px 48px rgba(5,13,26,0.12);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 72px;
  --content-max: 1200px;
  --content-narrow: 780px;
}

/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--gray-100);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--gray-200); font-size: 1rem; line-height: 1.75; }

.text-muted { color: var(--gray-300); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; letter-spacing: 0.04em; }
.text-gradient {
  background: linear-gradient(135deg, var(--green-300) 0%, var(--green-200) 40%, var(--navy-200) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout Utilities ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--green-400), var(--navy-300));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

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

.nav-links a {
  padding: 7px 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-200);
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-links a.btn-demo {
  border-radius: var(--radius-full);
  margin-left: 12px;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  color: var(--white) !important;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-display);
  border-radius: var(--radius-full);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 2px 12px rgba(39, 164, 73, 0.35);
  white-space: nowrap;
}

.btn-demo:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(39, 164, 73, 0.5);
}

.btn-demo svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--gray-200);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ── Hero Section ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(26, 106, 45, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(37, 96, 176, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(20, 43, 88, 0.2) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(39, 164, 73, 0.12);
  border: 1px solid rgba(39, 164, 73, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--green-200);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-300);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--gray-200);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-display);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px rgba(39, 164, 73, 0.4);
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 32px rgba(39, 164, 73, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: rgba(255,255,255,0.06);
  color: var(--gray-100);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* ── Section Common ────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--green-400);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 1.05rem; color: var(--gray-300); }

/* ── Divider ───────────────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.08) 70%, transparent);
  margin: 0;
}

/* ── Card Styles ──────────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.card:hover {
  border-color: rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* ── Blog Grid ────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.blog-grid.featured {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
}

.blog-grid.featured .post-card:first-child {
  grid-column: 1 / -1;
}

.blog-grid.featured .post-card:first-child .post-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.blog-grid.featured .post-card:first-child .post-thumbnail {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

.post-card-inner { display: flex; flex-direction: column; height: 100%; }

.post-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.04);
}

.post-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 50%, rgba(26,106,45,0.15) 100%);
}

.post-thumbnail-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.2;
  color: var(--green-300);
}

.post-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  background: rgba(5,13,26,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-200);
}

.post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 14px;
}

.post-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-500);
  flex-shrink: 0;
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.post-card:hover .post-title { color: var(--green-200); }

.post-excerpt {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-300);
  font-family: var(--font-display);
  transition: gap var(--transition), color var(--transition);
}

.post-read-more svg { width: 14px; height: 14px; flex-shrink: 0; }

.post-card:hover .post-read-more {
  gap: 10px;
  color: var(--green-200);
}

/* ── CTA Banner ────────────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 50%, rgba(26, 106, 45, 0.15) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(39, 164, 73, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { margin-bottom: 32px; font-size: 1.05rem; max-width: 500px; margin-left: auto; margin-right: auto; }

.cta-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--gray-300);
}

.cta-feature-check {
  width: 18px;
  height: 18px;
  background: rgba(39, 164, 73, 0.15);
  border: 1px solid rgba(39, 164, 73, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-feature-check svg { width: 10px; height: 10px; color: var(--green-300); }

/* ── Blog Archive ─────────────────────────────────────────────────────── */
.archive-header {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.archive-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 30%, rgba(255,255,255,0.07) 70%, transparent);
}

.archive-header h1 { margin-bottom: 12px; }
.archive-header p { font-size: 1.1rem; color: var(--gray-300); max-width: 520px; }

.archive-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 28px 0;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-300);
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(39, 164, 73, 0.12);
  border-color: rgba(39, 164, 73, 0.3);
  color: var(--green-200);
}

/* ── Single Post ──────────────────────────────────────────────────────── */
.single-header {
  padding: 64px 0 48px;
}

.single-header .post-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: rgba(39, 164, 73, 0.1);
  border: 1px solid rgba(39, 164, 73, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 20px;
}

.single-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  max-width: 800px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--gray-400);
  flex-wrap: wrap;
}

.single-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.single-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

.single-featured-image {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 56px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Article Content ─────────────────────────────────────────────────── */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-200);
}

.article-content h2 {
  font-size: 1.7rem;
  margin: 2.5em 0 0.7em;
  color: var(--white);
  padding-top: 0.3em;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.article-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.article-content h3 {
  font-size: 1.25rem;
  margin: 2em 0 0.6em;
  color: var(--white);
}

.article-content p { margin-bottom: 1.4em; }

.article-content ul,
.article-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.4em;
}

.article-content ul { list-style: none; padding-left: 0; }
.article-content ul li {
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.6em;
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
}

.article-content ol { list-style: decimal; }
.article-content ol li { margin-bottom: 0.6em; }

.article-content strong { color: var(--white); font-weight: 600; }
.article-content em { color: var(--gray-100); }

.article-content a {
  color: var(--green-300);
  text-decoration: underline;
  text-decoration-color: rgba(60, 194, 94, 0.3);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.article-content a:hover {
  color: var(--green-200);
  text-decoration-color: rgba(60, 194, 94, 0.7);
}

.article-content blockquote {
  border-left: 3px solid var(--green-500);
  padding: 16px 24px;
  margin: 2em 0;
  background: rgba(39, 164, 73, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--gray-100);
}

/* ── Inline CTA (within article) ─────────────────────────────────────── */
.inline-cta {
  background: linear-gradient(135deg, rgba(26, 56, 112, 0.4), rgba(26, 106, 45, 0.2));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 2.5em 0;
  text-align: center;
}

.inline-cta h3 { margin-bottom: 10px; font-size: 1.2rem; }
.inline-cta p { font-size: 0.95rem; margin-bottom: 20px; color: var(--gray-300); }

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.sidebar { position: sticky; top: calc(var(--header-height) + 24px); }

.sidebar-widget {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.sidebar-demo-cta {
  background: linear-gradient(135deg, rgba(26, 106, 45, 0.25), rgba(26, 56, 112, 0.25));
  border: 1px solid rgba(39, 164, 73, 0.2);
  text-align: center;
}

.sidebar-demo-cta .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

.recent-post-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-item:first-child { padding-top: 0; }

.recent-post-thumb {
  width: 56px;
  height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-700);
}

.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.recent-post-info a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-100);
  line-height: 1.35;
  display: block;
  margin-bottom: 4px;
  transition: color var(--transition);
}

.recent-post-info a:hover { color: var(--green-300); }
.recent-post-info span { font-size: 0.75rem; color: var(--gray-400); }

/* ── Pagination ───────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all var(--transition);
}

.page-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.page-btn.active {
  background: var(--green-600);
  border-color: var(--green-500);
  color: var(--white);
}

/* ── Slevy Page ───────────────────────────────────────────────────────── */
.slevy-hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(186, 117, 23, 0.2), rgba(239, 159, 39, 0.1));
  border: 1px solid rgba(239, 159, 39, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #FAC775;
  margin-bottom: 24px;
}

.discount-badge svg { width: 16px; height: 16px; }

.coupon-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.coupon-card:hover {
  border-color: rgba(39, 164, 73, 0.25);
  transform: translateY(-3px);
}

.coupon-card-header {
  padding: 28px 28px 0;
}

.coupon-card-header h3 { font-size: 1.1rem; margin-bottom: 6px; }
.coupon-card-header p { font-size: 0.875rem; color: var(--gray-300); }

.coupon-body {
  padding: 20px 28px 28px;
}

.coupon-code {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 16px 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.coupon-code span {
  flex: 1;
  padding: 12px 16px;
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--green-200);
}

.coupon-copy-btn {
  padding: 12px 16px;
  background: rgba(39, 164, 73, 0.12);
  border-left: 1px solid rgba(255,255,255,0.1);
  color: var(--green-300);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.coupon-copy-btn:hover {
  background: rgba(39, 164, 73, 0.25);
  color: var(--green-100);
}

.coupon-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(39, 164, 73, 0.1), rgba(26, 106, 45, 0.08));
  border: 1px solid rgba(39, 164, 73, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.discount-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-300);
}

.discount-label { font-size: 0.85rem; color: var(--gray-300); }

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-top: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--green-300); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin: 0;
}

/* ── Animations ───────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .single-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .blog-grid.featured { grid-template-columns: 1fr; }
  .blog-grid.featured .post-card:first-child { grid-column: auto; }
  .blog-grid.featured .post-card:first-child .post-card-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    gap: 4px;
  }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .hero { padding: 72px 0 60px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SVĚTLÝ BLOG – přidáno nad původní dark theme
   Zasahuje pouze do: .blog-wrap, .breadcrumbs, .light-post-header,
   .light-article, .light-sidebar-widget
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */
.breadcrumbs {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 11px 0;
}
.breadcrumbs-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a,
.breadcrumbs span {
  font-size: 0.78rem;
  color: #64748b;
  transition: color var(--transition);
}
.breadcrumbs a:hover   { color: var(--navy-500); }
.breadcrumbs .bc-sep   { color: #cbd5e1; font-size: 0.72rem; flex-shrink: 0; }
.breadcrumbs .bc-current {
  color: #1e293b;
  font-weight: 500;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Blog wrap – světlé pozadí ────────────────────────────────────────── */
.blog-wrap {
  background: #f8fafc;
  min-height: 60vh;
}

/* Archive header přepsaný na světlý */
.blog-wrap .archive-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 52px 0 36px;
}
.blog-wrap .archive-header::after { display: none; }
.blog-wrap .archive-header h1 {
  color: #0f172a;
  font-family: var(--font-display);
}
.blog-wrap .archive-header p { color: #475569; }

/* Filtry – světlé */
.blog-wrap .archive-filters { padding: 20px 0 0; }
.blog-wrap .filter-btn {
  color: #475569;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
}
.blog-wrap .filter-btn:hover,
.blog-wrap .filter-btn.active {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #ffffff;
}

/* Post karty – světlé */
.blog-wrap .post-card,
.blog-wrap .card.post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
.blog-wrap .post-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}
.blog-wrap .post-body { background: #ffffff; }
.blog-wrap .post-title { color: #0f172a; }
.blog-wrap .post-card:hover .post-title { color: var(--navy-600); }
.blog-wrap .post-excerpt { color: #64748b; }
.blog-wrap .post-meta    { color: #94a3b8; }
.blog-wrap .post-category {
  background: rgba(255,255,255,0.96);
  color: var(--navy-700);
  border: 1px solid rgba(20,43,88,0.12);
}
.blog-wrap .post-read-more         { color: var(--navy-500); }
.blog-wrap .post-card:hover .post-read-more { color: var(--navy-700); }
.blog-wrap .post-thumbnail-placeholder {
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
}
.blog-wrap .post-thumbnail-placeholder svg { color: #bae6fd; }

/* Pagination – světlá */
.blog-wrap .page-btn {
  color: #475569;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
}
.blog-wrap .page-btn:hover  { border-color: var(--navy-300); color: var(--navy-700); }
.blog-wrap .page-btn.active { background: var(--navy-700); border-color: var(--navy-700); color: #ffffff; }

/* Section label v light kontextu */
.blog-wrap .section-label        { color: var(--navy-600); }
.blog-wrap .section-label::before { background: var(--navy-500); }

/* CTA banner v blogu zůstane dark – žádné přepisy */

/* ── Single post – světlý ─────────────────────────────────────────────── */
.single-wrap {
  background: #f8fafc;
}

.single-wrap .single-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 52px 0 40px;
}
.single-wrap .single-header .post-category-pill {
  background: rgba(20,43,88,0.07);
  border: 1px solid rgba(20,43,88,0.12);
  color: var(--navy-700);
}
.single-wrap .single-title { color: #0f172a; }
.single-wrap .single-meta  { color: #64748b; }

.single-wrap .section-sm { background: #f8fafc; }

/* Featured image v light kontextu */
.single-wrap .single-featured-image {
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

/* Article content – světlý */
.single-wrap .article-content       { color: #334155; }
.single-wrap .article-content h2    { color: #0f172a; border-top-color: #f1f5f9; }
.single-wrap .article-content h3    { color: #1e293b; }
.single-wrap .article-content p     { color: #334155; }
.single-wrap .article-content ol li { color: #334155; }
.single-wrap .article-content strong { color: #0f172a; }
.single-wrap .article-content a {
  color: var(--navy-500);
  text-decoration-color: rgba(30,74,140,0.25);
}
.single-wrap .article-content a:hover {
  color: var(--navy-800);
  text-decoration-color: rgba(30,74,140,0.6);
}
.single-wrap .article-content ul li::before { background: var(--green-500); }
.single-wrap .article-content blockquote {
  background: #f0f6ff;
  border-left-color: var(--navy-400);
  color: #334155;
}

/* Inline CTA – světlý */
.single-wrap .inline-cta {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
}
.single-wrap .inline-cta h3 { color: #0f172a; }
.single-wrap .inline-cta p  { color: #475569; }

/* Post navigace – světlá */
.single-wrap .post-nav-link {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: block;
  flex: 1;
  min-width: 200px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.single-wrap .post-nav-link:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.single-wrap .post-nav-label { font-size: 0.75rem; color: #94a3b8; display: block; margin-bottom: 6px; }
.single-wrap .post-nav-title { font-size: 0.9rem; font-weight: 600; color: #1e293b; line-height: 1.35; }
.single-wrap .post-nav-right { text-align: right; }

/* Sidebar – světlý */
.single-wrap .sidebar-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.single-wrap .sidebar-widget h4 { color: #94a3b8; }
.single-wrap .recent-post-info a     { color: #1e293b; }
.single-wrap .recent-post-info a:hover { color: var(--navy-600); }
.single-wrap .recent-post-item { border-bottom-color: #f1f5f9; }

/* ═══════════════════════════════════════════════════════════════════════
   FOTKY V HERO + APPLE CTA + KLIKATELNÝ THUMBNAIL
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero split s fotografií ──────────────────────────────────────────── */
.hero-photo { padding: 0; overflow: visible; }

.hero-split-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
  align-items: center;
}

.hero-text-col {
  padding: 100px 56px 100px 0;
  position: relative;
  z-index: 2;
}

.hero-photo-col {
  position: relative;
  height: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Rám s fotografií */
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.hero-photo-frame > img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 24px 64px rgba(5,13,26,0.6),
    0 8px 24px rgba(5,13,26,0.4);
  display: block;
}

/* Plovoucí iPad miniattura – pravý dolní roh */
.hero-photo-float {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 16px 40px rgba(5,13,26,0.7);
  animation: float-card 5s ease-in-out infinite;
}

.hero-photo-float img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-10px) rotate(-1deg); }
}

/* ── Klikatelný thumbnail na kartičkách ───────────────────────────────── */
.post-thumbnail {
  display: block;        /* z div na odkaz – potřebuje block */
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Hover efekt na celé kartičce – cursor pointer i na obraz */
.post-card:hover .post-thumbnail img { transform: scale(1.05); }

/* Overlay hint – jemný gradient při hoveru nad fotkou */
.post-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,13,26,0);
  transition: background var(--transition-slow);
  pointer-events: none;
  border-radius: 0; /* thumbnail je uvnitř card, ta má radius */
}
.post-card:hover .post-thumbnail::after {
  background: rgba(5,13,26,0.08);
}

/* Klik kurzor na celou kartu */
.post-card { cursor: default; }
.post-card .post-thumbnail { cursor: pointer; }

/* ── Apple-style CTA ──────────────────────────────────────────────────── */
.cta-apple {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy-900);
}

/* Pozadní fotka – rozostřená, ztlumená */
.cta-apple-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-apple-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: blur(3px) brightness(0.25) saturate(0.6);
  transform: scale(1.05); /* skryje blur edge */
}

/* Gradientní překryv */
.cta-apple::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(39,164,73,0.12) 0%, transparent 70%),
    linear-gradient(180deg, rgba(5,13,26,0.3) 0%, rgba(5,13,26,0.55) 100%);
}

/* Obsah nad pozadím */
.cta-apple-inner {
  position: relative;
  z-index: 2;
  padding: 72px 48px;
  max-width: 680px;
  margin: 0 auto;
}

/* Eyebrow label – Apple styl */
.cta-apple-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.cta-apple-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.cta-apple-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Tlačítka – Apple pill styl */
.cta-apple-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-apple-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: var(--white);
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: var(--radius-full);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  letter-spacing: -0.01em;
}
.cta-apple-btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  background: var(--gray-50);
}

.cta-apple-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 15px 28px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-display);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.cta-apple-btn-secondary:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.25);
  transform: scale(1.02);
}

/* Perks pod tlačítky */
.cta-apple-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-apple-perk {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body);
}
.cta-apple-perk svg { flex-shrink: 0; color: var(--green-400); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-split-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-text-col { padding: 72px 0 40px; }
  .hero-text-col .hero-content { text-align: center; }
  .hero-text-col .hero-cta-group { justify-content: center !important; }
  .hero-photo-col { min-height: 320px; order: -1; }
  .hero-photo-frame > img { height: 300px; }
  .hero-photo-float { width: 130px; bottom: -20px; right: -12px; }
  .cta-apple-inner { padding: 48px 24px; }
  .cta-apple-title { font-size: 2rem; }
}

@media (max-width: 640px) {
  .hero-photo-float { display: none; }
  .cta-apple-actions { flex-direction: column; }
  .cta-apple-btn-primary,
  .cta-apple-btn-secondary { width: 100%; justify-content: center; }
}

/* Blog archive – H1 je delší věta, škálujeme dolů */
.blog-wrap .archive-header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
  max-width: 780px;
}
.blog-wrap .archive-header p {
  max-width: 780px;
  font-size: 0.97rem;
  line-height: 1.75;
  margin-top: 14px;
}

/* Footer legal links – velmi nenápadné */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-legal a {
  font-size: 0.75rem;
  color: var(--gray-600);
  opacity: 0.6;
  transition: opacity var(--transition);
}
.footer-legal a:hover { opacity: 1; color: var(--gray-400); }
.footer-legal-sep { color: var(--gray-600); opacity: 0.4; font-size: 0.75rem; }

/* ── Slevy banner (blog listing) ──────────────────────────────────────── */
.slevy-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border: 1.5px solid #fde047;
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}
.slevy-banner:hover {
  border-color: #facc15;
  box-shadow: 0 4px 16px rgba(250,204,21,0.2);
  transform: translateY(-1px);
}
.slevy-banner-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.slevy-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.slevy-banner-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #78350f;
  font-family: var(--font-display);
}
.slevy-banner-text span {
  font-size: 0.82rem;
  color: #92400e;
}
.slevy-banner-badge {
  flex-shrink: 0;
  padding: 7px 16px;
  background: #854d0e;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  white-space: nowrap;
}

/* ── Slevy widget (sidebar) ───────────────────────────────────────────── */
.sidebar-slevy-widget {
  display: block;
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border: 1.5px solid #fde047;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 20px;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sidebar-slevy-widget:hover {
  border-color: #facc15;
  box-shadow: 0 4px 12px rgba(250,204,21,0.2);
}
.sidebar-slevy-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-slevy-emoji { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.sidebar-slevy-inner strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #78350f;
  font-family: var(--font-display);
  margin-bottom: 2px;
}
.sidebar-slevy-inner span {
  font-size: 0.78rem;
  color: #92400e;
}

/* Slevy v menu – zvýraznění */
.nav-links a:has(text) { }
