/* Stromation AI News - Premium Visual System */
:root {
  /* Color Palette - Dark Editorial */
  --bg-dark: #050505;
  --bg-panel: #0f0f11;
  --bg-hover: #1a1a1d;
  
  --text-main: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  --accent-cyan: #00f0ff;
  --accent-mint: #00ffa3;
  --accent-purple: #8a2be2;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.2);
  
  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing & Layout */
  --container-width: 1200px;
  --container-narrow: 800px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--accent-cyan);
}

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn-subscribe {
  background: var(--text-main);
  color: var(--bg-dark);
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 80px);
  max-width: 900px;
  margin: 0 auto 24px;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Subscribe Form */
.subscribe-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.subscribe-input {
  flex: 1;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 16px 24px;
  border-radius: 100px;
  color: var(--text-main);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

.subscribe-input:focus {
  border-color: var(--border-focus);
}

.subscribe-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  background: var(--text-main);
  color: var(--bg-dark);
  border: none;
  padding: 0 24px;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.subscribe-btn:hover {
  background: #e5e5e5;
}

.hero-social-proof {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* News Grid */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-top: 64px;
}

.section-header h2 {
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

/* Article Cards */
.article-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
}

.article-featured {
  grid-column: span 8;
  flex-direction: row;
}

.article-featured .article-image {
  width: 50%;
  border-right: 1px solid var(--border-light);
  border-bottom: none;
}

.article-featured .article-content {
  width: 50%;
  padding: 40px;
  justify-content: center;
}

.article-featured h3 {
  font-size: 32px;
}

.article-standard {
  grid-column: span 4;
}

.article-small {
  grid-column: span 3;
}

.article-image {
  aspect-ratio: 16/9;
  background: #1a1a1d;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.article-card:hover .article-image img {
  opacity: 1;
}

.article-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
}

.article-tag {
  color: var(--accent-cyan);
  font-weight: 600;
}

.article-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.article-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #333;
}

/* Sidebar / Trending */
.trending-sidebar {
  grid-column: span 4;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.trending-sidebar h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.trending-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.trending-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.trending-number {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
}

.trending-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.trending-item .article-meta {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 80px 0 40px;
  margin-top: 80px;
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .article-featured {
    grid-column: span 12;
    flex-direction: column;
  }
  .article-featured .article-image,
  .article-featured .article-content {
    width: 100%;
  }
  .article-featured .article-image {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .trending-sidebar {
    grid-column: span 12;
  }
  .article-standard, .article-small {
    grid-column: span 6;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .article-standard, .article-small {
    grid-column: span 12;
  }
  .hero h1 {
    font-size: 40px;
  }
  /* mobile nav: scrollable, never hidden */
  .nav-container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .nav-links {
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 13px; }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   v2 polish layer — feed, products, subscribe, premium touches
   ============================================================ */

::selection { background: rgba(0, 240, 255, 0.25); color: #fff; }

body {
  background-image:
    radial-gradient(55% 38% at 78% -6%, rgba(0, 240, 255, 0.06), transparent 60%),
    radial-gradient(45% 32% at 12% -4%, rgba(138, 43, 226, 0.06), transparent 60%);
  background-repeat: no-repeat;
}

/* today's pick */
.pick-card {
  background: linear-gradient(165deg, var(--bg-panel), #0a0a0c);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.pick-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(40% 60% at 90% 0%, rgba(0, 240, 255, 0.07), transparent 65%);
}
.pick-card .article-meta { margin-bottom: 16px; }
.pick-card h3 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin-bottom: 20px;
  line-height: 1.2;
}
.pick-card h3 a:hover { color: var(--accent-cyan); }
.pick-why {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 760px;
}
.move-box {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-left: 4px solid var(--accent-cyan);
  padding: 22px 26px;
  border-radius: 8px;
}
.move-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.move-box p { margin: 0; font-size: 16.5px; line-height: 1.65; color: #fff; }
.pick-source {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.pick-source a { color: var(--text-muted); border-bottom: 1px solid var(--border-light); }
.pick-source a:hover { color: var(--accent-cyan); }

/* archive cards */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}
.signal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.signal-card:hover { transform: translateY(-3px); border-color: rgba(0, 240, 255, 0.35); }
.signal-card h4 { font-size: 18px; line-height: 1.35; }
.signal-card h4 a:hover { color: var(--accent-cyan); }
.signal-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
.signal-card .article-meta { margin-bottom: 0; }

/* products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: rgba(0, 240, 255, 0.35); }
.product-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mint);
  background: rgba(0, 255, 163, 0.08);
  border: 1px solid rgba(0, 255, 163, 0.2);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.product-card h3 { font-size: 22px; margin-bottom: 10px; }
.product-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; line-height: 1.6; }
.product-link { color: var(--accent-cyan); font-weight: 600; font-size: 14.5px; }

/* bottom subscribe band */
.subscribe-band {
  margin: 40px 0 0;
  padding: clamp(40px, 6vw, 72px) 24px;
  text-align: center;
  border-top: 1px solid var(--border-light);
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(0, 240, 255, 0.05), transparent 70%);
}
.subscribe-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; letter-spacing: -0.03em; }
.subscribe-band > p { color: var(--text-muted); font-size: 17px; margin-bottom: 32px; }
.subscribe-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* honest proof row */
.proof-row {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.proof-row .dot { color: var(--accent-cyan); }

/* feed fallback */
.feed-fallback {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}
.feed-fallback h3 { margin-bottom: 12px; font-size: 22px; }
.feed-fallback p { color: var(--text-muted); }
