/* =========================================================
   IsWhere Neo Atlas Design System
========================================================= */

:root {
    --iw-primary: #0f172a;
    --iw-primary-soft: #1e293b;

    --iw-blue: #2563eb;
    --iw-blue-dark: #1d4ed8;
    --iw-coral: #fc5b62;
    --iw-coral-dark: #e54850;
    --iw-teal: #14b8a6;
    --iw-gold: #f59e0b;

    --iw-bg: #f8fafc;
    --iw-bg-soft: #f1f5f9;
    --iw-surface: #ffffff;
    --iw-surface-soft: #fbfdff;
    --iw-surface-glass: rgba(255, 255, 255, 0.82);

    --iw-border: #e2e8f0;
    --iw-border-soft: rgba(226, 232, 240, 0.72);

    --iw-text: #0f172a;
    --iw-muted: #64748b;
    --iw-muted-dark: #475569;
    --iw-light: #ffffff;

    --iw-gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 52%, #2563eb 100%);
    --iw-gradient-coral: linear-gradient(135deg, #fc5b62 0%, #ff7a7f 100%);
    --iw-gradient-aurora: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
    --iw-gradient-soft: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

    --iw-shadow-xs: 0 4px 12px rgba(15, 23, 42, 0.06);
    --iw-shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --iw-shadow-card: 0 20px 60px rgba(15, 23, 42, 0.1);
    --iw-shadow-coral: 0 16px 34px rgba(252, 91, 98, 0.28);
    --iw-shadow-blue: 0 16px 34px rgba(37, 99, 235, 0.24);

    --iw-radius-sm: 10px;
    --iw-radius-md: 16px;
    --iw-radius-lg: 24px;
    --iw-radius-xl: 32px;
    --iw-radius-pill: 999px;

    --iw-header-height: 76px;
    --iw-container: 1240px;
}

/* =========================================================
   Base
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--iw-text);
    background: var(--iw-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
    color: var(--iw-text);
    letter-spacing: -0.02em;
}

a {
    color: var(--iw-blue);
    text-decoration: none;
    transition: color 0.22s ease;
}

a:hover {
    color: var(--iw-coral);
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* =========================================================
   Layout Helpers
========================================================= */

.iw-container {
    width: min(var(--iw-container), calc(100vw - 40px));
    margin-left: auto;
    margin-right: auto;
}

.iw-section {
    padding: 88px 0;
}

.iw-section-sm {
    padding: 56px 0;
}

.iw-section-title {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.iw-section-title .iw-kicker {
    margin-bottom: 12px;
}

.iw-section-title h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    font-weight: 800;
}

.iw-section-title p {
    margin: 16px auto 0;
    max-width: 680px;
    color: var(--iw-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* =========================================================
   Text Utilities
========================================================= */

.iw-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--iw-coral);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.iw-kicker::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: var(--iw-radius-pill);
    background: var(--iw-gradient-coral);
}

.iw-muted {
    color: var(--iw-muted);
}

.iw-text-gradient {
    background: var(--iw-gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =========================================================
   Buttons
========================================================= */

.iw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--iw-radius-pill);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease,
        border-color 0.22s ease, color 0.22s ease;
}

.iw-btn:hover {
    transform: translateY(-2px);
}

.iw-btn-primary {
    color: #ffffff !important;
    background: var(--iw-gradient-coral);
    box-shadow: var(--iw-shadow-coral);
}

.iw-btn-primary:hover {
    color: #ffffff !important;
    box-shadow: 0 20px 44px rgba(252, 91, 98, 0.34);
}

.iw-btn-blue {
    color: #ffffff !important;
    background: var(--iw-gradient-aurora);
    box-shadow: var(--iw-shadow-blue);
}

.iw-btn-blue:hover {
    color: #ffffff !important;
}

.iw-btn-outline {
    color: var(--iw-primary) !important;
    background: #ffffff;
    border-color: var(--iw-border);
    box-shadow: var(--iw-shadow-xs);
}

.iw-btn-outline:hover {
    color: var(--iw-blue) !important;
    border-color: rgba(37, 99, 235, 0.26);
    box-shadow: var(--iw-shadow-soft);
}

.iw-btn-glass {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.iw-btn-glass:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
}

/* =========================================================
   Cards
========================================================= */

.iw-card {
    background: var(--iw-surface);
    border: 1px solid var(--iw-border-soft);
    border-radius: var(--iw-radius-lg);
    box-shadow: var(--iw-shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.iw-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: var(--iw-shadow-card);
}

.iw-glass-card {
    background: var(--iw-surface-glass);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--iw-radius-lg);
    box-shadow: var(--iw-shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* =========================================================
   Badges / Chips
========================================================= */

.iw-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: var(--iw-radius-pill);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    background: var(--iw-bg-soft);
    color: var(--iw-muted-dark);
    border: 1px solid var(--iw-border);
}

.iw-chip-coral {
    background: rgba(252, 91, 98, 0.1);
    color: var(--iw-coral);
    border-color: rgba(252, 91, 98, 0.2);
}

.iw-chip-blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--iw-blue);
    border-color: rgba(37, 99, 235, 0.2);
}

