/*
 * kaimo — Give your AI agent a checkout
 * Refined UI Design System with Perfect Symmetrical Alignment
 */

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

:root {
    --bg: #f5efdc;         /* warm cream background */
    --surface: #fbf8ee;    /* lighter cream surface */
    --surface-hover: #ffffff;
    --border: #e6dec3;     /* warm cream border */
    --border-hover: #c9a86a;
    --muted: #a89e80;      /* warm beige-grey */
    --text: #1f2855;       /* deep logo navy */
    --sub: #5a6390;        /* secondary navy */
    --accent: #2a3470;     /* primary button navy */
    --accent-hover: #1f2754;
    --accent2: #c9a86a;    /* gold accent */
    --danger: #b94747;
    
    --mono: 'JetBrains Mono', ui-monospace, Menlo, 'Cascadia Code', monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(31, 40, 85, 0.06);
    --shadow-md: 0 10px 30px rgba(31, 40, 85, 0.08);
    --shadow-glow: 0 12px 40px rgba(201, 168, 106, 0.2);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent2);
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: rgba(245, 239, 220, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 4px 12px rgba(31, 40, 85, 0.18);
    transition: var(--transition);
}

.nav-logo:hover img {
    transform: scale(1.05) rotate(3deg);
}

.nav-logo span {
    color: var(--accent2);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--sub);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition) !important;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(31, 40, 85, 0.25);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 24px 90px;
    position: relative;
    overflow: hidden;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero::before {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(31, 40, 85, 0.1) 0%, transparent 70%);
    top: -120px;
    left: -120px;
}

.hero::after {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(201, 168, 106, 0.22) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(31, 40, 85, 0.08);
    border: 1px solid rgba(31, 40, 85, 0.18);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #1b6e4f;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(27, 110, 79, 0.4); }
    50% { opacity: 0.6; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(27, 110, 79, 0); }
}

h1 {
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -2.2px;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 920px;
}

h1 .grad {
    background: linear-gradient(135deg, var(--accent) 0%, #3b488c 40%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--sub);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Waitlist & CTA Forms - Symmetrical Height & Alignment */
.waitlist-form, .cta-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto 20px;
}

.waitlist-form input[type=email], .cta-form input[type=email] {
    flex: 1;
    height: 52px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.waitlist-form input[type=email]::placeholder, .cta-form input[type=email]::placeholder {
    color: var(--muted);
}

.waitlist-form input[type=email]:focus, .cta-form input[type=email]:focus {
    border-color: var(--accent);
    background: var(--surface-hover);
    box-shadow: 0 0 0 4px rgba(42, 52, 112, 0.12);
}

.btn-primary {
    height: 52px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    padding: 0 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(31, 40, 85, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 40, 85, 0.3);
}

.waitlist-note {
    font-size: 13px;
    color: var(--muted);
}

.waitlist-note a {
    color: var(--sub);
    text-decoration: underline;
}

/* CODE PREVIEW */
.code-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    text-align: left;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
    max-width: 720px;
    width: 100%;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.code-preview:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.code-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent2), transparent);
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-preview-alt {
    margin-top: 20px;
}

.code-preview pre {
    white-space: pre-wrap;
    word-break: break-word;
}

.code-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.c-key { color: #2a3470; font-weight: 600; }
.c-str { color: #0f7b3d; }
.c-brace { color: var(--sub); }
.c-num { color: #a05a1f; }
.c-cmt { color: var(--muted); font-style: italic; }
.c-fn { color: #8c4a1f; font-weight: 700; }

/* SECTIONS */
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 24px;
}

.section-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: inline-block;
}

h2 {
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--text);
}

.section-sub {
    font-size: 18px;
    color: var(--sub);
    max-width: 580px;
    line-height: 1.7;
}

/* HOW IT WORKS */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    margin-top: 64px;
    background: var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.step {
    background: var(--surface);
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
}

.step:hover {
    background: #fffdf5;
    transform: translateY(-2px);
}

.step-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
    color: var(--text);
}

.step p {
    font-size: 14px;
    color: var(--sub);
    line-height: 1.7;
}

/* TOKEN SECTION */
.token-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 64px;
}

@media (max-width: 700px) {
    .token-split { grid-template-columns: 1fr; }
}

.token-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.token-panel.after {
    border-color: rgba(31, 40, 85, 0.35);
    box-shadow: var(--shadow-glow);
}

.token-panel.after::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent2), transparent);
}

.tp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.tp-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

.tp-label.good {
    color: var(--accent2);
}

.tp-counter {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}

.tp-counter.high {
    background: rgba(185, 71, 71, 0.12);
    color: #8a3333;
}

.tp-counter.low {
    background: rgba(15, 123, 61, 0.14);
    color: #0f7b3d;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(31, 40, 85, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--sub);
}

.tool-row .ti {
    color: var(--muted);
    font-size: 11px;
    margin-left: auto;
}

.tool-row.highlight {
    border-color: rgba(31, 40, 85, 0.35);
    background: rgba(201, 168, 106, 0.16);
    color: var(--text);
    font-weight: 600;
}

.token-saving {
    margin-top: 48px;
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 700px) {
    .token-saving { flex-direction: column; gap: 24px; padding: 28px; }
}

.ts-stat {
    text-align: center;
    flex: 1;
}

.ts-num {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ts-desc {
    font-size: 14px;
    color: var(--sub);
    margin-top: 8px;
}

.ts-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

@media (max-width: 700px) {
    .ts-divider { width: 60px; height: 1px; }
}

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 64px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature:hover {
    border-color: var(--accent2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 22px;
}

.icon-purple { background: rgba(31, 40, 85, 0.10); }
.icon-teal   { background: rgba(15, 123, 61, 0.14); }
.icon-orange { background: rgba(160, 90, 31, 0.16); }
.icon-pink   { background: rgba(185, 71, 71, 0.14); }
.icon-yellow { background: rgba(201, 168, 106, 0.28); }
.icon-blue   { background: rgba(74, 109, 167, 0.14); }

.feature h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    color: var(--text);
}

.feature p {
    font-size: 14px;
    color: var(--sub);
    line-height: 1.7;
}

.coming-chip {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(168, 158, 128, 0.18);
    border: 1px solid rgba(168, 158, 128, 0.4);
    padding: 2px 8px;
    border-radius: 100px;
}

/* MARKETS - Symmetrical Grid Layout */
.market-group {
    margin-top: 48px;
}

.market-group-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .markets-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .markets-grid { grid-template-columns: 1fr; }
}

.market-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.market-card:hover {
    border-color: var(--accent2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.market-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-card .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-live { background: #1b6e4f; box-shadow: 0 0 8px rgba(27, 110, 79, 0.4); }
.dot-coming { background: var(--muted); }

.status-badge-text {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.status-badge-text.live {
    background: rgba(27, 110, 79, 0.12);
    color: #1b6e4f;
}

.status-badge-text.soon {
    background: rgba(168, 158, 128, 0.15);
    color: var(--muted);
}

/* CTA BOTTOM */
.cta-section {
    text-align: center;
    padding: 130px 24px;
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 106, 0.25) 0%, transparent 70%);
    border-top: 1px solid var(--border);
}

.divider {
    border: none;
    height: 1px;
    background: var(--border);
    max-width: 1100px;
    margin: 0 auto;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--muted);
}

footer a {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 28px;
}

@media (max-width: 600px) {
    nav { padding: 16px 20px; }
    .nav-links { display: none; }
    .waitlist-form, .cta-form { flex-direction: column; }
    .btn-primary { width: 100%; }
    footer { flex-direction: column; gap: 16px; text-align: center; }
}
