:root {
    scroll-behavior: smooth;
    --primary-blue: #0284C7;
    --primary-dark: #0369A1;
    --text-main: #111111;
    --text-secondary: #555555;
    --text-light: #999999;
    --bg-light: #F8FBFF;
    --white: #FFFFFF;
    --badge-bg: #EAF6FF;
    --badge-text: #0284C7;
    --success-bg: #E1FCEF;
    --success-text: #0F9D58;
    --process-bg: #EAF6FF;
    --process-text: #0284C7;
    --card-shadow: 0 20px 60px rgba(0, 50, 100, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Background Gradients */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100vh;
    background: radial-gradient(circle at top left, #F0F8FF 0%, transparent 70%);
    z-index: -1;
}

body::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, #E1F2FF 0%, transparent 60%);
    z-index: -1;
    opacity: 0.6;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 16px 0;
    /* Reduced slightly for compact sticky feel */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
}

.logo-subtitle {
    font-weight: 400;
    font-size: 14px;
    color: var(--primary-blue);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.btn {
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Fix for <a> tags */
}

.btn-primary-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 24px;
}

.btn-primary-header:hover {
    background-color: var(--primary-dark);
}

/* Hero */
.hero {
    padding-top: 140px;
    /* Compensate for fixed header */
    padding-bottom: 100px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-blue);
    border-radius: 50%;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
}

.highlight-text {
    color: var(--primary-blue);
    position: relative;
    white-space: nowrap;
}

.underline-svg {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 12px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    /* Renamed from .btn-primary-hero */
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 16px 32px;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(0, 133, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: var(--white);
    color: var(--text-main);
    border: 1px solid #E0E0E0;
    padding: 16px 32px;
    font-size: 16px;
}

.btn-outline:hover {
    border-color: #CCCCCC;
    background-color: #F8FBFF;
}

/* Hero Visual - Cards */
.hero-visual {
    position: relative;
    width: 500px;
}

.status-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    width: 100%;
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.card-title-group {
    display: flex;
    gap: 12px;
}

.icon-shield {
    width: 40px;
    height: 40px;
    background-color: #EFF8FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.card-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.card-sublabel {
    font-size: 12px;
    color: #0F9D58;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 4px;
    height: 4px;
    background-color: #0F9D58;
    border-radius: 50%;
}

.card-balance {
    text-align: right;
}

.balance-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.list-item.active-item {
    background-color: #F8FBFF;
    border: 1px solid #EFF8FF;
}

.item-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background-color: #F5F7FA;
    border: 1px solid #EEEEEE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    margin-right: 12px;
}

.list-item.active-item .item-icon-wrapper {
    background-color: var(--white);
    color: var(--primary-blue);
}

.item-text {
    flex-grow: 1;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.status-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge.success {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.status-badge.process {
    background-color: var(--process-bg);
    color: var(--process-text);
}

/* Floating Notification */
.floating-notification {
    position: absolute;
    bottom: -20px;
    right: -30px;
    background-color: var(--white);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.notif-icon-check {
    width: 24px;
    height: 24px;
    background-color: #D1FCDF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-icon-check svg {
    stroke: #0F9D58;
}

.notif-content {
    line-height: 1.2;
}

.notif-title {
    font-size: 11px;
    color: var(--text-light);
}

.notif-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
    }
}

/* Hero Features List */
.hero-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 24px;
}

.hero-features-list li {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-secondary);
    list-style-type: disc;
}


/* Stats Section */
.stats {
    padding-bottom: 150px;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 40px;
    /* Extra padding to match look */
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    /* Extra bold */
    color: var(--text-main);
    /* Black */
    margin-bottom: 12px;
    line-height: 1;
    font-family: 'Inter', sans-serif;
    /* Ensure standard font */
    letter-spacing: -1px;
    /* Tighter tracking for large numbers */
}

.stat-text {
    font-size: 16px;
    color: var(--text-secondary);
    /* Gray */
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 40px;
    }
}

