/* ===========================================
    TwyNexa Labs — Clean Professional Design
    Google-inspired principles, TwyNexa identity
=========================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== Design Tokens ===== */
:root {
    --bg: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-gray: #e8eaed;
    --bg-dark: #3c4043;
    --bg-dark-2: #202124;
    --bg-soft: #f5f5f5;
    --bg-tint: #f5f5f5;
    --surface: #ffffff;
    --ink: #0f1b2b;
    --ink-2: #3d4a5c;
    --ink-3: #6b7686;
    --ink-light: #e8eaed;
    --line: #e4e9f2;
    --line-strong: #d3dbe8;
    --line-dark: rgba(255, 255, 255, 0.16);

    --brand: #2361e0;
    --brand-dark: #1647b8;
    --brand-soft: #eaf1ff;
    --accent: #7b61ff;
    --accent-soft: #f1eefe;
    --ok: #16a34a;
    --red: #d93025;
    --red-dark: #b31412;

    --shadow-sm: 0 1px 2px rgba(16, 28, 60, 0.06);
    --shadow-md: 0 6px 24px -8px rgba(16, 28, 60, 0.12);
    --shadow-lg: 0 18px 48px -14px rgba(16, 28, 60, 0.18);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --t-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
    --t-mid: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-height: 72px;
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--brand) var(--bg-soft);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.65;
    font-size: 16px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 4px;
}

/* ===== Selection ===== */
::selection { background: var(--brand); color: #fff; }

/* ===== Links & Lists ===== */
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Focus ===== */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ===== Utility: Container ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow { max-width: 820px; }

/* ===== Section Base ===== */
.section {
    width: 100%;
    padding: 96px 0;
    position: relative;
}

.section-tint { background: var(--bg-soft); }

/* ===== Section background rhythm ===== */
.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); }
.bg-gray { background: var(--bg-gray); }
.bg-dark { background: var(--bg-dark); }
.bg-dark-2 { background: var(--bg-dark-2); }

