
/* ================================
   KeyGati - Global Styles
================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Typing text uses a monospace font */

.typing-text {
    font-family: "Courier New", Courier, monospace;
    font-weight: 500;
    word-spacing: 0.35rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

/* Remove the default textarea outline */

textarea:focus {
    outline: none;
}

/* Improve keyboard focus visibility */

button:focus-visible,
a:focus-visible {
    outline: 2px solid #2A9D8F;
    outline-offset: 3px;
}

/* Prevent text selection on interface controls */

button {
    user-select: none;
}

/* Mobile typing text adjustment */

@media (max-width: 640px) {
    .typing-text {
        font-size: 1rem;
        line-height: 2;
        word-spacing: 0.2rem;
    }
}

/* Typing cursor */

.typing-cursor {
    display: inline-block;
    width: 0;
    height: 0;
    position: relative;
    vertical-align: baseline;
}

.typing-cursor::after {
    content: "";
    position: absolute;
    width: 0.65em;
    height: 2px;
    background-color: #2A9D8F;
    left: 0;
    top: 0em;
    animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
    50% {
        opacity: 0;
    }
}

body {
    position: relative;
    isolation: isolate;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.35'/%3E%3C/svg%3E");

    opacity: 0.20;
    pointer-events: none;
    z-index: -1;
}

.typing-text {
    overflow-wrap: normal;
    word-break: normal;
}

.typing-word {
    white-space: nowrap;
}

/* =========================================================
LANDING PAGE
========================================================= */

.landing-page,
.legal-page {
    background: #A8DADC;
    color: #264653;
    font-family: "Inter", sans-serif;
    min-height: 100vh;
}

.landing-page {
    overflow: hidden;
}

.legal-page {
    overflow-y: auto;
}

/* ---------------------------------------------------------
Landing Navigation
--------------------------------------------------------- */

.landing-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 50;

padding: 16px 24px 0;

}

