/* ========================================
   StockPulse India — Mobile-First Styles
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2563EB;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --green: #10B981;
    --green-bg: #d1fae5;
    --red: #EF4444;
    --red-bg: #fee2e2;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1100px;
    --header-h: 60px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.hidden { display: none !important; }

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}
.skip-link:focus {
    top: 8px;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    height: var(--header-h);
}

.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}
.logo strong { color: var(--primary); }
.logo:hover { text-decoration: none; }

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-list {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 16px;
    gap: 4px;
    z-index: 150;
}
.nav-list.open {
    display: flex;
}
.nav-list li a {
    display: block;
    padding: 14px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 17px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    text-decoration: none;
}
.nav-list li a:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

/* ========================================
   Ticker Bar
   ======================================== */
.ticker-bar {
    background: #0f172a;
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 0;
}

.ticker-track {
    width: 100%;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    gap: 32px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.ticker-item {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}
.ticker-item i {
    font-style: normal;
    font-weight: 600;
}
.ticker-item.up i { color: var(--green); }
.ticker-item.down i { color: var(--red); }

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 48px 0 40px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37,99,235,0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 600px;
}

/* Search Box */
.hero-search { margin-bottom: 32px; }

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 4px 4px 14px;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.search-box svg {
    flex-shrink: 0;
    color: var(--text-light);
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: var(--font);
    color: var(--text);
    background: transparent;
    min-width: 0;
}
.search-box input::placeholder {
    color: var(--text-light);
}

.popular-searches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}
.tag {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: var(--bg-alt);
}
.btn-sm {
    padding: 12px 16px;
    font-size: 13px;
    min-height: 48px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 24px;
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.stat span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   Section Common
   ======================================== */
.section {
    padding: 48px 0;
}
.section-alt {
    background: var(--bg-alt);
}
.section-header {
    margin-bottom: 28px;
}
.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.section-header p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ========================================
   Market Overview Cards
   ======================================== */
.market-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.market-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.market-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.market-flag { font-size: 16px; }
.market-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.market-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.market-change {
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}
.market-change.up { color: var(--green); }
.market-change.down { color: var(--red); }

.mini-chart {
    margin-top: 8px;
    height: 30px;
}
.mini-chart svg {
    width: 100%;
    height: 30px;
}

/* ========================================
   Tabs
   ======================================== */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 20px;
    width: fit-content;
}

.tab {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}
.tab.active {
    background: var(--primary);
    color: #fff;
}
.tab:hover:not(.active) {
    background: var(--bg-alt);
    color: var(--text);
}

/* ========================================
   Stock Cards
   ======================================== */
.stock-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stock-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    transition: box-shadow 0.3s, transform 0.2s;
}
.stock-card:hover {
    box-shadow: var(--shadow-lg);
}
.stock-card.highlight {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.stock-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.stock-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.stock-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.stock-code {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.stock-price-wrap {
    margin-left: auto;
    text-align: right;
}
.stock-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.stock-change {
    font-size: 13px;
    font-weight: 600;
}
.stock-change.up { color: var(--green); }
.stock-change.down { color: var(--red); }

.stock-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.detail span {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}
.detail strong {
    font-size: 13px;
    color: var(--text);
}

.stock-insight {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   Content Cards (Dow Futures Section)
   ======================================== */
.content-grid {
    display: grid;
    gap: 16px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.content-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f4ff, #eff6ff);
}

.content-card-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.content-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.content-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-list {
    margin-top: 12px;
    padding-left: 18px;
    list-style: disc;
}
.feature-list li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    list-style: disc;
}

/* ========================================
   Article Grid (Learn Section)
   ======================================== */
.article-grid {
    display: grid;
    gap: 16px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}
.article-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.article-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--radius);
}
.article-card .article-expand {
    position: relative;
    z-index: 2;
}

.article-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

/* ========================================
   Features Grid (Why Choose Us)
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.feature {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.2s;
}
.feature:hover {
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   About Section
   ======================================== */
.about-content {
    max-width: 720px;
}
.about-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}
.about-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}
.about-content a {
    color: var(--primary);
}

.compliance-badges {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* ========================================
   Disclaimer Section
   ======================================== */
.disclaimer-section {
    padding: 32px 0;
    background: #fef3c7;
    border-top: 2px solid #f59e0b;
}
.disclaimer-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
}
.disclaimer-box p {
    font-size: 13px;
    color: #78350f;
    line-height: 1.7;
    margin-bottom: 8px;
}
.disclaimer-box p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-col h4 {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-col ul li a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-col ul li a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 4px;
}
.footer-bottom a {
    color: #94a3b8;
    font-size: 12px;
}
.footer-bottom a:hover {
    color: #fff;
}

/* ========================================
   WhatsApp Hero CTA
   ======================================== */
