:root {
    --bg: #000000;
    --bg-2: #050807;
    --card: #0a0d0c;
    --card-2: #070a09;
    --border: rgba(255, 255, 255, 0.10);
    --border-soft: rgba(255, 255, 255, 0.06);
    --text: #f4f7f6;
    --muted: #8a938f;
    --muted-dim: #5f6764;
    --accent: #2dd4bf;
    --accent-bright: #67e8f9;
    --accent-glow: rgba(45, 212, 191, 0.35);
    --accent-soft: rgba(45, 212, 191, 0.08);
    --font-head: 'Archivo', 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Space Grotesk', 'Archivo', system-ui, sans-serif;
}

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

html, body { min-height: 100%; }

body {
    background: radial-gradient(140% 120% at 50% -10%, var(--bg-2) 0%, var(--bg) 60%);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Background layers ---- */
.bg-glow,
.bg-stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.bg-glow {
    background:
        radial-gradient(60% 45% at 50% -5%, rgba(45, 212, 191, 0.20), transparent 60%),
        radial-gradient(45% 40% at 85% 100%, rgba(103, 232, 249, 0.10), transparent 55%),
        radial-gradient(35% 30% at 10% 80%, rgba(45, 212, 191, 0.06), transparent 60%);
}
.bg-stars {
    opacity: 0.55;
    background-repeat: repeat;
    background-size: 240px 240px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%3E%3Cg%20fill='white'%3E%3Ccircle%20cx='12'%20cy='20'%20r='0.8'%20opacity='0.5'/%3E%3Ccircle%20cx='34'%20cy='60'%20r='0.6'%20opacity='0.35'/%3E%3Ccircle%20cx='60'%20cy='15'%20r='1'%20opacity='0.6'/%3E%3Ccircle%20cx='82'%20cy='92'%20r='0.7'%20opacity='0.4'/%3E%3Ccircle%20cx='110'%20cy='40'%20r='0.6'%20opacity='0.3'/%3E%3Ccircle%20cx='132'%20cy='112'%20r='0.9'%20opacity='0.55'/%3E%3Ccircle%20cx='150'%20cy='26'%20r='0.7'%20opacity='0.4'/%3E%3Ccircle%20cx='176'%20cy='72'%20r='0.6'%20opacity='0.3'/%3E%3Ccircle%20cx='200'%20cy='30'%20r='1'%20opacity='0.6'/%3E%3Ccircle%20cx='222'%20cy='100'%20r='0.7'%20opacity='0.45'/%3E%3Ccircle%20cx='20'%20cy='132'%20r='0.8'%20opacity='0.45'/%3E%3Ccircle%20cx='46'%20cy='172'%20r='0.6'%20opacity='0.3'/%3E%3Ccircle%20cx='70'%20cy='202'%20r='0.9'%20opacity='0.5'/%3E%3Ccircle%20cx='96'%20cy='150'%20r='0.6'%20opacity='0.3'/%3E%3Ccircle%20cx='120'%20cy='190'%20r='0.7'%20opacity='0.4'/%3E%3Ccircle%20cx='146'%20cy='160'%20r='0.8'%20opacity='0.45'/%3E%3Ccircle%20cx='166'%20cy='210'%20r='0.6'%20opacity='0.3'/%3E%3Ccircle%20cx='190'%20cy='176'%20r='1'%20opacity='0.55'/%3E%3Ccircle%20cx='216'%20cy='150'%20r='0.7'%20opacity='0.4'/%3E%3Ccircle%20cx='30'%20cy='230'%20r='0.6'%20opacity='0.3'/%3E%3Ccircle%20cx='100'%20cy='226'%20r='0.8'%20opacity='0.45'/%3E%3Ccircle%20cx='160'%20cy='122'%20r='0.6'%20opacity='0.3'/%3E%3Ccircle%20cx='206'%20cy='216'%20r='0.7'%20opacity='0.4'/%3E%3Ccircle%20cx='55'%20cy='108'%20r='0.6'%20opacity='0.35'/%3E%3Ccircle%20cx='136'%20cy='70'%20r='0.7'%20opacity='0.4'/%3E%3Ccircle%20cx='184'%20cy='120'%20r='0.6'%20opacity='0.3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Brand mark ---- */
.nomadz-mark {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
}

/* ---- Topbar ---- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px clamp(20px, 5vw, 48px);
    max-width: 1160px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.logo-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.02em;
    color: #fff;
}
.logo-sub {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    color: var(--accent);
    text-transform: uppercase;
}

/* ---- Buttons ---- */
.btn-outline {
    flex: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* ---- Page + hero ---- */
.page {
    max-width: 1160px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 48px) 40px;
}
.hero {
    margin: clamp(16px, 4vw, 40px) 0 clamp(28px, 4vw, 44px);
}
.hero-title {
    font-family: var(--font-head);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    font-size: clamp(32px, 7vw, 60px);
    line-height: 0.98;
    color: #fff;
}
.hero-sub {
    margin-top: 14px;
    font-size: clamp(11px, 2vw, 13px);
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---- Grid ---- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* ---- Cards ---- */
.card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    min-height: 128px;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
}
.card--active {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.card--active:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--card-2);
    box-shadow: 0 0 0 1px var(--accent-glow), 0 14px 40px rgba(45, 212, 191, 0.16);
}

.card-icon {
    flex: none;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    border: 1px solid rgba(45, 212, 191, 0.18);
    color: var(--accent);
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.14);
    transition: box-shadow 0.25s ease, color 0.25s ease;
}
.card-icon .icon {
    width: 27px;
    height: 27px;
    filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.5));
}
.card--active:hover .card-icon {
    color: var(--accent-bright);
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.30);
}

