/* ===== Custom Properties ===== */
:root {
    --primary: #006a4e;
    --primary-dark: #004d38;
    --primary-light: #e6f2ee;
    --accent: #f42a41;
    --surface: #fafaf9;
    --surface-alt: #f0eeeb;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --text-light: #9a9a9a;
    --dark-bg: #111111;
    --dark-surface: #1a1a1a;
    --border: #e5e3e0;
    --radius: 10px;
    --radius-lg: 16px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-header {
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-header--light h2 { color: #fff; }
.section-header--light p { color: #888; }

/* ===== Navigation ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

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

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

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary);
    transition: width 0.2s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #004d38 0%, #006a4e 40%, #008060 100%);
    overflow: hidden;
}

.hero-track-lines {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 120px;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 28px,
            rgba(255, 255, 255, 0.06) 28px,
            rgba(255, 255, 255, 0.06) 30px
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            transparent 45%,
            rgba(255, 255, 255, 0.08) 45%,
            rgba(255, 255, 255, 0.08) 47%,
            transparent 47%,
            transparent 53%,
            rgba(255, 255, 255, 0.08) 53%,
            rgba(255, 255, 255, 0.08) 55%,
            transparent 55%
        );
    animation: trackSlide 12s linear infinite;
}

@keyframes trackSlide {
    from { transform: translateX(0); }
    to { transform: translateX(30px); }
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 80px 0 140px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.55);
    max-width: 520px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ===== Stats ===== */
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    padding-bottom: 24px;
}

.stats-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 36px 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    position: relative;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border);
}

.stat-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== Routes ===== */
.routes-section {
    background: var(--surface);
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.route-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    border-left: 4px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.route-card--red { border-left-color: var(--accent); }
.route-card--blue { border-left-color: #3b82f6; }
.route-card--amber { border-left-color: #d97706; }
.route-card--purple { border-left-color: #8b5cf6; }

.route-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.route-from,
.route-to {
    font-size: 1.15rem;
    font-weight: 700;
}

.route-arrow {
    color: var(--text-light);
    flex-shrink: 0;
}

.route-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.meta-dot {
    width: 3px;
    height: 3px;
    background: var(--text-light);
    border-radius: 50%;
}

.route-trains {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.train-pill {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--surface-alt);
    border-radius: 20px;
    color: var(--text-muted);
}

/* ===== Train Classes ===== */
.classes-section {
    background: var(--surface-alt);
}

.class-tier {
    margin-bottom: 40px;
}

.class-tier:last-child {
    margin-bottom: 0;
}

.tier-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-left: 4px;
}

.tier-label--premium { color: var(--primary); }
.tier-label--standard { color: var(--text-muted); }
.tier-label--economy { color: var(--text-light); }

.class-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.class-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.class-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.class-card--premium {
    border-color: transparent;
    border-top: 2px solid var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.class-card-icon {
    color: var(--primary);
    margin-bottom: 14px;
}

.class-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.class-card-bn {
    font-size: 0.88rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.class-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== Overview ===== */
.overview-section {
    background: var(--surface);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items: start;
}

.overview-text h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.overview-bn {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.overview-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.overview-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.fact-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.fact-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 4px;
}

.fact-detail {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ===== Coming Soon ===== */
.coming-soon-section {
    background: var(--dark-bg);
}

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

.feature-card {
    background: var(--dark-surface);
    border: 1px solid #2a2a2a;
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    border-color: #333;
    box-shadow: 0 0 24px rgba(0, 106, 78, 0.08);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 18px;
    opacity: 0.9;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feature-badge--dev {
    background: rgba(0, 106, 78, 0.15);
    color: #2dd4a0;
}

.feature-badge--planned {
    background: rgba(255, 255, 255, 0.06);
    color: #666;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid #222;
    padding: 64px 0 32px;
}

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

.footer-logo {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

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

.footer-brand p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 16px;
}

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

.footer-col a {
    font-size: 0.9rem;
    color: #666;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #222;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: #555;
}

/* ===== Language Toggle ===== */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-left: 8px;
    flex-shrink: 0;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    transition: background 0.2s, color 0.2s;
}

.lang-btn:first-child {
    border-right: 1.5px solid var(--border);
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
}


.lang-btn:not(.active):hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 249, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a::after {
        display: none;
    }

    .lang-toggle {
        order: 1;
        margin-left: auto;
        margin-right: 8px;
    }

    .nav-toggle {
        order: 2;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    /* Stats */
    .stats-card {
        grid-template-columns: 1fr 1fr;
        padding: 24px 0;
        gap: 20px;
    }

    .stat:not(:last-child)::after {
        display: none;
    }

    .stat {
        padding: 8px 16px;
    }

    /* Routes */
    .routes-grid {
        grid-template-columns: 1fr;
    }

    /* Overview */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 60px 0 120px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .overview-facts {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
