@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #2563eb;
  --dark: #0d1117;
  --card-bg: #161b22;
  --border: #21262d;
  --text: #f0f6fc;
  --muted: #f0f6fc;
  --accent: #2563eb;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-logo svg { flex-shrink: 0; }

.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.85; }

/* BREAKING TICKER */
.ticker {
  background: var(--accent);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 80px;
  animation: ticker 30s linear infinite;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* HERO */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  background-color: var(--dark);
  background-size: cover;
  background-position: center top;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13,17,23,0.97) 0%, rgba(13,17,23,0.93) 50%, rgba(13,17,23,0.6) 100%);
  pointer-events: none;
}

.hero-z {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-meta .dot { color: var(--red); }

.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.hero-read-more:hover { opacity: 0.85; }

/* SECTION HEADERS */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--red);
}

.section-header h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-header a {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
}

/* CARD GRID */
.grid-section { padding: 60px 0; border-bottom: 1px solid var(--border); }
.grid-section:nth-of-type(even) { background: #0a0d12; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  position: relative;
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,17,23,0.55) 0%, transparent 55%);
  pointer-events: none;
  transition: opacity 0.25s;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-img img { transform: scale(1.06); }
.card:hover .card-img::after { opacity: 0.7; }

.card-category,
.card h3,
.card p,
.card-footer {
  padding-left: 24px;
  padding-right: 24px;
}

.card-category { padding-top: 20px; }

.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,99,235,0.15); }

.card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-read { color: var(--red); font-weight: 600; }

/* NEWSLETTER */
.newsletter-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.newsletter-box {
  background: linear-gradient(135deg, #0f1929 0%, #161b22 100%);
  border: 1px solid #2a3a6e;
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 56px 48px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 8px 40px rgba(37,99,235,0.08);
}

.newsletter-box .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 16px;
}

.newsletter-box h2 {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.newsletter-box p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--red);
}

.newsletter-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.newsletter-form button:hover { opacity: 0.85; }

@media (max-width: 500px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-box { padding: 32px 24px; }
}

/* AI HAMMOCK CTA */
.hammock-cta {
  background: linear-gradient(135deg, #0d1b4b 0%, #1a0a2e 100%);
  border: 1px solid #2a2a6e;
  border-radius: 6px;
  padding: 40px;
  margin: 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hammock-cta-text .eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00d9d6;
  margin-bottom: 8px;
}

.hammock-cta-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.hammock-cta-text p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
}

.hammock-cta-btn {
  background: #00d9d6;
  color: #0a0a0a;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.hammock-cta-btn:hover { opacity: 0.85; }

@media (max-width: 700px) {
  .hammock-cta { flex-direction: column; text-align: center; }
  .hammock-cta-text p { max-width: 100%; }
}

/* ARTICLE PAGE */
.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  margin-bottom: 36px;
}

@media (max-width: 600px) { .article-hero-img { height: 220px; } }

.article-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--muted); }
.article-body h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 36px 0 16px; letter-spacing: -0.02em; }
.article-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.article-body p { margin-bottom: 20px; color: #f0f6fc; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body a { color: var(--red); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; color: #f0f6fc; }

/* FOOTER */
footer {
  padding: 64px 0 40px;
  border-top: 2px solid var(--border);
  background: #0a0d12;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer-brand .logo span { color: var(--red); }
.footer-brand p { font-size: 0.85rem; color: var(--muted); max-width: 280px; line-height: 1.6; }

.footer-links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-links { display: none; }
}