/* Services Section */
.services {
    padding: 100px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-main);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
}

.service-card {
    position: relative;
    padding-top: 20px;
}

.service-number {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-blue);
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1;
    opacity: 0.15;
    /* Lighter opacity for background number feel */
}

.service-content {
    padding-right: 60px;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-right: 80px;
}

.service-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.service-block {
    margin-bottom: 20px;
}

.service-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Constructor Section */
.constructor-section {
    padding: 100px 0;
    background-color: #F8FBFF;
    /* Light background to separate from white sections */
    overflow: hidden;
    /* For floating elements */
}

.constructor-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.constructor-content {
    flex: 1;
    max-width: 550px;
}

.constructor-label {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.constructor-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.2;
}

.constructor-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Visual / Animation - Configurator Card */
.constructor-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 40px 0;
}

.config-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 50, 150, 0.1);
    width: 380px;
    position: relative;
    z-index: 10;
}

.config-header {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #FF5F56;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #27C93F;
}

.config-row {
    background: #F9FAFC;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.5s forwards;
}

.config-row.slide-in-1 {
    animation-delay: 0.5s;
}

.config-row.slide-in-2 {
    animation-delay: 1.0s;
}

.config-row.slide-in-3 {
    animation-delay: 1.5s;
}

.config-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.config-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.config-status {
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 0.5s forwards 2.0s;
}

.loading-bar {
    height: 4px;
    background: #EAEAEA;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.loading-progress {
    height: 100%;
    background: var(--primary-blue);
    width: 0%;
    animation: fillProgress 1.5s ease-in-out forwards 2.0s;
}

.status-text {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

.done-text {
    color: #0F9D58;
    font-weight: 700;
    opacity: 0;
    animation: fadeIn 0.3s forwards 3.5s;
}

.config-result {
    margin-top: 20px;
    background: #0284C7;
    color: white;
    padding: 16px;
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.9);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 3.6s;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 14px;
}

.result-row:last-child {
    margin-bottom: 0;
}

/* Floating decorations */
.float-card {
    position: absolute;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-secondary);
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    top: 20%;
    left: -20px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 2s;
}

/* Animations */
@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fillProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 900px) {
    .constructor-container {
        flex-direction: column;
    }

    .constructor-visual {
        width: 100%;
        padding: 0;
    }

    .config-card {
        width: 100%;
    }
}

.service-list-new {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.service-list-new li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    /* More spacing for paragraphs */
    position: relative;
    padding-left: 16px;
    line-height: 1.5;
}

.service-list-new li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
    top: 0;
    /* Align top for multi-line text */
}

.service-list-new strong {
    color: var(--text-main);
    font-weight: 600;
}

.btn-outline-small {
    background: transparent;
    border: 1px solid #E0E0E0;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 50px;
    /* Match main buttons rounded style */
    color: var(--text-main);
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-small:hover {
    border-color: #CCCCCC;
    background: #F8FBFF;
    color: var(--primary-blue);
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .service-card-full {
        grid-column: span 1;
        /* Reset on mobile */
    }
}

/* Process Section */
.process {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
    /* Prevent scrollbar if lines go out */
}

.process-wrapper {
    position: relative;
    width: 100%;
    /* max-width: 1000px; */
    height: 800px;
    /* Fixed height for SVG coordinates */
    margin: 60px auto 0;
}

.process-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connection-path {
    stroke-dasharray: 10;
    animation: dash 60s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

.process-step {
    position: absolute;
    z-index: 2;
    width: 320px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}

/* Zigzag positioning matching SVG path approximation */
.step-1 {
    top: 60px;
    left: 10%;
}

.step-2 {
    top: 60px;
    right: 10%;
}

.step-3 {
    top: 260px;
    right: 10%;
}

.step-4 {
    top: 260px;
    left: 10%;
}

.step-5 {
    top: 460px;
    left: 10%;
}

.step-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
    background: rgba(0, 163, 255, 0.1);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .process-wrapper {
        height: auto;
        margin-top: 40px;
    }

    .process-lines {
        display: none;
        /* Hide complex lines on mobile */
    }

    .process-step {
        position: relative;
        width: 100%;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
}

/* Map Styles */
/* --- Global Presence Section --- */

.map-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    min-height: 500px;
}

/* Sidebar Navigation */
.map-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
    flex-shrink: 0;
}

