/* ============================================
   THE CIPHER — thecipher.uk
   #1 Tech Intelligence & News
   ============================================ */

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

/* --- Custom Properties --- */
:root {
  --bg-primary: #08090c;
  --bg-secondary: #0e1015;
  --bg-card: #12141a;
  --bg-card-hover: #181b23;
  --bg-elevated: #1c1f28;
  --bg-input: #12141a;
  --text-primary: #e8ecf1;
  --text-secondary: #8a95a5;
  --text-muted: #4a5568;
  --border: #1a1d26;
  --border-light: #252a35;

  --accent-cyber: #00e5ff;
  --accent-ai: #e6248a;
  --accent-drone: #8b5cf6;
  --accent-home: #10b981;
  --accent-connect: #f59e0b;
  --accent-review: #ef4444;
  --accent-apple: #a78bfa;
  --accent-google: #34d399;
  --accent-openai: #6ee7b7;
  --accent-brand: #00e5ff;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
  --glow: 0 0 40px rgba(0, 229, 255, 0.06);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="light"] {
  --bg-primary: #f5f6f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fb;
  --bg-elevated: #eef0f4;
  --bg-input: #f0f1f4;
  --text-primary: #0a0e14;
  --text-secondary: #4a5568;
  --text-muted: #94a3b8;
  --border: #e2e6ec;
  --border-light: #d1d7e0;
  --glow: 0 2px 20px rgba(0,0,0,0.05);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* --- Noise Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-home);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-bar-right a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.top-bar-right a:hover { color: var(--text-primary); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 9, 12, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .nav { background: rgba(245, 246, 248, 0.95); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 12px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-brand), #0091a8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link.active { color: var(--accent-brand); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-btn {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.75rem;
  transition: all var(--transition-fast);
  gap: 6px;
}
.nav-btn:hover { border-color: var(--border-light); color: var(--text-primary); }
.nav-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.nav-btn-primary {
  background: var(--accent-brand);
  border-color: var(--accent-brand);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-btn-primary:hover { background: #33ebff; border-color: #33ebff; }

.nav-rss {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--accent-connect);
}
.nav-rss:hover { background: rgba(245, 158, 11, 0.15); border-color: var(--accent-connect); }

.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
}

/* ============================================
   TAGS
   ============================================ */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 3px;
  line-height: 1.4;
}
.tag-cyber { background: rgba(0,229,255,0.1); color: var(--accent-cyber); }
.tag-ai { background: rgba(230,36,138,0.1); color: var(--accent-ai); }
.tag-drone { background: rgba(139,92,246,0.1); color: var(--accent-drone); }
.tag-home { background: rgba(16,185,129,0.1); color: var(--accent-home); }
.tag-connect { background: rgba(245,158,11,0.1); color: var(--accent-connect); }
.tag-review { background: rgba(239,68,68,0.1); color: var(--accent-review); }
.tag-apple { background: rgba(167,139,250,0.1); color: var(--accent-apple); }
.tag-google { background: rgba(52,211,153,0.1); color: var(--accent-google); }
.tag-openai { background: rgba(110,231,183,0.1); color: var(--accent-openai); }
.tag-source { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.tag-live { background: rgba(239,68,68,0.15); color: var(--accent-review); }
.tag-live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 5px;
  animation: pulse-dot 1.5s ease infinite;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-accent {
  width: 3px;
  height: 24px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}
.section-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  white-space: nowrap;
}
.section-link:hover { color: var(--accent-brand); }

/* ============================================
   HERO
   ============================================ */
.hero { padding: 20px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 460px;
}

.hero-main {
  grid-row: 1 / 3;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.hero-main:hover .hero-img-bg { transform: scale(1.03); }

.hero-img-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-main .hero-img-bg {
  background: linear-gradient(135deg, #0a1628 0%, #162040 40%, #1a3a5c 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 35%, rgba(0,0,0,0.1) 60%, transparent 100%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
}
.hero-overlay .tag { margin-bottom: 10px; align-self: flex-start; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.hero-excerpt {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  line-height: 1.5;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
}

.hero-side {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.hero-side:hover .hero-img-bg { transform: scale(1.03); }
.hero-side:nth-child(2) .hero-img-bg { background: linear-gradient(135deg, #1a0022, #3a0050, #5c1090); }
.hero-side:nth-child(3) .hero-img-bg { background: linear-gradient(135deg, #0d1117, #162040, #0a3060); }
.hero-side .hero-overlay { padding: 18px; }
.hero-side .hero-title { font-size: clamp(0.95rem, 1.4vw, 1.2rem); margin-bottom: 0; }

/* ============================================
   AD SLOTS
   ============================================ */
.ad-slot {
  background: var(--bg-secondary);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}
.ad-leaderboard {
  height: 90px;
  margin: 20px 0;
}
.ad-sidebar {
  height: 250px;
  margin-bottom: 24px;
}
.ad-inline {
  height: 100px;
  margin: 24px 0;
}

/* ============================================
   TICKER
   ============================================ */
.ticker-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}
.ticker-bar::before, .ticker-bar::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.ticker-bar::before { left: 0; background: linear-gradient(to right, var(--bg-secondary), transparent); }
.ticker-bar::after { right: 0; background: linear-gradient(to left, var(--bg-secondary), transparent); }

.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-review);
  background: var(--bg-secondary);
  z-index: 3;
  border-right: 1px solid var(--border);
  gap: 6px;
}
.ticker-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-review);
  animation: pulse-dot 1.5s ease infinite;
}

.ticker-track {
  display: flex;
  gap: 36px;
  animation: ticker-scroll 50s linear infinite;
  padding-left: 100px;
}
.ticker-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker-item::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-brand);
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  padding: 36px 0;
}

/* ============================================
   LIVE FEED CARDS
   ============================================ */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.feed-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.feed-card-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #0f1923, #1a2f40);
  position: relative;
}
.feed-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card-source {
  position: absolute;
  top: 10px;
  right: 10px;
}

