:root {
    --primary-color: #1E3A5F;
    --primary-hover: #162d47;
    --secondary-blue: #2d5a8f;
    --accent-color: #F59E0B;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-primary: #F8FAFC;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 28px rgba(30, 58, 95, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.landing-shell {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 10% 0%, rgba(45, 90, 143, 0.08), transparent 30%), var(--bg-primary);
}

.landing-container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 100vh;
    flex-direction: column;
    padding: 2rem 1.5rem 1.5rem;
}

.landing-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.landing-orb-one {
    top: -180px;
    right: -90px;
    width: 460px;
    height: 460px;
    background: rgba(245, 158, 11, 0.1);
}

.landing-orb-two {
    bottom: -220px;
    left: -160px;
    width: 480px;
    height: 480px;
    background: rgba(30, 58, 95, 0.07);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.65rem;
    color: var(--primary-color);
}

.brand-mark-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-blue));
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.2);
    font-size: 1.15rem;
}

.brand-mark strong,
.brand-mark small {
    display: block;
}

.brand-mark strong {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}

.brand-mark small {
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.landing-hero {
    max-width: 680px;
    margin: auto auto 2.5rem;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    color: #9a6500;
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.landing-hero h1 {
    margin: 1rem 0 0.75rem;
    color: var(--primary-color);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.landing-hero p {
    max-width: 570px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.landing-options {
    width: 100%;
    margin-bottom: auto;
}

.service-card {
    display: flex;
    min-height: 265px;
    height: 100%;
    flex-direction: column;
    padding: 1.5rem;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--service-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover,
.service-card:focus-visible {
    color: var(--text-primary);
    border-color: var(--service-color);
    box-shadow: var(--shadow-md);
    outline: none;
    transform: translateY(-5px);
}

.service-card-survey {
    --service-color: var(--primary-color);
    --service-bg: rgba(30, 58, 95, 0.1);
}

.service-card-aduan {
    --service-color: #c17a00;
    --service-bg: rgba(245, 158, 11, 0.14);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.1rem;
    color: var(--service-color);
    background: var(--service-bg);
    border-radius: 14px;
    font-size: 1.5rem;
}

.service-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
}

.service-label {
    color: var(--service-color);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-content strong {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 800;
}

.service-content > span:last-child {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

.service-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
    color: var(--service-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.service-action i {
    transition: transform 0.2s ease;
}

.service-card:hover .service-action i,
.service-card:focus-visible .service-action i {
    transform: translateX(4px);
}

.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    font-size: 0.76rem;
}

.landing-footer span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.landing-footer i {
    color: var(--primary-color);
}

/* Floating customer support, shared with KSG-Profile. */
.ksg-support {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 1030;
}

.ksg-support-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-left: auto;
    padding: 0;
    color: #ffffff;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(30, 58, 95, 0.25);
    cursor: pointer;
}

.ksg-support-toggle i {
    font-size: 28px;
}

.ksg-support-panel {
    width: min(320px, calc(100vw - 40px - env(safe-area-inset-right) - env(safe-area-inset-left)));
    max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));
    margin: 0 0 12px;
    padding: 0;
    overflow: auto;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.18);
}

.ksg-support-panel[hidden] {
    display: none;
}

.ksg-support-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    color: #ffffff;
    background: var(--primary-color);
}

.ksg-support-heading h2 {
    margin: 0;
    color: inherit;
    font-size: 16px;
    font-weight: 700;
}

.ksg-support-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-size: 26px;
    cursor: pointer;
}

.ksg-support-body {
    padding: 20px;
}

.ksg-support-body p {
    margin: 0 0 12px;
    color: var(--text-primary);
}

.ksg-support-body a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ksg-support-body a + a {
    margin-top: 8px;
    font-size: 14px;
}

.ksg-support-body a span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ksg-support button:focus-visible,
.ksg-support a:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .landing-container {
        padding: 1.25rem 1rem 1rem;
    }

    .landing-hero {
        margin-top: 4rem;
        margin-bottom: 2rem;
    }

    .landing-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