.region-btn {
    background: #FFFFFF;
    border: 1px solid transparent;
    padding: 18px 24px;
    border-radius: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.region-btn:hover {
    background: #F8FAFC;
    color: var(--primary-blue);
    transform: translateX(4px);
}

.region-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 163, 255, 0.25);
    transform: translateX(8px);
}

/* Right Content Area */
.gp-content-area {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 500px;
}

/* 1. Hero Card (World View) */
.gp-hero-card {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background: radial-gradient(130% 140% at 0% 0%, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 50, 120, 0.15);
    color: white;
    overflow: hidden;
}

.gp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-opacity='0.05' fill='%23ffffff' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

/* Globe Animation Styles */
.gp-hero-animation {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: 1;
}

.globe-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
}

.globe-sphere {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 70%);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1) inset;
    animation: pulseGlobe 4s ease-in-out infinite alternate;
}

.globe-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.ring-1 {
    width: 240px;
    height: 240px;
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotateX(70deg);
    animation: rotateRing1 12s linear infinite;
}

.ring-2 {
    width: 220px;
    height: 220px;
    border-color: rgba(255, 255, 255, 0.15);
    transform: rotateX(60deg) rotateY(45deg);
    animation: rotateRing2 15s linear infinite reverse;
}

.ring-3 {
    width: 260px;
    height: 260px;
    border-color: rgba(255, 255, 255, 0.1);
    transform: rotateX(80deg) rotateY(-45deg);
    animation: rotateRing3 20s linear infinite;
}

.globe-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.p-1 {
    top: 50%;
    left: 50%;
    animation: orbit1 6s linear infinite;
}

.p-2 {
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    animation: orbit2 8s linear infinite reverse;
}

.p-3 {
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    opacity: 0.7;
    animation: orbit3 10s linear infinite;
}

