/* Tandent: subsite of kingmode.co.
   Same glass design language as the main site and the Zensei subsite,
   retinted to Tandent's identity (near-black ink, violet, mint; Jost
   headings like the app itself). Standalone stylesheet. */

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

:root {
    --bg-color: #0B0B0E;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #97979F;
    --tan-1: #7C6CFF;   /* Tandent violet */
    --tan-2: #B3AAFF;   /* Lilac (violet on dark) */
    --tan-3: #3DDC97;   /* Mint */
    --km-1: #ff2a5f;    /* Kingmode crimson (brand mark only) */
    --km-2: #8a2be2;    /* Kingmode purple  (brand mark only) */
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    /* clip (not hidden) so decorative off-canvas phones can't create a
       horizontal scroll container that swipes/scrollIntoView could drag */
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow: clip;  /* the ambient glows overhang the edges: no blank run below the footer */
}

/* Ambient Background Glows: the app's login backdrop, a whisper of indigo */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 26s infinite ease-in-out alternate;
}

.glow-1 {
    top: -12%; left: -12%;
    width: 52vw; height: 52vw;
    background: radial-gradient(circle, var(--tan-1) 0%, transparent 70%);
}

.glow-2 {
    top: 34%; right: -16%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--tan-2) 0%, transparent 70%);
    animation-delay: -7s;
    opacity: 0.16;
}

.glow-3 {
    bottom: -22%; left: 12%;
    width: 52vw; height: 52vw;
    background: radial-gradient(circle, #3DDC97 0%, transparent 70%);
    opacity: 0.12;
    animation-delay: -14s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, 5%) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    .ambient-glow { animation: none; }
    html { scroll-behavior: auto; }
}

/* Typography */
h1, h2, .brand-tandent, .stack-into span { font-family: 'Jost', Futura, 'Century Gothic', sans-serif; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); letter-spacing: -1px; line-height: 1.08; margin-bottom: 24px; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.5px; margin-bottom: 16px; font-weight: 600; }
h3 { font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.65; font-size: 1.05rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--tan-1), var(--tan-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-km {
    background: linear-gradient(135deg, var(--km-1), var(--km-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 14, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.15rem;
    white-space: nowrap;
}

.brand-divider { color: rgba(255, 255, 255, 0.25); font-weight: 400; }
.brand-glyph { width: 30px; height: auto; display: block; color: #F2F2F5; }
.brand-tandent { font-weight: 500; letter-spacing: 4px; color: #F2F2F5; }

.nav-links { display: flex; list-style: none; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--tan-2); }

/* Buttons */
.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; font-weight: 600; }

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(124, 108, 255, 0.3);
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 34px rgba(179, 170, 255, 0.45);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--tan-1), var(--tan-2));
    color: #ffffff;
    border: none;
}
.btn-gradient:hover { box-shadow: 0 0 40px rgba(179, 170, 255, 0.5); }

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tan-2);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 60px;
    align-items: center;
    padding: 140px 6% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-lead { font-size: 1.2rem; margin-bottom: 28px; max-width: 560px; }

.platform-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }

.chip {
    padding: 7px 15px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.85rem;
    font-weight: 500;
    color: #d8d8d8;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.chip-muted { color: var(--text-muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-actions a { text-decoration: none; color: var(--text-main); }
.hero-actions .btn-primary { color: var(--bg-color); }
.hero-actions .btn-gradient { color: #ffffff; }

/* Hero visual: a CSS mock of the Office (no screenshots needed) */
.hero-visual { position: relative; display: flex; justify-content: center; min-width: 0; }

/* Stat strip */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5% 40px;
}

.stat {
    text-align: center;
    padding: 26px 18px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--tan-1), var(--tan-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat span { color: var(--text-muted); font-size: 0.9rem; }

/* Sections */
.section {
    padding: 90px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.section-heading { text-align: center; margin-bottom: 60px; }
.section-heading p { max-width: 640px; margin: 0 auto; }

.kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tan-2);
    margin-bottom: 14px;
}

.kicker-hot {
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(179, 170, 255, 0.08);
    border: 1px solid rgba(179, 170, 255, 0.25);
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    padding: 32px 28px;
    border-radius: 22px;
    background: rgba(20, 20, 26, 0.5);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
        rgba(124, 108, 255, 0.1),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(179, 170, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 108, 255, 0.22), rgba(179, 170, 255, 0.1));
    border: 1px solid rgba(124, 108, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.93rem; color: #a1a1aa; }

/* Split sections (copy + visual) */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 70px;
    align-items: center;
}

.split-reverse .split-copy { order: 2; }
.split-reverse .split-visual { order: 1; }

/* Grid items default to min-width:auto; without this, wide children
   force the column past the viewport on phones */
.split-copy, .split-visual { min-width: 0; }

.split-copy > p { margin-bottom: 20px; max-width: 560px; }

.check-list { list-style: none; margin: 6px 0 24px; }

.check-list li {
    position: relative;
    padding: 8px 0 8px 34px;
    color: #c9c9cf;
    line-height: 1.55;
    font-size: 0.98rem;
}

.check-list li strong { color: var(--text-main); font-weight: 600; }

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 11px no-repeat,
        linear-gradient(135deg, var(--tan-1), var(--tan-2));
}

.split-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 460px;
}

/* Browser frame around real app screenshots */
.browser {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #111116;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 70px rgba(124, 108, 255, 0.16);
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
}
.browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.browser-url {
    margin: 0 auto;
    padding: 3px 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.browser img { display: block; width: 100%; height: auto; }

.browser-hero {
    width: min(1180px, 100%);
    margin: 0 auto;
    transform: perspective(2200px) rotateX(9deg);
    transform-origin: center top;
}

/* Hero is centred copy over a full-width screen (overrides the split grid above) */
.hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    text-align: center;
    padding-top: 150px;
    padding-bottom: 90px;
}
.hero-copy { min-width: 0; }
.hero-lead { margin-left: auto; margin-right: auto; max-width: 660px; }
.hero .platform-chips, .hero .hero-actions { justify-content: center; }

/* Tour: tabbed real screens */
.tour { max-width: 1180px; margin: 0 auto; }
.tour-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}
.tour-tabs button {
    padding: 9px 18px;
    border-radius: 22px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #d8d8de;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.tour-tabs button:hover { border-color: rgba(124, 108, 255, 0.45); color: #ffffff; }
.tour-tabs button[aria-selected="true"] {
    background: rgba(124, 108, 255, 0.2);
    border-color: rgba(124, 108, 255, 0.6);
    color: #ffffff;
}
.browser-tour img { transition: opacity 0.25s ease; }
.browser-tour img.swapping { opacity: 0; }
.tour-caption { text-align: center; max-width: 680px; margin: 22px auto 0; min-height: 3.3em; }

.toast {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(20, 20, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: left;
    animation: bob 6s ease-in-out infinite alternate;
}
.toast strong { display: block; font-size: 0.85rem; }
.toast span { font-size: 0.75rem; color: var(--text-muted); }
.toast-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tan-1); box-shadow: 0 0 12px var(--tan-1); flex: none; }
.toast-mint { background: var(--tan-3); box-shadow: 0 0 12px var(--tan-3); }
.toast-a { top: 14%; left: -3%; z-index: 3; }
.toast-b { bottom: 16%; right: -3%; z-index: 3; animation-delay: -3s; }

@keyframes bob {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .toast { animation: none; }
}

/* Eleven apps into one */
.stack-card {
    width: min(460px, 100%);
    padding: 34px 30px;
    border-radius: 28px;
    background: rgba(20, 20, 26, 0.55);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}