.bg-dark, .bg-dark-2 { color: var(--ink-light); }
.bg-dark .section-title, .bg-dark-2 .section-title { color: #fff; }
.bg-dark .section-sub, .bg-dark-2 .section-sub { color: #ccd2dc; }
.bg-dark p, .bg-dark-2 p { color: #ccd2dc; }
.bg-dark strong, .bg-dark-2 strong { color: #fff; }
.bg-dark .lead, .bg-dark-2 .lead { color: #d8dde5; }
.bg-dark h3, .bg-dark-2 h3 { color: #fff; }
.bg-dark .section-eyebrow, .bg-dark-2 .section-eyebrow { background: rgba(255, 255, 255, 0.1); color: #fff; }
.bg-dark .card, .bg-dark-2 .card,
.bg-dark .card h3,
.bg-dark-2 .card h3 { color: inherit; }
.bg-dark .card p, .bg-dark-2 .card p { color: var(--ink-2); }

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 17px;
    color: var(--ink-3);
    line-height: 1.7;
}

/* ===== Typography ===== */
h1 { font-size: 56px; font-weight: 800; line-height: 1.08; letter-spacing: -1px; }
h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; }
h3 { font-size: 20px; font-weight: 600; }
p { color: var(--ink-2); line-height: 1.75; font-size: 16px; }
strong { color: var(--ink); font-weight: 600; }

.lead { font-size: 18px; color: var(--ink-2); }

.highlight-text {
    font-size: 17px;
    background: var(--brand-soft);
    border-left: 3px solid var(--brand);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== Hand-Drawn Underline ===== */
.hand-drawn-underline {
    position: relative;
}

.hand-drawn-underline svg {
    position: absolute;
    left: -6px;
    width: calc(100% + 12px);
    height: 0.5em;
    bottom: -0.14em;
    overflow: visible;
    pointer-events: none;
}

.hand-drawn-underline path {
    fill: none;
    stroke: #ea6f9b;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.7s cubic-bezier(0.42, 0, 0.2, 1);
}

.hand-drawn-underline .hdu-main {
    stroke-width: 3.4;
}

.hand-drawn-underline .hdu-glow {
    stroke-width: 2;
    opacity: 0.5;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.7s cubic-bezier(0.42, 0, 0.2, 1) 0.05s, opacity 0.2s ease-out;
}

.hand-drawn-underline.draw path {
    stroke-dashoffset: 0;
}

/* ===== Loader ===== */
.loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--t-mid), visibility var(--t-mid);
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    animation: loaderPulse 0.9s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(35, 97, 224, 0.35); }
    50% { transform: scale(0.82); opacity: 0.75; box-shadow: 0 0 0 14px rgba(35, 97, 224, 0); }
}

/* ===== Scroll Progress ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    z-index: 1200;
    transition: width 0.1s linear;
}

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 900;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: 1140px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    letter-spacing: -0.2px;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 0;
}

.logo-img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    min-width: 0;
}

.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    transition: color var(--t-fast), background var(--t-fast);
}

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

.nav-links a.active {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 600;
}

.nav-cta { margin-left: 8px; }

.nav-cta-register { margin-left: 0; padding: 9px 18px; }

.nav-register-link {
    display: none;
    color: var(--brand) !important;
    font-weight: 600;
}

.menu-btn {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 18px;
    cursor: pointer;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.menu-btn:hover { color: var(--brand); border-color: var(--brand); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.btn:active { transform: none; }

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    border-color: var(--brand-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--brand);
    border-color: rgba(35, 97, 224, 0.35);
}

.btn-ghost:hover {
    border-color: var(--brand);
}

.btn-outline {
    background: var(--surface);
    color: var(--ink-2);
    border-color: var(--line-strong);
}

.btn-outline:hover {
    border-color: var(--brand);
}

.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ===== Hero ===== */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 96px;
    overflow: hidden;
    background:
        radial-gradient(600px 400px at 85% 0%, rgba(123, 97, 255, 0.08), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(35, 97, 224, 0.08), transparent 60%),
        var(--bg);
}

.bg-shape {
    position: absolute;
    border-radius: var(--radius-full);
    pointer-events: none;
}

.bg-shape-1 {
    width: 420px;
    height: 420px;
    top: -180px;
    right: -140px;
    background: radial-gradient(circle, rgba(35, 97, 224, 0.12), transparent 70%);
}

.bg-shape-2 {
    width: 360px;
    height: 360px;
    bottom: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.10), transparent 70%);
}

.hero-grid {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
    position: relative;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero-title { margin-bottom: 20px; }

.hero-title .accent {
    background: linear-gradient(120deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--ink-2);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--ink);
    background: linear-gradient(120deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2px;
}

.stat p {
    font-size: 14px;
    color: var(--ink-3);
}

/* ===== Hero AI Window (TwyMini demo) ===== */
.hero-visual {
    position: relative;
    z-index: 2;
}

.ai-window {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 460px;
    margin-left: auto;
}

.ai-window-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.ai-window-logo {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.ai-window-head strong { font-size: 15.5px; display: block; line-height: 1.2; }

.ai-window-sub {
    font-size: 12px;
    color: var(--ink-3);
}

.ai-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 5px 12px;
    border-radius: var(--radius-full);
}

.ai-models {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.ai-model-chip {
    flex: 1;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color var(--t-fast), color var(--t-fast);
}

.ai-model-chip:hover { border-color: var(--brand); color: var(--brand); }

.ai-model-chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.ai-chat {
    height: 220px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-msg {
    max-width: 82%;
    padding: 11px 15px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.55;
    animation: msgIn var(--t-mid);
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-msg-user {
    align-self: flex-end;
    background: var(--brand);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-msg-bot {
    align-self: flex-start;
    background: var(--bg-soft);
    color: var(--ink-2);
    border-bottom-left-radius: 4px;
}

.ai-typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 12px 15px;
    min-height: 40px;
}

.ai-typing .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    animation: typingBounce 1.2s infinite ease-in-out;
}

.ai-typing .dot:nth-child(2) { animation-delay: 0.15s; }
.ai-typing .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.ai-typing.hidden { display: none; }

.ai-input {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}

.ai-input-text {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--bg-soft);
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.ai-input-text::placeholder { color: var(--ink-3); }

.ai-input-text:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(35, 97, 224, 0.14);
}

.ai-input-send {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--brand);
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: border-color var(--t-fast);
}

.ai-input-send:hover { border-color: var(--brand-dark); }
.ai-input-send:active { border-color: var(--brand-dark); }

/* Floating chips */
.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    animation: floatY 5s ease-in-out infinite;
}