.landing-nav {
    max-width: 1177px;
    height: 64px;

    margin: 0 auto;
    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(38, 70, 83, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;

    box-shadow:
        0 8px 24px rgba(38, 70, 83, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);

    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------------------------------------------------------
Logo
--------------------------------------------------------- */

.landing-logo {
display: flex;
align-items: center;

text-decoration: none;

font-size: 20px;
font-weight: 700;
letter-spacing: -0.025em;

}

.landing-logo-key {
color: #2A9D8F;
}

.landing-logo-gati {
color: #264653;
}

/* ---------------------------------------------------------
Information Navigation
--------------------------------------------------------- */

.landing-info-nav {
display: flex;
align-items: center;
gap: 2px;

padding: 4px;

background: rgba(255, 255, 255, 0.9);

border-radius: 999px;

box-shadow:
    0 1px 1px rgba(38, 70, 83, 0.04);

border: 1px solid rgba(38, 70, 83, 0.01);

backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);

}

.landing-info-nav a {
display: inline-flex;
align-items: center;
justify-content: center;

padding: 8px 16px;

border-radius: 999px;

color: rgba(38, 70, 83, 0.60);

text-decoration: none;

font-size: 13px;
font-weight: 500;

white-space: nowrap;

transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;

}

.landing-info-nav a:hover {
background: rgba(42, 157, 143, 0.12);
color: #2A9D8F;
}

.landing-info-nav a:active {
background: #FFFFFF;

color: #264653;

box-shadow:
    0 1px 3px rgba(38, 70, 83, 0.08);

}

/* ---------------------------------------------------------
Mobile Navigation
--------------------------------------------------------- */

@media (max-width: 700px) {

.landing-header {
    padding: 12px 12px 0;
}

.landing-nav {
    padding: 0 16px;
}

.landing-info-nav {
    gap: 0;
}

.landing-info-nav a {
    padding: 7px 10px;
    font-size: 12px;
}

}

@media (max-width: 480px) {

.landing-logo {
    font-size: 18px;
}

.landing-info-nav a {
    padding: 7px 8px;
    font-size: 11px;
}

}


/* ---------------------------------------------------------
Main
--------------------------------------------------------- */

.landing-main {
width: 100%;
max-width: 1280px;

margin: 0 auto;

padding:
    104px 24px 40px;

}

/* ---------------------------------------------------------
Bento Grid
--------------------------------------------------------- */

.landing-grid {
width: 100%;
max-width: 1152px;

margin: 0 auto;

display: grid;
grid-template-columns: repeat(3, 1fr);

gap: 24px;

}

/* ---------------------------------------------------------
Hero
--------------------------------------------------------- */

.landing-hero {
grid-column: 1 / -1;

background: #FFFFFF;

border: 1px solid rgba(38, 70, 83, 0.10);
border-radius: 16px;

padding: 40px;

display: flex;
align-items: center;
justify-content: space-between;

gap: 40px;

box-shadow:
    0 2px 8px rgba(38, 70, 83, 0.04);

}

.landing-hero-content {
max-width: 680px;
}

/* Eyebrow */

.landing-eyebrow {
display: inline-flex;
align-items: center;
gap: 8px;

padding: 6px 12px;

margin-bottom: 16px;

border-radius: 999px;

background: #EDF6EA;
color: #2A9D8F;

font-size: 11px;
font-weight: 600;
letter-spacing: 0.02em;

}

.landing-eyebrow-dot {
width: 7px;
height: 7px;

border-radius: 50%;

background: #2A9D8F;

}

/* Hero heading */

.landing-hero h1 {
margin: 0 0 12px;

color: #264653;

font-size: 36px;
line-height: 1.15;

font-weight: 700;

letter-spacing: -0.025em;

}

/* Hero paragraph */

.landing-hero p {
margin: 0;

max-width: 620px;

color: rgba(38, 70, 83, 0.72);

font-size: 16px;
line-height: 1.6;

}

/* ---------------------------------------------------------
Hero Buttons
--------------------------------------------------------- */

.landing-hero-actions {
display: flex;
align-items: center;
gap: 16px;

flex-shrink: 0;

}

.landing-button {
min-width: 130px;

padding: 14px 24px;

border-radius: 12px;

display: inline-flex;
align-items: center;
justify-content: center;

text-decoration: none;

font-size: 14px;
font-weight: 600;

transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;

}

.landing-button:active {
transform: translateY(1px);
}

/* Primary */

.landing-button-primary {
background: #2A9D8F;
color: #F1FAEE;

box-shadow:
    0 2px 5px rgba(42, 157, 143, 0.18);

}

.landing-button-primary:hover {
background: #23867A;
}

/* Secondary */

.landing-button-secondary {
background: #FFFFFF;
color: #264653;

border: 1px solid rgba(38, 70, 83, 0.20);


}

.landing-button-secondary:hover {
background: #EDF6EA;
}

/* ---------------------------------------------------------
Information Cards
--------------------------------------------------------- */

.landing-card {
background: #FFFFFF;

border: 1px solid rgba(38, 70, 83, 0.10);
border-radius: 16px;

padding: 28px;

min-height: 300px;

display: flex;
flex-direction: column;
justify-content: space-between;

box-shadow:
    0 2px 8px rgba(38, 70, 83, 0.04);

}

.landing-card-icon-coral {
color: #E76F51;
}

.landing-card-icon-orange {
color: #F4A261;
}

/* Card heading */

.landing-card h2 {
margin: 0 0 12px;

color: #264653;

font-size: 20px;
line-height: 1.4;

font-weight: 600;

letter-spacing: -0.015em;

}

/* Card paragraph */

.landing-card p {
margin: 0;

color: rgba(38, 70, 83, 0.72);

font-size: 14px;
line-height: 1.7;

}

/* Card footer */

.landing-card-footer {
margin-top: 24px;
padding-top: 20px;

border-top: 1px solid rgba(38, 70, 83, 0.10);

display: flex;
align-items: center;
justify-content: space-between;

gap: 12px;

color: rgba(38, 70, 83, 0.65);

font-size: 11px;
font-weight: 500;

}

.landing-card-footer span:first-child {
display: flex;
align-items: center;
gap: 6px;
}

.landing-card-footer strong {
color: #264653;

font-size: 11px;
font-weight: 600;

text-align: right;

}

/* Footer dots */

.landing-footer-dot {
width: 7px;
height: 7px;

border-radius: 50%;

background: #2A9D8F;

}

.landing-footer-dot-coral {
background: #E76F51;
}

.landing-footer-dot-orange {
background: #F4A261;
}

/* ---------------------------------------------------------
Responsive
--------------------------------------------------------- */

@media (max-width: 900px) {

.landing-grid {
    grid-template-columns: 1fr;
}

.landing-hero {
    flex-direction: column;
    align-items: flex-start;
}

.landing-hero-actions {
    width: 100%;
}

.landing-button {
    flex: 1;
}

}

@media (max-width: 700px) {

.landing-header {
    padding: 12px 12px 0;
}

.landing-nav {
    padding: 0 16px;
}

.landing-nav-links {
    gap: 14px;
}

.landing-nav-links a {
    font-size: 12px;
}

.landing-main {
    padding:
        92px 12px 24px;
}

.landing-hero {
    padding: 28px 24px;
}

.landing-hero h1 {
    font-size: 30px;
}

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

.landing-button {
    width: 100%;
}

}

@media (max-width: 520px) {

.landing-nav-links a:nth-child(3),
.landing-nav-links a:nth-child(4),
.landing-nav-links a:nth-child(5) {
    display: none;
}

.landing-card {
    min-height: auto;
}

.landing-card-footer {
    align-items: flex-start;
    flex-direction: column;
}

.landing-card-footer strong {
    text-align: left;
}

}

/* ---------------------------------------------------------
   Legal Pages
   --------------------------------------------------------- */

.legal-main {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 120px 0 60px;
}

.legal-card {
    background: rgba(241, 250, 238, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;

    padding: 48px;

    box-shadow:
        0 12px 30px rgba(38, 70, 83, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.legal-header {
    padding-bottom: 32px;
    margin-bottom: 32px;

    border-bottom: 1px solid rgba(38, 70, 83, 0.10);
}

.legal-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #2A9D8F;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.legal-header h1 {
    margin: 0;

    color: #264653;

    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.legal-updated {
    margin: 14px 0 0;

    color: rgba(38, 70, 83, 0.55);

    font-size: 13px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 10px;

    color: #264653;

    font-size: 20px;
    line-height: 1.3;
}

.legal-section p {
    margin: 0 0 12px;

    color: rgba(38, 70, 83, 0.72);

    font-size: 15px;
    line-height: 1.75;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: #2A9D8F;
    font-weight: 600;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Legal Pages — Mobile
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .legal-main {
        width: min(100% - 24px, 900px);
        padding: 100px 0 40px;
    }

    .legal-card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .legal-section h2 {
        font-size: 18px;
    }

    .legal-section p {
        font-size: 14px;
        line-height: 1.7;
    }

}

.legal-page {
    min-height: 100vh;
    overflow-y: auto;
}

.landing-info-nav a:hover,
.landing-info-nav a.active {
    background: rgba(42, 157, 143, 0.12);
    color: #2A9D8F;
}

/* ========================================
   HELP & GUIDES
======================================== */

.help-section {
    margin-bottom: 48px;
}

.help-section:last-of-type {
    margin-bottom: 0;
}

.help-section-header {
    margin-bottom: 20px;
}

.help-section-label {
    display: inline-block;
    margin-bottom: 8px;

    color: #2A9D8F;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.help-section-header h2 {
    margin: 0;

    color: #264653;

    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}


/* Guide cards */

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.help-card {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 24px;

    background: rgba(241, 250, 238, 0.55);

    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;

    box-shadow:
        0 8px 20px rgba(38, 70, 83, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.help-card:hover {
    transform: translateY(-3px);

    background: rgba(241, 250, 238, 0.72);

    box-shadow:
        0 12px 26px rgba(38, 70, 83, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}


/* Card label */

.help-card-label {
    display: inline-block;
    margin-bottom: 10px;

    color: #2A9D8F;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}


/* Card heading */

.help-card h3 {
    margin: 0 0 10px;

    color: #264653;

    font-size: 19px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}


/* Card description */

.help-card p {
    margin: 0;

    color: rgba(38, 70, 83, 0.68);

    font-size: 14px;
    line-height: 1.7;
}


/* Card link */

.help-card-link {
    display: inline-block;
    margin-top: 20px;

    color: #2A9D8F;

    font-size: 13px;
    font-weight: 700;
}


/* Back link */

.help-back {
    margin-top: 40px;
    padding-top: 28px;

    border-top: 1px solid rgba(38, 70, 83, 0.10);
}

.help-back a {
    color: #2A9D8F;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

.help-back a:hover {
    text-decoration: underline;
}


/* Responsive */

@media (max-width: 700px) {

    .help-grid {
        grid-template-columns: 1fr;
    }

    .help-section {
        margin-bottom: 40px;
    }

    .help-section-header h2 {
        font-size: 21px;
    }

    .help-card {
        min-height: 190px;
        padding: 22px;
    }

}

.help-formula {
    margin: 16px 0;
    padding: 14px 18px;

    background: rgba(42, 157, 143, 0.08);

    border: 1px solid rgba(42, 157, 143, 0.16);
    border-radius: 12px;

    color: #264653;

    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 600;

    text-align: center;
}

/* ========================================
   HELP & GUIDES BUTTON
======================================== */

.help-guides-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 28px;
    padding: 9px 16px;

    background: rgba(241, 250, 238, 0.38);

    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;

    color: #264653;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    box-shadow:
        0 4px 12px rgba(38, 70, 83, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.help-guides-button:hover {
    background: rgba(42, 157, 143, 0.12);

    color: #2A9D8F;

    transform: translateY(-1px);
}
