/* Landing Page Specific Styles - Isolated */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #198754;
    /* Bootstrap Success Green */
    --text-main: #131722;
    --text-secondary: #5d606b;
    /* Slate Gray */
    --bg-color: #ffffff;
    --bg-secondary: #f0f3fa;
    --border-color: #e0e3eb;
    --success-color: #198754;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1200px;
    --header-height: 64px;

    /* New Design Tokens for Renewal */
    --grid-gutter: 24px;
    --section-padding-desktop: 96px;
    --section-padding-mobile: 64px;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 99px;
    /* Pill shape */
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background-color: #157347;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
}

.btn-text {
    color: var(--text-main);
    font-weight: 500;
}

.btn-text:hover {
    color: var(--primary-color);
}

/* Grid System */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gutter);
}

.col-1 {
    grid-column: span 1;
}

.col-2 {
    grid-column: span 2;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-5 {
    grid-column: span 5;
}

.col-6 {
    grid-column: span 6;
}

.col-7 {
    grid-column: span 7;
}

.col-8 {
    grid-column: span 8;
}

.col-9 {
    grid-column: span 9;
}

.col-10 {
    grid-column: span 10;
}

.col-11 {
    grid-column: span 11;
}

.col-12 {
    grid-column: span 12;
}

/* Responsive Sections */
section {
    padding: var(--section-padding-desktop) 0;
    overflow: hidden;
}

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

.flex-column {
    flex-direction: column !important;
}

.align-center {
    align-items: center !important;
}

.justify-center {
    justify-content: center !important;
}

/* Typography Scaling */
h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    font-weight: 700;
}

p {
    font-size: 16px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile) 0;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 14px;
    }

    .grid-12 {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
}

/* Header */
.header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color 0.3s;
}

.header.scrolled {
    border-color: var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-main);
    gap: 8px;
}

.logo svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-color);
}

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

.nav-item {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.nav-item:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Header Actions (Language + Auth) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector */
.match-language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
    transition: background-color 0.2s;
    font-size: 20px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.btn-icon:hover {
    background-color: var(--bg-secondary);
    color: var(--text-main);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    display: none;
    flex-direction: column;
    padding: 8px 0;
    z-index: 100;
}

.lang-dropdown.show {
    display: flex;
}

.lang-item {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-main);
    transition: background-color 0.2s;
    text-decoration: none;
    display: block;
    text-align: left;
}

.lang-item:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.lang-item.active {
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(25, 135, 84, 0.1);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #131722 0%, #5d606b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-container {
    margin-top: 60px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    width: 100%;
    display: block;
    height: auto;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #e6eaff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* New Components for Renewal */

/* Insight Box */
.insight-box {
    background-color: var(--bg-secondary);
    padding: 32px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    margin: 32px 0;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.05) 0%, rgba(19, 23, 34, 0.05) 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

/* Step Flow */
.step-flow {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    position: relative;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 700;
}

/* Grade Cards */
.grade-card-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.grade-card {
    flex: 1;
    min-width: 80px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    background: white;
    border: 1px solid var(--border-color);
}

.grade-card.active {
    border-color: var(--primary-color);
    background: rgba(25, 135, 84, 0.05);
}

.grade-letter {
    font-size: 24px;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

/* Metrics Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.metric-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

/* Pricing Cards */
.pricing-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-teaser-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s;
}

.pricing-teaser-card.pro {
    border-color: var(--primary-color);
    position: relative;
}

.pro-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
}

/* Social Proof / Stats */
.stats {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

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

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    max-width: 300px;
    font-size: 14px;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: #9cb3ce;
    font-size: 13px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simple hiding for first iteration */
    }

    .hero-tagline {
        font-size: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
}