/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0052D4;
    --secondary-color: #4364F7;
    --text-color: #212529;
    --text-light: #5a626d;
    --bg-light: #f0f4ff;
    --border-color: #eef2f9; 
    --shadow-color: rgba(0, 82, 212, 0.1); 
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 90px 0;
}

h1, h2, h3 {
    margin-top: 0;
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 60px; }
h3 { font-size: 1.5rem; margin-bottom: 15px; }
p { margin-bottom: 1rem; color: var(--text-light); }
a { color: var(--primary-color); text-decoration: none; }

/* --- Header & Navigation --- */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li { margin: 0 15px; }
.main-nav ul a { font-weight: 500; color: var(--text-light); transition: color 0.2s ease; }
.main-nav ul a:hover { color: var(--text-color); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 82, 212, 0.3);
}

.btn-secondary {
    background-color: #fff;
    color: var(--text-color);
    border-color: #dee2e6;
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: #c9d5e5;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 100px 0;
}

.hero .sub-headline {
    max-width: 700px;
    margin: 20px auto 40px;
    font-size: 1.25rem;
}

.hero .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- Grid Layouts & Cards --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* UPDATED CARD STYLES */
.card {
    background-color: #fff;
    border-radius: 12px; 
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px var(--shadow-color); /* UPDATED: Subtle shadow always on */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-color); /* UPDATED: Enhanced shadow on hover */
}

.card-image-bg {
    height: 200px; /* UPDATED: Explicit height to ensure image is visible */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes content area fill remaining card space */
}

.card-content h3 {
    margin-top: 0;
}

/* UPDATED: Pushes the button to the bottom of the card */
.card-content .btn {
    margin-top: auto; /* This pushes the button to the bottom */
    align-self: flex-start; /* Ensures button doesn't stretch full width */
}

.card-icon {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Code Block --- */
.code-block {
    background-color: #2d2d2d;
    color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    font-family: "SF Mono", "Fira Code", "Courier New", monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    text-align: left;
}
.code-block pre { margin: 0; }

/* --- CTA & Footer --- */
.cta-section {
    background-color: var(--bg-light);
    text-align: center;
}
.page-header {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}
.page-header h1 { margin-bottom: 10px; }
.page-header p { font-size: 1.2rem; max-width: 700px; margin: 0 auto; }
.content-section { max-width: 800px; margin: 0 auto; }
.disclaimer-box {
    margin-top: 60px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}
.disclaimer-box p {
    margin: 0;
    font-size: 0.95rem;
}

.main-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .main-nav { flex-direction: column; gap: 10px; }
    .grid-3 { grid-template-columns: 1fr; }
    section { padding: 60px 0; }
}