.float-chip i { color: var(--brand); }

.fc-1 { top: -18px; left: -30px; }
.fc-2 { bottom: 56px; right: -34px; animation-delay: 1.4s; }
.fc-3 { bottom: -20px; left: 8px; animation-delay: 2.6s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Split Layout ===== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split-text h2 { margin-bottom: 18px; }
.split-text p { margin-bottom: 18px; }
.split-text .lead { margin-bottom: 22px; }

.split-visual { display: flex; align-items: center; justify-content: center; }

.visual-card {
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    background:
        radial-gradient(320px 240px at 50% 0%, rgba(35, 97, 224, 0.08), transparent 65%),
        var(--surface);
    box-shadow: var(--shadow-md);
    transition: border-color var(--t-fast);
}

.visual-card:hover { border-color: var(--brand); }

.icon-big {
    font-size: 42px;
    color: var(--brand);
    margin-bottom: 24px;
}

.visual-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.visual-note {
    font-size: 16px;
    font-style: italic;
    color: var(--ink-2);
}

.visual-quote { padding: 44px 36px; }

/* ===== Feature Panel (Products) ===== */
.feature-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    padding: 48px;
    margin-bottom: 56px;
    overflow: hidden;
    position: relative;
}

.feature-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.feature-panel h3 { font-size: 32px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 14px; }
.feature-panel .lead { margin-bottom: 14px; }
.feature-panel p { margin-bottom: 20px; }

.feature-list {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--ink-2);
}

.feature-list i {
    color: var(--brand);
    font-size: 16px;
    margin-top: 3px;
}

.feature-panel-art {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.art-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 120px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    transition: border-color var(--t-fast);
}

.art-tile i { font-size: 26px; color: var(--brand); }
.art-tile:hover { border-color: var(--brand); }

/* ===== Card Grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: border-color var(--t-fast);
}

.card:hover { border-color: var(--brand); }

.card-icon {
    font-size: 26px;
    color: var(--brand);
    margin-bottom: 18px;
    display: inline-block;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }

.card-featured {
    position: relative;
    text-align: left;
    overflow: hidden;
}

.card-featured::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ===== Project thumnails ===== */
.project-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    object-position: center;
    margin-bottom: 20px;
}

.thumb-placeholder {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--brand);
    transition: color var(--t-fast);
}

.text-link:hover { color: var(--brand-dark); }

/* ===== Mission ===== */
.mission-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.mission-panel p { margin-bottom: 18px; }

.mission-statement {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    background: var(--brand-soft);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin: 24px 0 26px;
}

.quote-inline {
    font-size: 19px;
    font-style: italic;
    color: var(--brand-dark);
    border-left: 3px solid var(--brand);
    padding-left: 20px;
    margin-top: 8px;
}

/* ===== About chips ===== */
.about-grid-chips {
    width: 100%;
    max-width: 420px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.about-grid-chips span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: border-color var(--t-fast);
}

.about-grid-chips i { color: var(--brand); }
.about-grid-chips span:hover { border-color: var(--brand); }

