/**
 * Meyil SEO - Modern SaaS Platform Stylesheet
 * Inspired by Meyricks Design Tokens (Slate Navy & Indigo Accents)
 */

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

:root {
    --brand-primary: #4f46e5;
    --brand-primary-light: #6366f1;
    --brand-primary-dark: #3730a3;
    --brand-primary-soft: #eef2ff;
    --brand-primary-border: #c7d2fe;

    --brand-dark: #1e293b;
    --brand-dark-deep: #0f172a;
    --brand-dark-card: #1e293b;
    --brand-dark-border: #334155;

    --brand-title: #0f172a;
    --brand-body: #334155;
    --brand-muted: #64748b;
    --brand-light-bg: #f8fafc;
    --brand-card-bg: #ffffff;
    --brand-border: #e2e8f0;

    --brand-teal: #0d9488;
    --brand-teal-soft: #f0fdfa;
    --brand-amber: #f59e0b;
    --brand-amber-soft: #fffbeb;
    --brand-emerald: #10b981;
    --brand-emerald-soft: #ecfdf5;
    --brand-rose: #f43f5e;
    --brand-rose-soft: #fff1f2;

    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 12px 36px rgba(15, 23, 42, 0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--brand-light-bg);
    color: var(--brand-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img, svg {
    display: inline-block;
    vertical-align: middle;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----------------- TYPOGRAPHY ----------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--brand-title);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--brand-primary-soft);
    border: 1px solid var(--brand-primary-border);
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 38px;
    margin-bottom: 14px;
    color: var(--brand-title);
}

.section-desc {
    font-size: 17px;
    color: var(--brand-muted);
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.text-center { text-align: center; }

/* ----------------- BUTTONS ----------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-dark {
    background-color: var(--brand-dark);
    color: #ffffff;
}

.btn-dark:hover {
    background-color: var(--brand-dark-deep);
    color: #ffffff;
}

.btn-outline {
    background-color: #ffffff;
    color: var(--brand-title);
    border: 1px solid var(--brand-border);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13.5px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* ----------------- HEADER & NAV ----------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 14px 0;
    backdrop-filter: blur(12px);
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-pill);
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    color: var(--brand-title);
    letter-spacing: -0.5px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4f46e5 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.brand-logo span.tag {
    font-size: 10px;
    background: var(--brand-teal-soft);
    color: var(--brand-teal);
    border: 1px solid #99f6e4;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.main-nav a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--brand-body);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--brand-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-muted);
    padding: 6px 12px;
    background: var(--brand-light-bg);
    border-radius: var(--radius-pill);
    border: 1px solid var(--brand-border);
}

/* ----------------- HERO SECTION ----------------- */
.hero-section {
    padding: 70px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, rgba(13, 148, 136, 0.05) 50%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

.hero-pill-announcement {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--brand-border);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    font-size: 13.5px;
    color: var(--brand-body);
}

.hero-pill-badge {
    background: linear-gradient(135deg, #4f46e5, #0d9488);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--brand-muted);
    max-width: 760px;
    margin: 0 auto 36px auto;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* Hero Live Audit Bar */
.hero-analyzer-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-analyzer-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 16px;
    padding: 12px 18px;
    color: var(--brand-title);
    background: transparent;
}

.hero-analyzer-input::placeholder {
    color: #94a3b8;
}

/* ----------------- ADVANCED GEO HIGHLIGHT ----------------- */
.geo-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-xl);
    padding: 36px 44px;
    color: #ffffff;
    margin: 50px 0;
    border: 1px solid #334155;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.geo-banner-title {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 12px;
}

.geo-banner-desc {
    color: #94a3b8;
    font-size: 15.5px;
    margin-bottom: 24px;
}

.geo-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.geo-tech-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.geo-stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.geo-stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
    margin-bottom: 8px;
}

.geo-stat-label {
    font-size: 14px;
    color: #94a3b8;
}

/* ----------------- FEATURE CARDS ----------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary-border);
    transform: translateY(-4px);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
}

.feature-card.featured-ai {
    border: 2px solid var(--brand-primary);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.feature-badge-top {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--brand-emerald-soft);
    color: var(--brand-emerald);
    border: 1px solid #a7f3d0;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--brand-title);
}

.feature-desc {
    font-size: 14.5px;
    color: var(--brand-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.feature-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    font-size: 13.5px;
    color: var(--brand-body);
}

.feature-points li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-points li::before {
    content: "✓";
    color: var(--brand-primary);
    font-weight: 800;
}

/* ----------------- HOW IT WORKS ----------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 50px 0;
}

.step-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    position: relative;
}

.step-number {
    font-size: 44px;
    font-weight: 900;
    color: #e2e8f0;
    position: absolute;
    top: 20px;
    right: 24px;
    line-height: 1;
}

.step-title {
    font-size: 19px;
    margin-bottom: 12px;
    margin-top: 14px;
}

.step-desc {
    font-size: 14.5px;
    color: var(--brand-muted);
}

/* ----------------- METRICS STATS ----------------- */
.stats-strip {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin: 60px 0;
}

.stat-item h3 {
    font-size: 38px;
    font-weight: 800;
    color: var(--brand-title);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 14px;
    color: var(--brand-muted);
    font-weight: 600;
}

/* ----------------- FAQ SECTION ----------------- */
.faq-grid {
    max-width: 840px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-title);
    margin-bottom: 8px;
}

.faq-answer {
    font-size: 14.5px;
    color: var(--brand-body);
    line-height: 1.6;
}

/* ----------------- FOOTER ----------------- */
.site-footer {
    background: var(--brand-dark);
    color: #ffffff;
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--brand-dark-border);
}

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

.footer-brand p {
    color: #94a3b8;
    font-size: 14.5px;
    margin-top: 14px;
    max-width: 340px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid var(--brand-dark-border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: 13.5px;
}

/* ----------------- LOGIN SCREEN ----------------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
}

.auth-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 26px;
    margin-top: 14px;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 14px;
    color: var(--brand-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-title);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--brand-title);
    background: #ffffff;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-badge-notice {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 12.5px;
    color: #475569;
    margin-top: 24px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.alert-error {
    background: var(--brand-rose-soft);
    border: 1px solid #fecdd3;
    color: var(--brand-rose);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ----------------- DASHBOARD ----------------- */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

.dashboard-sidebar {
    width: 270px;
    background: var(--brand-dark);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid #334155;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
}

.sidebar-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-item.active a {
    color: #ffffff;
    background: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.dashboard-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--brand-border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.dashboard-content {
    padding: 32px;
    flex: 1;
}

.dash-panel {
    display: none;
}

.dash-panel.active {
    display: block;
}

.dash-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.dash-stat-card {
    background: #ffffff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.dash-stat-card .val {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-title);
    margin: 6px 0 2px 0;
}

.dash-stat-card .label {
    font-size: 13px;
    color: var(--brand-muted);
    font-weight: 600;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 700;
}

.score-badge.high { background: var(--brand-emerald-soft); color: var(--brand-emerald); }
.score-badge.mid  { background: var(--brand-amber-soft);   color: var(--brand-amber); }
.score-badge.low  { background: var(--brand-rose-soft);    color: var(--brand-rose); }

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--brand-muted);
    border-bottom: 1px solid var(--brand-border);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--brand-title);
}

.data-table tr:hover td {
    background: #f8faff;
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid, .steps-grid, .geo-banner, .stats-strip, .dash-stat-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-layout {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
    }
    .hero-title {
        font-size: 38px;
    }
    .main-nav {
        display: none;
    }
}
