:root {
    --primary: #5c6ac4;
    --primary-dark: #202e78;
    --accent: #47c1bf;
    --text: #202223;
    --text-light: #6d7175;
    --bg-light: #f4f6f8;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding: 0;
    background-color: white;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e1e3e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active,
header .nav-links a.active {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Hero Section */
.hero {
    background: #1a1f3c; /* Match the dark navy in your image */
    color: white;
    padding: 60px 0;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-image {
    flex: 1.2;
    max-width: 550px;
    border-radius: 12px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    opacity: 0.85;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hero Doc Container overrides */
.hero-content.doc-container {
    color: var(--text-color);
    margin-bottom: 0;
    padding: 40px;
}

.hero-content.doc-container h1 {
    color: var(--primary-dark);
}

.hero-content.doc-container .btn {
    background: var(--primary);
    color: white;
}

.hero-content.doc-container .btn:hover {
    background: var(--primary-dark);
}

/* Features */
.features {
    padding: 80px 0;
}

.section-title {
    max-width: 1100px; /* Aligned with main container */
    margin: 0 auto 40px auto; /* Center the container */
}

.section-title h1,
.section-title h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.section-title p {
    text-align: left;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.doc-container {
    max-width: 1100px; /* Aligned with main container */
    margin: 0 auto 40px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.doc-container .page-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

.doc-container .page-subtitle {
    text-align: left;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow);
}

.feature-card h3 {
    color: var(--primary);
    margin-top: 0;
}

/* Footer */
footer {
    background: #111;
    color: #999;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.85rem;
    text-align: center;
}

@media (max-width: 768px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
}