/* Real product logo (raster) — fills the container, corners clipped */
.card-icon:has(.icon-img) {
    padding: 0;
    overflow: hidden;
    background: #000;
}
.icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}
.card--active:hover .card-icon:has(.icon-img) {
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.30);
}

.card-body { min-width: 0; padding-right: 14px; }
.card-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.card-note {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(45, 212, 191, 0.22);
    padding: 2px 8px;
    border-radius: 999px;
}
.card-desc {
    margin-top: 7px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

.card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    color: var(--muted-dim);
    transition: color 0.25s ease, transform 0.25s ease;
}
.card--active:hover .card-arrow {
    color: var(--accent-bright);
    transform: translate(2px, -2px);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ---- Placeholder cards ---- */
.card--soon {
    opacity: 0.45;
    background: var(--card-2);
}
.card--soon .card-icon {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-soft);
    color: var(--muted);
}
.card--soon .card-icon .icon { filter: none; }
.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 10px;
}

/* ---- Footer ---- */
.footer {
    margin-top: clamp(36px, 6vw, 64px);
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-dim);
    text-align: center;
}

/* ---- Login ---- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}
.login-inner {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.login-mark {
    width: 64px;
    height: 64px;
    color: #fff;
    filter: drop-shadow(0 0 16px var(--accent-glow)) drop-shadow(0 0 34px rgba(45, 212, 191, 0.25));
}
.login-brand {
    margin-top: 22px;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 26px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
}
.login-tag {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}
.login-card {
    margin-top: 30px;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.field-label {
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}
.login-input {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    letter-spacing: 0.05em;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input::placeholder { color: var(--muted-dim); letter-spacing: 0.1em; }
.login-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16), 0 0 18px rgba(45, 212, 191, 0.20);
}
.login-btn {
    margin-top: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s;
}
.login-btn:hover {
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.45), 0 0 0 1px rgba(45, 212, 191, 0.4);
}
.login-btn:active { transform: translateY(1px); }
.login-error {
    background: rgba(248, 81, 73, 0.10);
    border: 1px solid rgba(248, 81, 73, 0.35);
    color: #ff8a80;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .logo-sub { display: none; }
    .topbar { padding: 18px 18px; }
    .btn-outline { padding: 9px 14px; }
}
@media (max-width: 380px) {
    .grid { grid-template-columns: 1fr; }
}
