@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap');

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

:root {
    --primary: #0a2e4a;
    --secondary: #0d4f7a;
    --accent: #e67e22;
    --gold: #d4a017;
    --light: #f0f7ff;
    --dark: #061c2e;
    --text: #1a2b3c;
    --text-light: #5a7a8a;
    --white: #ffffff;
    --sand: #f5e6c8;
    --border: #c8dce8;
    --shadow: 0 4px 20px rgba(10,46,74,0.12);
    --radius: 12px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.7;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
    line-height: 1.3;
    letter-spacing: 0.5px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* NAV */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    font-size: 0.82rem;
    padding: 6px 0;
    text-align: center;
    letter-spacing: 0.3px;
}
.top-bar a { color: var(--gold); }

header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, var(--secondary) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(230,126,34,0.4);
}
.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}
.logo-text span { color: var(--accent); }
.logo-sub { font-size: 0.65rem; color: rgba(255,255,255,0.5); letter-spacing: 2px; text-transform: uppercase; }

nav { display: flex; gap: 4px; align-items: center; }
nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s;
}
nav a:hover, nav a.active {
    background: rgba(230,126,34,0.25);
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* HERO */
.hero {
    background: linear-gradient(170deg, var(--dark) 0%, var(--primary) 40%, #0a5a8a 100%);
    color: var(--white);
    padding: 72px 24px 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,149.3C672,149,768,203,864,218.7C960,235,1056,213,1152,181.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom/cover;
    pointer-events: none;
}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(230,126,34,0.2);
    border: 1px solid rgba(230,126,34,0.4);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 700;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
    line-height: 1.8;
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 1px; }

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(230,126,34,0.35);
}
.btn-primary:hover { background: #c96d15; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,126,34,0.45); color: var(--white); }
.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); color: var(--white); border-color: rgba(255,255,255,0.4); }

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-graphic {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,79,122,0.6) 0%, rgba(10,46,74,0.3) 70%);
    border: 2px solid rgba(230,126,34,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-graphic::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px dashed rgba(212,160,23,0.25);
    animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-emoji { font-size: 6rem; }

/* SECTION STYLES */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px;
}
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.section-subtitle { color: var(--accent); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }

/* TOOLS GRID */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.tool-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}
.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(230,126,34,0.15);
}
.tool-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.tool-card h3 {
    font-size: 1rem;
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}
.tool-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    flex: 1;
}
.tool-card .tool-link {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

/* ARTICLES GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(10,46,74,0.15);
}
.article-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.article-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.article-tag {
    display: inline-block;
    background: rgba(10,46,74,0.08);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
}
.article-card h3 {
    font-size: 1.05rem;
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
    line-height: 1.4;
}
.article-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; flex: 1; }
.article-meta { font-size: 0.75rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; }

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.feature-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }

/* WAVE DIVIDER */
.wave-divider {
    height: 60px;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
.wave-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--light);
    clip-path: ellipse(60% 100% at 50% 100%);
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 80px 24px;
    text-align: center;
}
.cta-section h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 28px; }

/* FOOTER */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 50px 24px 24px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { margin-top: 12px; font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
    max-width: 1280px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 10px;
}

/* TOOL PAGE */
.tool-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
}
.tool-page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    padding: 40px;
    color: var(--white);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.tool-page-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}
.tool-page h1 { color: var(--white); font-size: 1.8rem; margin-bottom: 8px; }
.tool-page p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.tool-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* FORMS */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    margin-bottom: 6px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s;
    background: var(--white);
    color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230,126,34,0.1);
}
.calc-btn {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}
.calc-btn:hover { background: #c96d15; transform: translateY(-1px); }
.result-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 24px;
    text-align: center;
}
.result-box h3 { color: var(--white); font-size: 1rem; margin-bottom: 8px; opacity: 0.8; }
.result-box .result-value { font-family: 'Oswald', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--accent); }

/* ARTICLE PAGE */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}
.article-page-header { margin-bottom: 32px; }
.article-page-header h1 { font-size: 2.2rem; margin-bottom: 16px; }
.article-featured-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 32px;
}
.article-body-text { font-size: 1.05rem; line-height: 1.9; color: var(--text); }
.article-body-text h2 { font-size: 1.6rem; margin: 32px 0 14px; color: var(--primary); }
.article-body-text h3 { font-size: 1.25rem; margin: 24px 0 10px; color: var(--primary); }
.article-body-text p { margin-bottom: 18px; }
.article-body-text ul, .article-body-text ol { margin: 16px 0 18px 24px; }
.article-body-text li { margin-bottom: 8px; }
.article-body-text img { border-radius: var(--radius); margin: 20px 0; }
.article-body-text blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    background: rgba(230,126,34,0.06);
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-style: italic;
}

/* SIDEBAR */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
}
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { margin-bottom: 8px; }
.sidebar-widget ul li a { color: var(--text); font-size: 0.88rem; display: flex; justify-content: space-between; align-items: center; }
.sidebar-widget ul li a:hover { color: var(--accent); }
.sidebar-widget ul li a span { font-size: 0.72rem; color: var(--text-light); }

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text-light); }

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: var(--white);
    padding: 48px 24px;
    text-align: center;
}
.page-header h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.7); }

/* SITEMAP */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.sitemap-col h3 { font-size: 1rem; margin-bottom: 12px; color: var(--primary); }
.sitemap-col ul { list-style: none; }
.sitemap-col ul li { margin-bottom: 6px; }
.sitemap-col ul li a { color: var(--text); font-size: 0.88rem; }
.sitemap-col ul li a:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-stats { justify-content: center; }
    .hero-cta { justify-content: center; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .layout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .top-bar { font-size: 0.72rem; }
    .header-inner { height: 56px; }
    nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 12px; gap: 2px; }
    nav.open { display: flex; }
    nav a { padding: 10px 14px; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 16px; }
    .section { padding: 40px 16px; }
    .footer-inner { grid-template-columns: 1fr; }
    .tool-page-header { flex-direction: column; text-align: center; padding: 24px; }
}

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* UTILITY */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.text-accent { color: var(--accent); }
.text-light { color: var(--text-light); }
.bg-white { background: var(--white); }
.p-6 { padding: 24px; }
.rounded { border-radius: var(--radius); }
.border { border: 1px solid var(--border); }
.shadow { box-shadow: var(--shadow); }

/* AFFILIATE NOTICE */
.affiliate-notice {
    background: rgba(212,160,23,0.1);
    border: 1px solid rgba(212,160,23,0.3);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 16px;
}
.affiliate-notice strong { color: var(--primary); }

/* PROSE */
.prose { max-width: 720px; margin: 0 auto; }
