/* Nuvexio — AI news platform stylesheet (vanilla, no frameworks) */
:root {
  --navy: #0f1b2d;
  --navy-light: #1a2c47;
  --red: #d92626;
  --blue: #1a6fd4;
  --green: #1e8e4d;
  --amber: #c77e0a;
  --text: #1c2330;
  --muted: #5b6472;
  --line: #e3e7ee;
  --bg-soft: #f5f7fa;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--blue); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { background: var(--navy-light); color: #cfd8e6; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.topbar-tag { opacity: .85; }

/* Masthead */
.masthead { background: var(--navy); color: #fff; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; position: relative; }
.brand { text-decoration: none; }
.brand-name { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.brand-name::after { content: "."; color: var(--red); }
.mainnav { display: flex; gap: 4px; }
.mainnav a { color: #e8edf5; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 6px; }
.mainnav a:hover, .mainnav a.active { background: rgba(255,255,255,.1); color: #fff; }
.mainnav a.active { box-shadow: inset 0 -3px 0 var(--red); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Breaking ticker */
.ticker { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: stretch; overflow: hidden; }
.ticker-label { background: var(--red); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 1px; padding: 10px 16px; flex-shrink: 0; display: flex; align-items: center; }
.ticker-view { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; margin-right: 64px; flex-shrink: 0; }
.ticker-item:hover { color: var(--red); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: #fff; border-radius: var(--radius); margin: 28px 0; padding: 40px 36px; }
.hero .badge { margin-bottom: 14px; }
.hero h1 { font-size: 34px; line-height: 1.25; margin-bottom: 14px; letter-spacing: -0.5px; }
.hero h1 a { color: #fff; text-decoration: none; }
.hero h1 a:hover { text-decoration: underline; }
.hero-excerpt { color: #c6d2e4; font-size: 17px; max-width: 720px; margin-bottom: 16px; }
.hero-meta { color: #9fb0c9; font-size: 14px; }

/* Sections */
.section { margin: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--navy); padding-bottom: 8px; margin-bottom: 20px; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.section-title .dot-news { color: var(--blue); } .section-title .dot-solutions { color: var(--green); } .section-title .dot-tools { color: var(--amber); }
.section-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.section-link:hover { text-decoration: underline; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(15,27,45,.12); transform: translateY(-2px); }
.card-title { font-size: 18px; line-height: 1.35; font-weight: 700; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.card-meta { color: var(--muted); font-size: 13px; }
.card-excerpt { color: var(--muted); font-size: 14.5px; flex: 1; }

/* Badges */
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #fff; padding: 4px 10px; border-radius: 20px; }
.badge-news { background: var(--blue); }
.badge-solutions { background: var(--green); }
.badge-tools { background: var(--amber); }

/* Listing pages */
.listing-head { margin: 32px 0 8px; }
.listing-head h1 { font-size: 32px; letter-spacing: -0.5px; margin-bottom: 6px; }
.listing-head p { color: var(--muted); max-width: 640px; }
.search-box { margin: 20px 0; }
.search-box input { width: 100%; max-width: 440px; padding: 12px 16px; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }
.search-box input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.no-results { color: var(--muted); padding: 24px 0; display: none; }

/* Article pages */
.article-page { padding-top: 28px; padding-bottom: 40px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 4px; }
.article { max-width: 760px; }
.article h1 { font-size: 34px; line-height: 1.25; letter-spacing: -0.5px; margin: 12px 0 10px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 23px; margin: 32px 0 12px; letter-spacing: -0.3px; }
.article p { margin-bottom: 16px; font-size: 16.5px; }
.article ul, .article ol { margin: 0 0 18px 24px; font-size: 16.5px; }
.article li { margin-bottom: 8px; }
.sources { background: var(--bg-soft); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 32px 0; }
.sources h2 { font-size: 17px; margin: 0 0 10px; }
.sources ul { margin: 0 0 0 20px; font-size: 15px; }
.related { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 32px 0; }
.related h2 { font-size: 17px; margin: 0 0 10px; }
.related ul { margin: 0 0 0 20px; font-size: 15px; }
.related li { margin-bottom: 6px; }
.back-link { margin-top: 28px; font-weight: 600; }
.back-link a { text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

/* Newsletter */
.newsletter { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; margin: 44px 0; text-align: center; }
.newsletter h2 { font-size: 24px; margin-bottom: 8px; }
.newsletter p { color: #c6d2e4; margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input[type="email"] { padding: 12px 16px; font-size: 15px; border: none; border-radius: 8px; min-width: 260px; font-family: inherit; }
.newsletter-form button { background: var(--red); color: #fff; border: none; border-radius: 8px; padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.newsletter-form button:hover { background: #b81f1f; }
.newsletter-msg { margin-top: 14px; color: #9fe6a0; font-weight: 600; min-height: 1.4em; }
.newsletter-note { font-size: 12.5px; color: #9fb0c9; margin-top: 10px; }

/* About */
.about-page { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.about-page h1 { font-size: 34px; margin-bottom: 16px; letter-spacing: -0.5px; }
.about-page h2 { font-size: 22px; margin: 28px 0 10px; }
.about-page p, .about-page li { font-size: 16.5px; margin-bottom: 14px; }
.about-page ul { margin-left: 24px; }
.pillar-list { list-style: none; margin-left: 0 !important; }
.pillar-list li { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 18px; }

/* Footer */
.footer { background: var(--navy); color: #c6d2e4; margin-top: 56px; }
.footer-inner { padding-top: 36px; padding-bottom: 28px; }
.footer-brand .brand-name { font-size: 24px; }
.footer-brand p { margin: 8px 0 18px; font-size: 14.5px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-nav a { color: #e8edf5; text-decoration: none; font-size: 14.5px; font-weight: 600; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copyright { font-size: 13px; color: #9fb0c9; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }

/* Responsive */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-light); flex-direction: column; padding: 8px 20px 16px; z-index: 50; }
  .mainnav.open { display: flex; }
  .mainnav a { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero { padding: 28px 22px; }
  .hero h1 { font-size: 26px; }
  .article h1 { font-size: 27px; }
  .topbar-tag { display: none; }
  .newsletter-form input[type="email"] { min-width: 0; width: 100%; }
}
