:root {
    --bg: #060607;
    --text: #f6f7f9;
    --muted: #b6bcc8;
    --muted-2: #8c93a1;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #ff6b35;
    --content-width: 1080px;
    --radius: 20px;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* RESET */

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

html,
body {
    background: linear-gradient(180deg, #0c0d10 0%, #060607 100%);
}

body {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        "Helvetica Neue",
        Arial,
        sans-serif;
    color: var(--text);
}

.container {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

img {
    width: 100%;
    display: block;
}

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

.highlight {
    color: var(--accent);
}

/* =========================
   HERO
   ========================= */

.learn-hero {
    padding: 36px 20px 20px;
    text-align: center;
}

.learn-logo {
    display: block;
    margin: 0 auto 28px;
    width: auto;
    max-width: 250px;
}

.learn-hero h1 {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
}

/* =========================
   FEATURES
   ========================= */

.feature-section {
    padding: 28px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-section.reverse .feature-grid {
    direction: rtl;
}

.feature-section.reverse .feature-copy {
    direction: ltr;
}

.feature-copy h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.feature-copy p {
    color: var(--muted);
    margin-bottom: 10px;
    line-height: 1.6;
}

.feature-list {
    padding-left: 20px;
    margin-bottom: 10px;
}

.feature-list li {
    margin-bottom: 6px;
}

/* =========================
   IMAGES
   ========================= */

.feature-visual {
    position: relative;
}

.feature-image {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);

    /* light correction only */
    filter: brightness(0.98) contrast(1.02);
}

/* subtle polish (NOT dark!) */
.feature-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.02),
        rgba(0, 0, 0, 0.08)
    );
    pointer-events: none;
}

/* =========================
   CONTACT
   ========================= */

.contact {
    padding: 24px 20px;
    text-align: center;
}

.contact-intro-strong {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.contact-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.contact-link svg {
    color: var(--accent);
}

/* =========================
   FOOTER
   ========================= */

.footer {
    padding: 20px;
    text-align: center;
}

.footer p {
    color: var(--muted-2);
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-section.reverse .feature-grid {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .learn-hero {
        padding: 24px 16px 16px;
    }
    .learn-logo {
        max-width: 190px;
    }

    .learn-hero h1 {
        font-size: 1.9rem;
    }

    /* 🔥 KEY FIX: tight spacing */
    .feature-section {
        padding: 18px 16px;
    }

    .feature-grid {
        gap: 14px;
    }

    .feature-copy h2 {
        font-size: 1.45rem;
        margin-bottom: 8px;
    }

    .feature-copy p {
        margin-bottom: 8px;
    }

    .feature-list li {
        margin-bottom: 4px;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .learn-logo {
        max-width: 170px;
    }

    .learn-hero h1 {
        font-size: 1.7rem;
    }

    .feature-copy h2 {
        font-size: 1.3rem;
    }
}

/* =========================
   FRONT PAGE (INDEX)
   ========================= */

.hero {
    width: 100%;
    padding: 38px 24px 10px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo {
    margin-bottom: 28px;
}

.logo-img {
    width: auto;
    max-width: 250px;
    height: auto;
}

.hero-copy {
    max-width: 900px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5.2vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
    font-weight: 700;
    text-wrap: balance;
}

.headline-break {
    display: block;
}

.globe-section {
    width: 100%;
    padding: 14px 24px 8px;
}

.globe-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.globe-wrapper {
    position: relative;
    width: min(72vw, 620px);
    max-width: 620px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: globeFloat 6.8s ease-in-out infinite;
}

.glow-ring {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 107, 53, 0.16) 0%,
        rgba(255, 107, 53, 0.08) 32%,
        rgba(255, 107, 53, 0.03) 50%,
        transparent 72%
    );
    filter: blur(16px);
    animation: glowPulse 5.2s ease-in-out infinite;
    pointer-events: none;
}

#globe {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    position: relative;
    z-index: 1;
}

.globe-label {
    position: absolute;
    top: 0;
    left: 0;
    translate: -50% -50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: none;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 11, 15, 0.8);
    backdrop-filter: blur(12px);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity 200ms ease,
        transform 200ms ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    pointer-events: none;
}

.globe-label.visible {
    opacity: 1;
    transform: scale(1);
}

.globe-cta {
    text-align: center;
    margin-top: 18px;
    margin-bottom: 8px;
}

.primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 50px;
    padding: 14px 22px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff7a3a, #ff5e1a);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.25);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.35);
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(0.985);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

@keyframes globeFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 900px) {
    .hero {
        padding-top: 28px;
    }

    .logo-img {
        max-width: 220px;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 7vw, 3.6rem);
    }

    .globe-wrapper {
        width: min(82vw, 520px);
    }

    .globe-label {
        font-size: 0.74rem;
        padding: 7px 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 26px 16px 8px;
    }

    .globe-section {
        padding: 8px 16px 6px;
    }

    .logo {
        margin-bottom: 20px;
    }

    .logo-img {
        max-width: 190px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.15rem;
        line-height: 1.08;
        letter-spacing: -0.04em;
    }

    .headline-break {
        display: none;
    }

    .globe-wrapper {
        width: min(88vw, 340px);
        max-width: 340px;
    }

    .glow-ring {
        inset: 3%;
    }

    .globe-label {
        font-size: 0.68rem;
        line-height: 1.15;
        padding: 5px 7px;
    }

    .globe-cta {
        margin-top: 16px;
    }

    .primary-cta {
        width: calc(100% - 32px);
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 20px;
    }

    .logo-img {
        max-width: 170px;
    }

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

    .globe-wrapper {
        width: min(90vw, 300px);
        max-width: 300px;
    }

    .globe-label {
        font-size: 0.64rem;
        padding: 5px 6px;
    }

    .globe-label--australia,
    .globe-label--central-asia {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .globe-wrapper,
    .glow-ring {
        animation: none;
    }

    .globe-label,
    .primary-cta {
        transition: none;
    }
}