@keyframes pulseGlobe {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

@keyframes rotateRing1 {
    0% {
        transform: rotateX(70deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(70deg) rotateZ(360deg);
    }
}

@keyframes rotateRing2 {
    0% {
        transform: rotateX(60deg) rotateY(45deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(60deg) rotateY(45deg) rotateZ(360deg);
    }
}

@keyframes rotateRing3 {
    0% {
        transform: rotateX(80deg) rotateY(-45deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(80deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes orbit1 {
    0% {
        transform: rotateZ(0deg) translateX(120px) rotateZ(0deg);
    }

    100% {
        transform: rotateZ(360deg) translateX(120px) rotateZ(-360deg);
    }
}

@keyframes orbit2 {
    0% {
        transform: rotateZ(120deg) translateX(110px) rotateZ(0deg);
    }

    100% {
        transform: rotateZ(480deg) translateX(110px) rotateZ(-360deg);
    }
}

@keyframes orbit3 {
    0% {
        transform: rotateZ(240deg) translateX(130px) rotateZ(0deg);
    }

    100% {
        transform: rotateZ(600deg) translateX(130px) rotateZ(-360deg);
    }
}

.gp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.gp-hero-number {
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(to right, #FFFFFF, #E0F2FE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.gp-hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.gp-hero-desc {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 450px;
    color: white;
    margin: 0;
}

/* 2. Bento Grid (Region View) */
.gp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .gp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gp-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        flex-direction: column;
    }

    .map-controls {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .region-btn {
        min-width: 120px;
        white-space: nowrap;
    }
}

.gp-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
    /* For overlay clipping */
}

.gp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}



/* Mobile Navigation & Responsive Styles */

/* Safety Net for overflow */
img,
svg,
video {
    max-width: 100%;
    height: auto;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* 1. Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    /* Higher Z-index */
    padding: 10px;
    /* Larger touch area */
    margin-right: -10px;
    /* Align with container edge */
}

.mobile-menu-btn span {
    width: 28px;
    /* Slightly wider */
    height: 3px;
    /* Slightly thicker */
    background-color: #111111;
    /* Explicit black */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Active State (X) */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* 2. Media Queries */
@media (max-width: 1024px) {
    /* Increased breakpoint to catch Tablets */

    /* Header & Nav */
    .mobile-menu-btn {
        display: flex !important;
    }

    .nav {
        position: fixed;
        /* Fixed to cover screen */
        top: 70px;
        /* Below header */
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        border-top: 1px solid #f0f0f0;
        transform: translateX(100%);
        /* Slide from side */
        opacity: 1;
        pointer-events: auto;
        transition: transform 0.3s ease-in-out;
        box-shadow: none;
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 20px;
        text-align: center;
        border-bottom: 1px solid #f9f9f9;
        padding-bottom: 15px;
    }

    .logo-text img {
        height: 48px !important;
        /* Smaller logo on mobile */
    }

    .header-cta {
        display: none !important;
    }

    /* Map Section Stacking */
    .map-container {
        flex-direction: column;
    }

    .map-controls {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }



    /* Hero Section */
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-container {
        flex-direction: column-reverse;
        /* Visual top, text bottom? or standard stack? Standard: Text top. */
        flex-direction: column;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 32px;
        /* Reduced from 40px for cleaner look */
        line-height: 1.2;
    }

    .hero-badge {
        margin: 0 auto 16px auto;
    }

    .hero-features-list {
        text-align: left;
        /* Keep bullets aligned left */
        display: inline-block;
        /* Allow centering the block itself */
        margin-bottom: 32px;
        padding-left: 20px;
        /* Ensure space for bullets */
    }

    .hero-description {
        margin: 0 auto 24px auto;
        font-size: 16px;
    }

    .hero-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Stats Section */
    .stats-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
        /* Stack columns on mobile */
        gap: 24px !important;
    }

    /* Fix Service Number Overflow */
    .service-number {
        font-size: 48px;
        right: 20px;
        /* Move away from edge */
        top: 0;
    }

    .service-title {
        padding-right: 40px;
        /* Adjust padding to avoid overlap */
        font-size: 24px;
    }

    /* Stack Footer and Contacts */
    .footer-grid,
    .about-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 40px !important;
    }

    .contacts-list {
        flex-direction: column;
        gap: 20px !important;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px !important;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px !important;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

.gp-card-overlay {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-top {
    top: 0;
    transform: translateY(-100%);
    border-bottom: 1px solid #F1F5F9;
    background: linear-gradient(to bottom, #FFFFFF, #F8FAFC);
}

.gp-card:hover .overlay-top {
    transform: translateY(0);
}

.overlay-bottom {
    bottom: 0;
    transform: translateY(100%);
    border-top: 1px solid #F1F5F9;
    background: linear-gradient(to top, #FFFFFF, #F8FAFC);
}

.gp-card:hover .overlay-bottom {
    transform: translateY(0);
}

.overlay-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.overlay-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Flag & Name Styles */
.gp-flag-img {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Registration Page Header Override */
.page-header .hero-title {
    font-size: 40px;
    /* Match .section-title */
    font-weight: 700;
}

/* New Country Card Design (Fixed & Polished) */
/* New Country Card Design (Fixed & Polished) */
.gp-card-wrapper {
    position: relative;
    width: 180px;
    /* Reduced from 220px */
    height: 100px;
    /* Reduced from 120px */
    margin: 0 auto;
    perspective: 1000px;
    z-index: 1;
    /* Default stack context */
    transition: z-index 0s linear 0.4s;
    /* Delay lowering z-index */
}

/* Ensure hovered wrapper stays on top of grid siblings */
.gp-card-wrapper:hover {
    z-index: 100;
    transition-delay: 0s;
}

/* The Grid */
.gp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Reduced minmax to 200px */
    gap: 60px 15px;
    /* Significantly reduced vertical gap from 100px */
    padding: 20px;
    /* Reduced padding */
}

/* 1. TOP CARD (Main) */
.gp-card-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    /* Slightly smaller radius */
    background: var(--bg-light);
    color: var(--text-main);
    z-index: 10;
    /* Always on top of details */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

/* Hover: Lift main card slightly */
.gp-card-wrapper:hover .gp-card-main {
    transform: translateY(-5px);
    background: #FFFFFF;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-bottom-left-radius: 0;
    /* Connect visually if needed, but stacked look is better */
    border-bottom-right-radius: 0;
}

/* 2. BOTTOM CARD (Details - Slides Down) */
.gp-card-details {
    position: absolute;
    top: 0;
    left: 2%;
    /* Slightly smaller width for stacked look */
    width: 96%;
    height: 100%;
    /* Start same height hidden behind */
    background: white;
    border-radius: 20px;
    z-index: 5;
    /* Behind main */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 105px;
    /* Increased to clear the 100px main card properly */
}

/* Hover: Expand Details Down */
.gp-card-wrapper:hover .gp-card-details {
    height: 240px;
    /* Increased from 220px to prevent bottom overlap */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    /* Deep shadow */
}

/* 3. ACCENT BAR (Distinct Block) */
.gp-card-accent {
    position: absolute;
    bottom: 15px;
    /* Floating block style */
    left: 10%;
    width: 80%;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 10px;
    opacity: 0;
    transform: scaleX(0.5);
    transition: all 0.4s ease 0.1s;
}

.gp-card-wrapper:hover .gp-card-accent {
    opacity: 1;
    transform: scaleX(1);
}

/* Content */
.gp-card-main-content {
    text-align: center;
    z-index: 2;
}

.gp-card-flag {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.gp-card-title {
    font-size: 18px;
    font-weight: 700;
}

.gp-card-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 600;
}

/* Content inside Details */
.gp-details-content {
    padding: 15px 15px;
    /* Reduced from 20px 24px */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

.gp-card-wrapper:hover .gp-details-content {
    opacity: 1;
    transform: translateY(0);
}

.gp-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    /* Reduced from 12px */
    font-size: 13px;
    /* Reduced from 14px */
    border-bottom: 1px dashed #F0F0F0;
    padding-bottom: 6px;
    /* Reduced from 8px */
}

.gp-info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.gp-info-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.gp-info-value {
    color: var(--text-main);
    font-weight: 700;
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* -----------------------------------------------------------------------------
   CALCULATOR UI STYLES (Polished Slate Theme)
   ----------------------------------------------------------------------------- */
.code-editor-style {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* More spacing between groups */
    padding: 10px 0;
}

.config-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Gap between Label and Input */
}

.config-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    /* Slate-500 (Soft Grey) */
    margin-left: 2px;
}

.config-select {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    /* Slate-200 */
    border-radius: 12px;
    color: #334155;
    /* Slate-700 (Softer than black) */
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

    /* Custom Arrow (Slate-400) */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.config-select:hover {
    border-color: #CBD5E1;
    /* Slate-300 */
    background-color: #F8FAFC;
    /* Slate-50 */
}

.config-select:focus {
    border-color: var(--primary-blue);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
    /* Blue Ring */
}

.config-select option {
    background-color: #FFFFFF;
    color: #1E293B;
    /* Slate-800 */
    padding: 12px;
}

.config-divider {
    height: 1px;
    background: #E2E8F0;
    /* Light divider */
    margin: 30px 0;
}

.config-result-live {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-label {
    font-size: 13px;
    color: #64748B;
    /* Slate-500 */
    font-weight: 500;
}

.result-value {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    /* Slate-800 */
}

.result-value.highlight {
    color: var(--success-text);
    /* Use brand success green */
    font-size: 24px;
}