/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --text: #334155;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ===== HEADER ===== */
header {
    background: var(--primary);
    color: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: white;
}

/* ===== AD PLACEHOLDERS ===== */
.ad-slot {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 90px;
    margin: 30px 0;
}

.ad-slot.horizontal {
    min-height: 90px;
}

.ad-slot.sidebar {
    min-height: 250px;
    margin: 0;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    padding: 100px 0 90px;
    text-align: center;
}

.hero h1 {
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.8px;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 580px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* ===== SECTIONS ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-title p {
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

/* ===== FEATURES / CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 10px 30px -8px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.card h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: var(--primary);
    color: white;
    padding: 70px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.page-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* ===== CONTENT LAYOUT ===== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.content-main h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 32px 0 14px;
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main p {
    margin-bottom: 16px;
    color: var(--text);
}

.content-main ul {
    margin: 12px 0 20px 20px;
    color: var(--text);
}

.content-main li {
    margin-bottom: 8px;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 30px;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.service-card a {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-card a:hover {
    text-decoration: underline;
}

/* ===== CONTACT FORM ===== */
.contact-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background: #dcfce7;
    color: #166534;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary);
    color: #94a3b8;
    padding: 50px 0 30px;
    margin-top: 40px;
}

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

.footer-brand h3 {
    color: white;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-links h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 700px) {
    header .container {
        flex-direction: column;
        gap: 16px;
    }

    nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 70px 0 60px;
    }

    section {
        padding: 60px 0;
    }
}
