@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Color Palette */
    --bg-color: #0d0815;
    /* Deep dark purple */
    --surface-color: rgba(255, 255, 255, 0.05);
    /* Glassy card background - elevated legibility */
    --surface-hover: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.15);
    --primary-color: #55278c;
    /* Ketu Purple */
    --accent-color: #abcd16;
    /* Ketu Lime Green */
    --accent-glow: rgba(171, 205, 22, 0.3);

    --text-main: #f4f2f9;
    --text-muted: #a39eb2;

    --positive: #00c853;
    --negative: #ff3b30;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1280px;
    --nav-height: 80px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients (Dynamic feel) */
body::before {
    content: '';
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 60vw;
    height: 60vh;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    opacity: 0.15;
    filter: blur(100px);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20vh;
    right: -10vw;
    width: 40vw;
    height: 50vh;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    opacity: 0.08;
    filter: blur(100px);
    z-index: -1;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Base Components */
.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(171, 205, 22, 0.5);
    background-color: #bfee19;
}

.btn-secondary {
    background-color: rgba(85, 39, 140, 0.4);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: rgba(85, 39, 140, 0.6);
    transform: translateY(-2px);
}

/* Glass Card */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 8, 21, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* CSS Implementation of User's Logo */
.brand-ketu {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.8rem;
    color: var(--accent-color);
    line-height: 1;
    letter-spacing: -2px;
}

.brand-subtitle-wrapper {
    display: flex;
    align-items: center;
    margin-top: -6px;
}

.brand-capital {
    background-color: #fff;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 2px 6px;
    text-transform: uppercase;
}

.brand-motto {
    color: #fff;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.65rem;
    margin-left: 8px;
    position: relative;
    top: 1px;
}

.brand-logo-container {
    display: flex;
    flex-direction: column;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(171, 205, 22, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(171, 205, 22, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a39eb2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Market Tracker Grid */
.market-ticker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stock-card {
    display: flex;
    flex-direction: column;
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stock-ticker {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.stock-price {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.stock-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.change-pos {
    color: var(--positive);
}

.change-neg {
    color: var(--negative);
}

.stock-chart-mock {
    height: 40px;
    width: 100%;
    margin-top: 1rem;
    opacity: 0.7;
}

/* Section Common */
.section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.section-title {
    margin-bottom: 0.5rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Article Cards */
.article-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.article-img {
    height: 200px;
    background: #2a1f40;
    width: 100%;
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-title a::after {
    display: none;
}

.article-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.85rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    background: rgba(13, 8, 21, 0.9);
    margin-top: 2rem;
}

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

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .grid-3,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Custom Utilities */
.text-accent {
    color: var(--accent-color);
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}