:root {
    /* Brand Palette - Deep Space Black Theme */
    --bg-color: #0d1117;
    --text-color: #c9d1d9;
    /* Data White */
    --primary-color: #58a6ff;
    /* Circuit Blue */
    --secondary-color: #f0883e;
    /* Pulse Orange */
    --accent-color: #1f6feb;
    /* Darker Blue for depth */
    --success-color: #3fb950;
    /* Secure Green */

    /* UI Elements */
    --header-bg: rgba(13, 17, 23, 0.85);
    --card-bg: #161b22;
    --border-color: #30363d;
    --hover-bg: #21262d;

    /* Spacing & Layout */
    --section-padding: 5rem 2rem;
    --max-width: 1200px;
    --border-radius: 12px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Headings */
h1,
h2,
h3,
h4 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Links & Buttons */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    /* White text on blue button */
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    /* Subtle, deep space gradient */
    background: radial-gradient(circle at 70% 20%, rgba(22, 27, 34, 0.8) 0%, var(--bg-color) 60%),
        radial-gradient(circle at 10% 80%, rgba(33, 38, 45, 0.8) 0%, var(--bg-color) 60%);
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: block;
}

/* Optional: Add a grid overlay pattern for "tech" feel */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(48, 54, 61, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(48, 54, 61, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    /* Gradient text */
    background: linear-gradient(135deg, #ffffff 0%, #c9d1d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #8b949e;
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #8b949e;
}

/* Services / Cards */
.services-grid,
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card,
.case-study-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover,
.case-study-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: var(--hover-bg);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem;
    background: rgba(88, 166, 255, 0.1);
    border-radius: 8px;
}

.service-title,
.case-study-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-desc,
.case-study-desc {
    color: #8b949e;
    font-size: 1rem;
}

/* Contact */
.contact-container {
    text-align: center;
    background-color: var(--card-bg);
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.contact-email:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: #8b949e;
    font-size: 0.9rem;
    margin-top: 4rem;
    background-color: var(--bg-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
}

/* Insights & Use Cases Specifics */
.insights {
    background: transparent;
}

.use-cases {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.case-study-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.case-study-link:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* Article / Content Page Layout */
.article-header {
    background: radial-gradient(circle at 50% 50%, rgba(22, 27, 34, 0.9) 0%, var(--bg-color) 70%);
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #fff 0%, #c9d1d9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.article-content {
    max-width: 800px;
    margin: 4rem auto;
    font-size: 1.15rem;
    color: #c9d1d9;
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Visuals/Diagrams */
.diagram-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.diagram-caption {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #8b949e;
    font-style: italic;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Technical Content Styles */
.article-content pre {
    background-color: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    background-color: rgba(110, 118, 129, 0.4);
    border-radius: 4px;
}

.article-content pre code {
    padding: 0;
    background-color: transparent;
    color: #e6edf3;
    font-size: 0.95rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: rgba(88, 166, 255, 0.1);
    color: #ffd;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
}

.article-content th,
.article-content td {
    border: 1px solid var(--border-color);
    padding: 1rem;
    text-align: left;
}

.article-content th {
    background-color: var(--card-bg);
    color: #ffffff;
    font-weight: 600;
}

.article-content tr:nth-child(even) {
    background-color: rgba(22, 27, 34, 0.5);
}

.article-content hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

.toc-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 3rem;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.toc-list a:hover {
    text-decoration: underline;
}