/* ===== Founders ===== */
.founders-wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.founders-photo {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-soft);
}

.founders-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.founders-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.founder-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 22px;
    text-align: center;
    transition: border-color var(--t-fast);
}

.founder-card:hover { border-color: var(--brand); }

.founder-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.founder-label-2 { color: var(--accent); background: var(--accent-soft); }

.founder-card h3 { font-size: 18px; margin-bottom: 4px; }
.founder-card p { font-size: 13.5px; color: var(--ink-3); }

/* ===== Chip grid (What We Build) ===== */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}

.chip-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    background: var(--surface);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    transition: border-color var(--t-fast), color var(--t-fast);
}

.chip-item i { color: var(--brand); }
.chip-item:hover { border-color: var(--brand); color: var(--brand); }

/* ===== Mini cards ===== */
.mini-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.mini-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: border-color var(--t-fast);
}

.mini-card:hover { border-color: var(--brand); }

.mini-card h3 { margin-bottom: 10px; }
.mini-card p { font-size: 14.5px; margin-bottom: 10px; }

.mini-strong { font-size: 14.5px !important; }

/* ===== Timeline ===== */
.timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand), var(--accent));
    border-radius: 2px;
}

.event {
    position: relative;
    padding-left: 44px;
    margin-bottom: 38px;
}

.event:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.event-content {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 20px 24px;
    transition: border-color var(--t-fast);
}

.event-content:hover { border-color: var(--brand); }

.year {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.event-content h3 { margin-bottom: 6px; font-size: 18px; }
.event-content p { font-size: 14.5px; }

/* ===== Skills ===== */
.skill-columns {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 9px;
}

.skill-header span:last-child { color: var(--brand); }

.skill-track {
    height: 9px;
    border-radius: var(--radius-full);
    background: var(--line);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item.visible .skill-fill { width: var(--w); }

/* ===== Quote ===== */
.quote-section {
    background:
        radial-gradient(560px 320px at 50% 0%, rgba(35, 97, 224, 0.35), transparent 60%),
        var(--bg-dark-2);
    padding: 88px 0;
    text-align: center;
}

.quote-block {
    position: relative;
    font-size: clamp(24px, 4.5vw, 38px);
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.35;
    color: #fff;
    padding: 16px 8px;
}

.quote-icon {
    font-size: 34px;
    color: var(--brand);
    margin-bottom: 18px;
    filter: brightness(1.4);
}

/* ===== Footer ===== */
#contact {
    background: var(--bg-white);
    color: var(--ink);
    padding: 88px 0 40px;
    border-top: 1px solid var(--line);
}

#contact .container { text-align: center; }

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 24px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    border: 1px solid var(--line);
    padding: 6px;
}

#contact .section-title { color: var(--ink); }
#contact .section-sub { color: var(--ink-3); }

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.tagline {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 48px 0 24px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--ink-2);
    transition: color var(--t-fast), border-color var(--t-fast);
}

.socials a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.footer-links a {
    padding: 6px 12px;
    font-size: 14px;
    color: var(--ink-2);
    border-radius: var(--radius-full);
    transition: color var(--t-fast), background var(--t-fast);
}

.footer-links a:hover { color: var(--brand); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.copyright { font-size: 13.5px; color: var(--ink-3); }

/* ===== Back to Top ===== */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 800;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--t-mid), transform var(--t-mid), visibility var(--t-mid), border-color var(--t-fast);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover { border-color: var(--brand-dark); }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal { opacity: 1; transform: none; }
    .skill-fill { width: var(--w); }
    .hand-drawn-underline path { stroke-dashoffset: 0 !important; }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-visual .ai-window { margin-left: auto; margin-right: auto; max-width: 460px; }
    .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .feature-panel { grid-template-columns: 1fr; padding: 36px; }
    .founders-wrap { grid-template-columns: 1fr; }
    .fc-1 { left: -16px; }
    .fc-2 { right: -16px; }
}