.feed-card-body { padding: 16px; }
.feed-card-body .tag { margin-bottom: 8px; }

.feed-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card-excerpt {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.feed-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* loading skeleton */
.feed-card.skeleton .feed-card-img,
.feed-card.skeleton .feed-card-title,
.feed-card.skeleton .feed-card-excerpt {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.feed-card.skeleton .feed-card-title { height: 40px; margin-bottom: 8px; }
.feed-card.skeleton .feed-card-excerpt { height: 30px; }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { position: sticky; top: 76px; }

.trending-list { display: flex; flex-direction: column; }

.trending-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.trending-item:first-child { padding-top: 0; }
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { padding-left: 6px; }

.trending-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  line-height: 1;
  color: var(--border-light);
  transition: color var(--transition-fast);
}
.trending-item:hover .trending-num { color: var(--accent-brand); }

.trending-content .tag { margin-bottom: 5px; }
.trending-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.trending-meta {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
}

/* Sources widget */
.sources-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 24px;
}
.sources-widget h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.source-item:last-child { border-bottom: none; }
.source-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}
.source-name { display: flex; align-items: center; }
.source-status {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--accent-home);
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-section { padding: 0 0 40px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.review-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.review-card:nth-child(1)::before { background: var(--accent-cyber); }
.review-card:nth-child(2)::before { background: var(--accent-ai); }
.review-card:nth-child(3)::before { background: var(--accent-drone); }
.review-card:nth-child(4)::before { background: var(--accent-home); }

.review-img {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.review-card:nth-child(1) .review-img { background: linear-gradient(135deg, #0b2e3d, #164e63); }
.review-card:nth-child(2) .review-img { background: linear-gradient(135deg, #2e0b3d, #631650); }
.review-card:nth-child(3) .review-img { background: linear-gradient(135deg, #1a0b3d, #3b1663); }
.review-card:nth-child(4) .review-img { background: linear-gradient(135deg, #0b3d1a, #166340); }

.review-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.review-score-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-connect);
}
.review-score-bar {
  width: 60px;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}
.review-score-fill {
  height: 100%;
  background: var(--accent-connect);
  border-radius: 2px;
}

.review-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 6px;
}
.review-verdict {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-link {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-brand);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}
.review-card:hover .review-link { gap: 8px; }

/* ============================================
   CATEGORY SECTIONS
   ============================================ */
.category-sections { padding-bottom: 40px; }
.category-block { margin-bottom: 40px; }
.category-block:last-child { margin-bottom: 0; }

.category-articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cat-article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.cat-article:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}
.cat-article-img {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0f1923, #1a2f40);
}
.cat-article-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.cat-article-excerpt {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-article-meta {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ============================================
   ANNOUNCEMENT CTA
   ============================================ */
.announce-cta {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.announce-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-brand), var(--accent-ai), var(--accent-drone));
}
.announce-cta h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 8px;
}
.announce-cta p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.announce-price {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.announce-price strong {
  font-size: 1.4rem;
  color: var(--text-primary);
}
.announce-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-brand);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.announce-btn:hover { background: #33ebff; transform: translateY(-1px); }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.newsletter-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 6px;
}
.newsletter-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.newsletter-input {
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 11px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 280px;
  outline: none;
  transition: border-color var(--transition-fast);
}
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-input:focus { border-color: var(--accent-brand); }
.newsletter-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 11px 22px;
  background: var(--accent-brand);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.newsletter-btn:hover { background: #33ebff; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { display: inline-flex; margin-bottom: 12px; }
.footer-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 16px;
}
.footer-social {
  display: flex;
  gap: 6px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.footer-social a:hover { border-color: var(--accent-brand); color: var(--accent-brand); }
.footer-social a svg { width: 13px; height: 13px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); transition: color var(--transition-fast); }
.footer-bottom-links a:hover { color: var(--text-secondary); }

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.25s; }

/* ============================================
   POST ANNOUNCEMENT MODAL
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
}
.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}
.modal-close:hover { color: var(--text-primary); border-color: var(--border-light); }

.modal-body { padding: 24px; }

.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--accent-brand); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { appearance: none; cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.modal-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-price {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}
.modal-price strong {
  font-size: 1.1rem;
  color: var(--text-primary);
}
.modal-pay-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--accent-brand);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.modal-pay-btn:hover { background: #33ebff; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .hero-main { grid-row: auto; }
  .hero-main .hero-img-bg { min-height: 300px; }
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .category-articles { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
  .newsletter-input { flex: 1; width: auto; }
  .top-bar { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-btn:not(.mobile-menu-btn):not(.nav-btn-primary) { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 14px;
    gap: 2px;
    z-index: 999;
  }
  .feed-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cat-article { grid-template-columns: 90px 1fr; gap: 10px; }
  .cat-article-img { height: 65px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { width: 100%; }
  .announce-cta { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
}
