/* /assets/css/styles.css
   QRCraft · Corporate clean, light/dark toggle
*/

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

html, body {
    margin: 0;
    padding: 0;
}

/* Light theme defaults */
html[data-theme="light"] {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-alt: #eef1f7;
    --text: #101522;
    --text-muted: #6c7388;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --border-soft: rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --radius: 10px;
}

/* Dark theme overrides */
html[data-theme="dark"] {
    --bg: #050814;
    --surface: #0b1020;
    --surface-alt: #111827;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.16);
    --border-soft: rgba(148, 163, 184, 0.3);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.8);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 55%), var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* Layout */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(15,23,42,0.8), rgba(15,23,42,0.0));
    color: #fff;
}

html[data-theme="light"] .site-header {
    background: linear-gradient(to bottom, rgba(255,255,255,0.94), rgba(255,255,255,0.0));
    color: var(--text);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 40%;
    border: 1px solid rgba(148,163,184,0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: radial-gradient(circle at 30% 0, rgba(56,189,248,0.5), transparent 60%), #020617;
}

html[data-theme="light"] .brand-logo {
    background: radial-gradient(circle at 30% 0, rgba(37,99,235,0.4), transparent 60%), #0f172a;
    color: #e5e7eb;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.92rem;
    flex: 1;
}

.main-nav a {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.main-nav a:hover {
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Theme pill */

.theme-pill {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    padding: 0.25rem 0.8rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    cursor: pointer;
}

html[data-theme="light"] .theme-pill {
    background: #f3f4f6;
    color: #111827;
}

/* Buttons */

.btn {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.45rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.btn.primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(148,163,184,0.6);
    color: inherit;
}

/* Main & cards */

.page-main {
    padding: 2rem 0 3rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2.8rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    margin: 0 0 0.8rem;
}

.hero p {
    margin: 0 0 1.2rem;
    color: var(--text-muted);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.badge-soft {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
}

.panel {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 1.3rem 1.4rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(148,163,184,0.25);
    padding: 1.4rem 0 1.7rem;
    background: radial-gradient(circle at bottom, rgba(148,163,184,0.12), transparent 60%), transparent;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.87rem;
    color: var(--text-muted);
}

.footer-links a {
    margin-left: 1rem;
    color: var(--text-muted);
    text-decoration: none;
}

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

/* Responsive */

@media (max-width: 800px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .main-nav {
        display: none;
    }
}