@media (min-width: 901px) and (max-width: 1080px) {
    .nav-inner { gap: 12px; }
    .nav-links a { padding: 8px 9px; font-size: 13.5px; }
    .nav-inner .nav-cta:not(.nav-cta-register) { display: none; }
}

@media (max-width: 900px) {
    .nav-inner { gap: 12px; padding: 0 16px; }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        padding: 16px 24px 24px;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--t-mid), transform var(--t-mid), visibility var(--t-mid);
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a { padding: 12px 16px; }

    .nav-links .nav-register-link { display: block; }

    .nav-cta { display: none; }
    .menu-btn { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .section-title { font-size: 32px; }
    h1 { font-size: 40px; }
    .hero { padding-top: calc(var(--nav-height) + 32px); padding-bottom: 72px; }
    .employee-hero { padding-top: calc(var(--nav-height) + 28px); padding-bottom: 28px; }

    .hero-stats { gap: 28px; }
    .stat h2 { font-size: 26px; }
    .founders-cards { grid-template-columns: 1fr; }

    .card-grid { grid-template-columns: 1fr; }
    .mini-cards { grid-template-columns: 1fr; }

    .float-chip { display: none; }
    .fc-2 { display: none; }
}

@media (max-width: 480px) {
    h1 { font-size: 34px; }
    h2 { font-size: 30px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .mission-statement { font-size: 18px; }
    .employee-hero { padding-top: calc(var(--nav-height) + 20px); padding-bottom: 20px; }
    .employee-hero .section-title { font-size: 26px; }
    .reg-card-state { padding: 28px 16px; }
    .notice-box { padding: 16px; }
    .notice-box h2 { font-size: 16px; }
    .notice-box p { font-size: 13px; }
    .reg-status-icon { font-size: 44px; }
    .reg-success-icon { font-size: 44px; }
    .reg-error-icon { font-size: 44px; }
}

/* ===== Review Page Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 900;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    max-width: 1140px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo { display: inline-flex; align-items: center; }

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* ===== Employee Registration Page ===== */
.employee-hero {
    padding-top: calc(var(--nav-height) + 56px);
    padding-bottom: 40px;
    background: var(--bg-white);
}

.employee-hero-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.employee-hero-inner .section-title { margin-bottom: 10px; }

.register-section { background: var(--bg-light); min-height: 60vh; }

.notice-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--red);
    color: #fff;
    border: 2px solid var(--red-dark);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    margin-bottom: 36px;
    box-shadow: 0 6px 24px -10px rgba(185, 20, 18, 0.45);
}

.notice-box i {
    font-size: 26px;
    margin-top: 3px;
    flex-shrink: 0;
}

.notice-box h2 {
    font-size: 19px;
    margin-bottom: 8px;
    color: #fff;
}

.notice-box p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #fff;
    font-weight: 500;
}

.register-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 28px; }

.form-group .label,
.form-group > label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.req { color: var(--red); }

.field-hint {
    font-size: 13.5px;
    color: var(--ink-3);
    margin-bottom: 14px;
    line-height: 1.5;
}

.field-hint i { color: var(--brand); margin-right: 4px; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--surface);
    transition: border-color var(--t-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(35, 97, 224, 0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.skill-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    cursor: pointer;
    transition: border-color var(--t-fast);
    font-size: 14px;
    color: var(--ink-2);
    user-select: none;
}

.skill-check:hover { border-color: var(--brand); }

.skill-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
}

.ack-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-2);
}

.ack-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3px;
}

.field-error {
    display: none;
    font-size: 13px;
    color: var(--red-dark);
    margin-top: 8px;
    font-weight: 500;
}

.field-error.show { display: block; }

.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ===== Dedicated Loading & Success State Cards ===== */
.reg-view-panel {
    animation: fadeInView 0.35s ease forwards;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.reg-card-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 56px 44px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.reg-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reg-logo-badge {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--bg-light);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 10px;
}