.stack-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.stack-tools span {
    padding: 7px 13px;
    border-radius: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.25);
}
.stack-arrow { font-size: 1.6rem; color: var(--tan-2); margin: 18px 0; }
.stack-into {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(124, 108, 255, 0.28), rgba(124, 108, 255, 0.08));
    border: 1px solid rgba(124, 108, 255, 0.45);
    box-shadow: 0 0 40px rgba(124, 108, 255, 0.25);
}
.stack-into svg { width: 40px; color: #F2F2F5; }
.stack-into span { font-size: 1.3rem; letter-spacing: 5px; font-weight: 500; }
.stack-note { margin-top: 18px; font-size: 0.9rem; }

/* Phone frames (Everywhere) */
.phone {
    border-radius: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #111116;
    padding: 9px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 60px rgba(124, 108, 255, 0.16);
    overflow: hidden;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 29px; }

.split-visual .phone-front {
    width: min(270px, 64vw);
    position: relative;
    z-index: 2;
    transform: rotate(-2deg);
}
.split-visual .phone-back {
    width: min(240px, 56vw);
    position: absolute;
    z-index: 1;
    transform: rotate(6deg) translateX(-52%) scale(0.94);
    opacity: 0.85;
    filter: brightness(0.8);
}

.feature-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

/* Proof + Lead Engine */
.proof-section { padding-top: 30px; padding-bottom: 30px; }
.proof-card {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(34px, 5vw, 54px);
    border-radius: 30px;
    background: rgba(20, 20, 26, 0.55);
    border: 1px solid rgba(124, 108, 255, 0.28);
    box-shadow: 0 0 90px rgba(124, 108, 255, 0.08) inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.proof-card p { max-width: 640px; margin: 0 auto; }
.proof-card a { color: var(--tan-2); }

.engine-card {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(30px, 5vw, 60px);
    align-items: center;
    padding: clamp(34px, 5vw, 58px);
    border-radius: 32px;
    background: rgba(20, 20, 26, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.engine-copy { min-width: 0; }
.engine-copy p { margin-bottom: 26px; }
.engine-copy .btn-glass { color: var(--text-main); text-decoration: none; display: inline-block; }
.engine-steps { list-style: none; display: grid; gap: 10px; min-width: 0; }
.engine-steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 0.95rem;
}
.engine-steps span { font-family: 'Jost', sans-serif; color: var(--tan-2); font-size: 0.85rem; letter-spacing: 1px; }

.cta-actions { justify-content: center; }
.cta-actions .btn-glass { color: var(--text-main); }

/* CTA */
.cta-section { padding-top: 20px; }

.cta-card {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 8%;
    border-radius: 30px;
    background: rgba(20, 20, 26, 0.55);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cta-logo {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 14px 40px rgba(124, 108, 255, 0.4);
}

.cta-card p { margin-bottom: 30px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 44px 5%;
    margin-top: 40px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-content p { font-size: 0.9rem; }

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--tan-2); }

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 130px;
        gap: 50px;
    }
    .hero-lead, .split-copy > p { margin-left: auto; margin-right: auto; }
    .platform-chips, .hero-actions { justify-content: center; }

    .split { grid-template-columns: 1fr; gap: 50px; }
    .split-reverse .split-copy { order: 1; }
    .split-reverse .split-visual { order: 2; }
    .split-visual { min-height: 0; }
    .browser-hero { transform: none; }
    .split-visual { padding-left: 14vw; }
    .split-visual .phone-back { transform: rotate(6deg) translateX(-42%) scale(0.94); }
    .check-list { max-width: 560px; margin-left: auto; margin-right: auto; text-align: left; }
    .engine-card { grid-template-columns: 1fr; text-align: center; }
    .engine-steps { max-width: 420px; margin: 0 auto; text-align: left; }
}

@media (max-width: 768px) {
    .nav-links li:not(:last-child) { display: none; }
    .nav-links .btn-glass { white-space: nowrap; }
    .brand { font-size: 1rem; }
    .footer-content { justify-content: center; text-align: center; }
    .footer-links { justify-content: center; }
    .toast-a { left: 0; }
    .toast-b { right: 0; }
    .toast { padding: 9px 12px; }
    .browser-url { padding: 3px 18px; }
}

/* KINGMODE mascot mark in the brand row */
.brand-km-mark {
    width: auto;
    height: 20px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(255, 42, 95, 0.7)) drop-shadow(0 0 12px rgba(138, 43, 226, 0.45));
}

/* Phones: the bars mark carries KINGMODE, so drop the wordmark and divider to
   keep the brand and the header CTA on one line */
@media (max-width: 480px) {
    .brand-kingmode, .brand-divider { display: none; }
    .nav-links .btn-glass { padding: 8px 14px; font-size: 0.85rem; }
}
