/* Netpix POS portal - shared styles. Marketing redesign 2026-05-12.
   Dark theme, blue accent, modern B2B SaaS look. Pure CSS, no framework. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
    --bg: #050608;
    --bg-elev: #0c0e14;
    --bg-card: #11141c;
    --bg-card-hover: #161a24;
    --border: #1f2330;
    --border-strong: #2a2f3d;
    --text: #e8ecf3;
    --text-muted: #8a93a4;
    --text-dim: #5a6173;
    --accent: #4da6ff;
    --accent-soft: rgba(77, 166, 255, 0.12);
    --accent-strong: #2b8eff;
    --accent-hover: #6db5ff;
    --accent-glow: rgba(77, 166, 255, 0.35);
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.12);
    --error: #ef4444;
    --error-soft: rgba(239, 68, 68, 0.12);
    --warn: #f59e0b;
    --warn-soft: rgba(245, 158, 11, 0.12);
    --grad-hero: radial-gradient(ellipse at top, rgba(77, 166, 255, 0.15), transparent 60%);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
}
.footer { margin-top: auto; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

/* ========== NAV ========== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(5, 6, 8, 0.85);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto; padding: 16px 24px;
}
.nav .brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; letter-spacing: 0.5px; color: var(--text);
    text-decoration: none; font-size: 16px;
}
.nav .brand .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}
.nav .brand .brand-logo {
    width: 28px; height: 28px; border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 0 12px var(--accent-glow);
}
.nav .links { display: flex; align-items: center; gap: 8px; }
.nav .links a {
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    padding: 8px 14px; border-radius: 6px; transition: all 0.15s;
}
.nav .links a:hover { color: var(--text); background: var(--bg-card); }
.nav .links a.cta {
    background: var(--accent); color: #000; font-weight: 700;
}
.nav .links a.cta:hover { background: var(--accent-hover); color: #000; }

/* ========== HERO ========== */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 24px 60px;
    background: var(--grad-hero);
    overflow: hidden;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #fff 0%, #b8c2d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .lede {
    font-size: 18px;
    max-width: 620px;
    margin: 0 auto 32px;
    color: var(--text-muted);
    line-height: 1.6;
}
.hero .pill {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 22px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(77, 166, 255, 0.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-meta {
    margin-top: 18px;
    color: var(--text-dim);
    font-size: 13px;
}
.hero-meta strong { color: var(--text-muted); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 26px;
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--accent); color: #000;
    border: none; border-radius: 10px;
    cursor: pointer; text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn:hover {
    background: var(--accent-hover);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}
.btn:active { transform: translateY(0); }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: none;
}
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-ghost {
    background: var(--bg-card); color: var(--text);
    box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-card-hover); color: var(--text); transform: none; }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ========== SECTIONS ========== */
.section { padding: 60px 24px; }
.section-narrow { max-width: 720px; margin: 0 auto; }
.section-wide { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
    text-align: center;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    text-align: center;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ========== FEATURE GRID ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px 22px;
    transition: all 0.2s;
}
.feature:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.feature .icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 10px;
    font-size: 22px;
    margin-bottom: 16px;
}
.feature h3 {
    font-size: 16px; font-weight: 700;
    margin-bottom: 8px; color: var(--text);
}
.feature p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========== STEPS ========== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    counter-reset: step;
}
.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 22px;
    position: relative;
    counter-increment: step;
}
.step::before {
    content: counter(step);
    position: absolute;
    top: -14px; left: 22px;
    width: 32px; height: 32px;
    background: var(--accent);
    color: #000;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px;
}
.step h3 {
    font-size: 16px; font-weight: 700;
    margin-top: 8px; margin-bottom: 6px;
    color: var(--text);
}
.step p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ========== CARDS / FORMS ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 18px;
}
.card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}
.card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--text); }
h2 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
h3 {
    font-size: 12px; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.6; }

label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 18px 0 8px;
}
input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid transparent;
}
.alert.error { background: var(--error-soft); border-color: var(--error); color: #fca5a5; }
.alert.success { background: var(--success-soft); border-color: var(--success); color: #6ee7b7; }
.alert.info { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }
.alert.warn { background: var(--warn-soft); border-color: var(--warn); color: #fbbf24; }

/* ========== KEY-VALUE PAIRS ========== */
.kv-grid {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 12px 24px;
    align-items: baseline;
}
.kv-grid .k {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.kv-grid .v { color: var(--text); font-size: 14px; }

/* ========== CODE BOX ========== */
.code-box {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 14px 16px;
    font-family: 'JetBrains Mono', Consolas, 'SF Mono', monospace;
    font-size: 13px;
    color: var(--accent);
    word-break: break-all;
    margin: 8px 0 16px;
    user-select: all;
    line-height: 1.5;
}

/* ========== UTIL ========== */
.muted { color: var(--text-muted); font-size: 13px; }
.dim { color: var(--text-dim); font-size: 12px; }
.center { text-align: center; }
.flex { display: flex; }
.flex-gap { display: flex; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 32px; }

/* ========== FOOTER ========== */
.footer {
    margin-top: 60px;
    padding: 40px 24px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-elev);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}
.footer-brand .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
}
.footer-brand .brand-logo {
    width: 22px; height: 22px; border-radius: 5px;
    object-fit: cover;
}
.footer-meta {
    color: var(--text-dim);
    font-size: 12px;
    text-align: right;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-meta { text-align: center; }
    .footer-links { justify-content: center; }
}

/* ========== SCROLL-IN ANIMATIONS ========== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out backwards; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.15s; }
.fade-up-3 { animation-delay: 0.25s; }
.fade-up-4 { animation-delay: 0.35s; }