.iw-chip-teal {
    background: rgba(20, 184, 166, 0.1);
    color: var(--iw-teal);
    border-color: rgba(20, 184, 166, 0.2);
}

.iw-chip-gold {
    background: rgba(245, 158, 11, 0.12);
    color: var(--iw-gold);
    border-color: rgba(245, 158, 11, 0.22);
}

/* =========================================================
   Forms
========================================================= */

.iw-input,
.iw-select,
.iw-textarea {
    width: 100%;
    border: 1px solid var(--iw-border);
    border-radius: var(--iw-radius-md);
    background: #ffffff;
    color: var(--iw-text);
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.iw-input,
.iw-select {
    height: 52px;
    padding: 0 16px;
}

.iw-textarea {
    min-height: 130px;
    padding: 14px 16px;
    resize: vertical;
}

.iw-input:focus,
.iw-select:focus,
.iw-textarea:focus {
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* =========================================================
   Background Effects
========================================================= */

.iw-aurora-bg {
    position: relative;
    overflow: hidden;
    background: var(--iw-gradient-hero);
}

.iw-aurora-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
            circle at 16% 20%,
            rgba(37, 99, 235, 0.45) 0%,
            rgba(37, 99, 235, 0) 28%
        ),
        radial-gradient(circle at 78% 22%, rgba(20, 184, 166, 0.28) 0%, rgba(20, 184, 166, 0) 25%),
        radial-gradient(circle at 70% 78%, rgba(252, 91, 98, 0.22) 0%, rgba(252, 91, 98, 0) 24%);
}

.iw-grid-bg {
    position: relative;
}

.iw-grid-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image: linear-gradient(rgba(15, 23, 42, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.1) 1px, transparent 1px);
    background-size: 72px 72px;
}

/* =========================================================
   Image / Media
========================================================= */

.iw-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iw-img-soft {
    border-radius: var(--iw-radius-lg);
    box-shadow: var(--iw-shadow-soft);
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 991px) {
    .iw-section {
        padding: 68px 0;
    }

    .iw-container {
        width: calc(100vw - 28px);
    }
}

@media (max-width: 575px) {
    .iw-section {
        padding: 52px 0;
    }

    .iw-section-title {
        margin-bottom: 28px;
    }

    .iw-btn {
        min-height: 46px;
        padding: 0 18px;
        font-size: 0.9rem;
    }
}

/* =========================================================
   site header
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.65);
    box-shadow: 0 2px 18px rgba(15, 23, 42, 0.04);
}

.site-header .navbar {
    min-height: 64px;
    padding: 6px 0;
}

.site-logo img {
    width: 128px;
    height: auto;
    display: block;
}

.site-header .nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.site-header .nav-link:hover,
.site-header .nav-link.show {
    color: var(--iw-coral) !important;
}

.site-header .dropdown-menu {
    min-width: 240px;
    padding: 0;
    margin-top: 14px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.site-header .dropdown-item {
    padding: 13px 16px;
    font-size: 0.92rem;
    color: var(--iw-muted-dark);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.site-header .dropdown-item:last-child {
    border-bottom: 0;
}

.site-header .dropdown-item:hover {
    color: var(--iw-coral);
    background: #f8fafc;
}

.site-header .merchant-link {
    color: var(--iw-coral) !important;
}

.site-header .lang-menu {
    max-height: 560px;
    overflow-y: auto;
}

.site-header .lang-menu .dropdown-item.active,
.site-header .lang-menu .dropdown-item.is-active {
    background: linear-gradient(135deg, rgba(252, 91, 98, 0.12), rgba(37, 99, 235, 0.08));
    color: var(--iw-coral) !important;
    font-weight: 900;
    border-left: 4px solid var(--iw-coral);
}

.site-header .lang-menu .dropdown-item.active::after,
.site-header .lang-menu .dropdown-item.is-active::after {
    content: '✓';
    float: right;
    font-weight: 900;
    color: var(--iw-coral);
}

.iw-btn-primary {
    box-shadow: 0 10px 22px rgba(252, 91, 98, 0.2);
}

.iw-btn-sm {
    min-height: 36px;
    padding: 0 16px;
    font-size: 0.85rem;
}

@media (max-width: 991px) {
    .site-header .navbar-collapse {
        padding: 18px 0 10px;
    }

    .site-header .nav-link {
        padding: 11px 0 !important;
    }

    .site-header .dropdown-menu {
        margin-top: 0;
        margin-bottom: 10px;
        box-shadow: none;
    }

    .site-logo img {
        width: 138px;
    }
}