.reg-state-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.reg-state-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.reg-state-sub {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 520px;
    margin-bottom: 28px;
}

/* Animated Progress Bar */
.reg-progress-track {
    width: 100%;
    max-width: 440px;
    height: 8px;
    background: #e8eaed;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    margin: 10px 0 16px;
}

.reg-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, var(--brand), #4285f4);
    border-radius: 99px;
    animation: indeterminateProgress 1.6s infinite cubic-bezier(0.65, 0.815, 0.735, 0.395);
}

@keyframes indeterminateProgress {
    0% { left: -35%; right: 100%; }
    60% { left: 100%; right: -90%; }
    100% { left: 100%; right: -90%; }
}

.reg-progress-hint {
    font-size: 13.5px;
    color: var(--ink-3);
    margin: 0;
}

.reg-progress-hint i { color: var(--brand); margin-right: 6px; }

/* Success State Elements */
.reg-success-icon {
    font-size: 64px;
    color: #1e8e3e;
    margin-bottom: 18px;
    animation: popIcon 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reg-error-icon {
    font-size: 64px;
    color: var(--red);
    margin-bottom: 18px;
}

.reg-status-icon {
    font-size: 64px;
    margin-bottom: 18px;
    animation: popIcon 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reg-status-icon.pending { color: #b45309; }
.reg-status-icon.accepted { color: #1e8e3e; }
.reg-status-icon.declined { color: var(--red); }

@keyframes popIcon {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.reg-pill-badge {
    display: inline-block;
    background: #e6f4ea;
    color: #137333;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 99px;
    margin-bottom: 14px;
}

.reg-summary-box {
    width: 100%;
    background: var(--bg-light);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 10px 0 24px;
    text-align: left;
}

.reg-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}

.reg-summary-row:last-child { border-bottom: none; }

.reg-summary-label {
    font-weight: 600;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.reg-summary-label i { color: var(--brand); width: 16px; }

.reg-summary-val {
    color: var(--ink);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.text-success { color: #137333 !important; font-weight: 600 !important; }

.reg-actions-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .register-form { padding: 28px 20px; }
    .reg-card-state { padding: 36px 20px; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .notice-box { padding: 20px; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
    .notice-box h2 { font-size: 17px; }
    .reg-summary-row { flex-direction: column; gap: 4px; }
    .reg-summary-val { text-align: left; max-width: 100%; }
    .reg-actions-row { flex-direction: column; }
    .reg-actions-row .btn { width: 100%; }
    .reg-status-icon { font-size: 52px; }
    .reg-success-icon { font-size: 52px; }
    .reg-error-icon { font-size: 52px; }
}

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

/* ===== Accepted Employees (team.html) ===== */
.team-section {
    background: var(--bg-light);
    min-height: 60vh;
    padding: 40px 0 80px;
}

.team-loading {
    text-align: center;
    color: var(--ink-muted);
    font-size: 14px;
    padding: 60px 0;
}

.team-loading i {
    animation: fa-spin 1s linear infinite;
    margin-right: 6px;
}

.team-empty {
    text-align: center;
    color: var(--ink-muted);
    padding: 60px 20px;
    background: var(--bg-white);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}

.team-empty i {
    font-size: 42px;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.team-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.team-empty p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -12px rgba(16, 28, 60, 0.18);
    border-color: var(--brand-soft);
}

.team-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px -6px rgba(35, 97, 224, 0.5);
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 6px;
    word-break: break-word;
}

.team-gmail {
    font-size: 13px;
    color: var(--ink-muted);
    margin: 0 0 16px;
    word-break: break-word;
}

.team-gmail i {
    margin-right: 6px;
    color: var(--brand);
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 18px;
}

.team-chip {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 16px;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f4ea;
    color: #137333;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

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