.wa-hero-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto 0;
    padding: 14px 28px;
    background: #25D366;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37,211,102,0.4);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
    max-width: fit-content;
}
.wa-hero-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.wa-hero-btn:hover {
    background: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
    text-decoration: none;
    color: #fff;
}
.wa-hero-btn:active {
    transform: translateY(0);
}
.wa-hero-btn svg {
    flex-shrink: 0;
}
.wa-hero-sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    display: none;
}
@media (min-width: 600px) {
    .wa-hero-sub { display: inline; margin-left: 4px; }
    .wa-hero-btn { gap: 12px; padding: 16px 36px; font-size: 17px; }
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 14px 20px 14px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
}
.wa-float:hover {
    background: #1ebe57;
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(37,211,102,0.55), 0 2px 8px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #fff;
}
.wa-float:active {
    transform: scale(0.97);
}
.wa-float svg {
    flex-shrink: 0;
}

/* Pulse animation */
.wa-float-pulse {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: #25D366;
    opacity: 0;
    z-index: -1;
    animation: wa-pulse 2.5s ease-out infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.35); opacity: 0; }
}
.wa-float-label {
    letter-spacing: 0.01em;
}

/* When cookie banner is visible, push float up */
.cookie-banner.show ~ .wa-float,
body:has(.cookie-banner.show) .wa-float {
    bottom: 90px;
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 500;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cookie-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.cookie-content p a {
    color: var(--primary);
    font-weight: 500;
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

/* ========================================
   Legal Pages
   ======================================== */
.legal-page {
    padding: 100px 0 48px;
    min-height: 70vh;
}
.legal-page h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.legal-updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.legal-content h2:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-top: 16px;
    margin-bottom: 8px;
}
.legal-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}
.legal-content ul {
    margin: 8px 0 16px 20px;
}
.legal-content ul li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    list-style: disc;
    margin-bottom: 4px;
}
.legal-content a {
    color: var(--primary);
}

.legal-highlight {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px 0;
}
.legal-highlight p {
    color: #78350f;
}
.legal-highlight ul li {
    color: #78350f;
}

/* ========================================
   Animations
   ======================================== */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations */
.market-card.animate:nth-child(1) { transition-delay: 0ms; }
.market-card.animate:nth-child(2) { transition-delay: 80ms; }
.market-card.animate:nth-child(3) { transition-delay: 160ms; }
.market-card.animate:nth-child(4) { transition-delay: 240ms; }

.stock-card.animate:nth-child(1) { transition-delay: 0ms; }
.stock-card.animate:nth-child(2) { transition-delay: 100ms; }
.stock-card.animate:nth-child(3) { transition-delay: 200ms; }

.feature.animate:nth-child(1) { transition-delay: 0ms; }
.feature.animate:nth-child(2) { transition-delay: 80ms; }
.feature.animate:nth-child(3) { transition-delay: 160ms; }
.feature.animate:nth-child(4) { transition-delay: 240ms; }
.feature.animate:nth-child(5) { transition-delay: 320ms; }
.feature.animate:nth-child(6) { transition-delay: 400ms; }

/* ========================================
   Responsive — Tablet (≥600px)
   ======================================== */
@media (min-width: 600px) {
    .container { padding: 0 24px; }

    .hero h1 { font-size: 36px; }
    .hero-desc { font-size: 17px; }

    .market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stock-details {
        grid-template-columns: repeat(6, 1fr);
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-card.featured {
        grid-column: 1 / -1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* ========================================
   Responsive — Desktop (≥900px)
   ======================================== */
@media (min-width: 900px) {
    .nav-toggle { display: none; }

    .nav-list {
        display: flex !important;
        position: static;
        flex-direction: row;
        padding: 0;
        gap: 0;
        background: transparent;
    }
    .nav-list li a {
        font-size: 14px;
        padding: 8px 14px;
    }

    .hero {
        padding: 64px 0 56px;
    }
    .hero h1 { font-size: 42px; }

    .market-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    .section { padding: 60px 0; }
    .section-header h2 { font-size: 28px; }
}

/* ========================================
   Article Expand (Details/Summary)
   ======================================== */
.article-expand {
    margin-top: 8px;
    border-top: 1px solid var(--border);
    padding-top: 8px;
}
.article-expand summary {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    padding: 4px 0;
    list-style: none;
}
.article-expand summary::-webkit-details-marker { display: none; }
.article-expand summary::before {
    content: '▶ ';
    font-size: 10px;
}
.article-expand[open] summary::before {
    content: '▼ ';
}
.article-preview {
    padding: 10px 0 4px;
}
.article-preview p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 6px;
}
.article-preview em {
    font-size: 12px;
    color: var(--text-light);
}

/* ========================================
   Ticker Notice
   ======================================== */
.ticker-notice {
    flex-shrink: 0;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-right: 1px solid #1e293b;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .header, .ticker-bar, .cookie-banner, .hero-search, .nav-toggle, .wa-float, .wa-hero-btn {
        display: none !important;
    }
    body { font-size: 12pt; color: #000; }
    .section { padding: 20px 0; }
    .stock-card, .market-card, .content-card, .article-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* ========================================
   Accessibility — Focus Styles
   ======================================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* High Contrast */
@media (prefers-contrast: high) {
    :root {
        --border: #000;
        --text-muted: #333;
        --text-light: #555;
    }
    .stock-card, .market-card, .content-card, .article-card {
        border-width: 2px;
    }
}
