/* ============================================================
   demo.boulleytechnology.ca — Landing Page Styles
   Matches the Boulley Technology design system:
   #0f0f23 bg · #667eea → #764ba2 primary · #00d4ff accent
   ============================================================ */

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

:root {
    --bg:          #0f0f23;
    --bg-darker:   #09091a;
    --bg-card:     rgba(255,255,255,0.03);
    --border:      rgba(255,255,255,0.08);
    --border-hover:rgba(102,126,234,0.35);
    --text:        #e8e8f0;
    --text-dim:    #8888aa;
    --text-faint:  #555;
    --primary:     #667eea;
    --primary-2:   #764ba2;
    --accent:      #00d4ff;
    --success:     #28c840;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background noise / ambient glows */
body::before {
    content: '';
    position: fixed; inset: 0;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(102,126,234,0.08), transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(118,75,162,0.06), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

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

/* ── Nav ─────────────────────────────────────────────── */
.main-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all .25s;
}
.main-nav.scrolled {
    background: rgba(15, 15, 35, 0.85);
    border-bottom-color: var(--border);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 700; font-size: 18px;
}
.logo-icon {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff; font-weight: 800; font-size: 13px;
    box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}
.logo-sub {
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    padding: 2px 8px; border: 1px solid rgba(0,212,255,0.3);
    border-radius: 20px;
    margin-left: 4px;
}

.nav-links {
    display: flex; gap: 28px; list-style: none; align-items: center;
}
.nav-links a {
    color: var(--text-dim); font-weight: 500; font-size: 14px;
    transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    color: var(--text) !important;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-radius: 8px;
    font-size: 13px !important;
    box-shadow: 0 4px 14px rgba(102,126,234,0.3);
}
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); }

@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-links .nav-cta { display: inline-block; }
    .nav-links { display: flex; gap: 12px; }
    .nav-links li:not(:last-child) { display: none; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(102,126,234,0.18), transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(0,212,255,0.10), transparent 50%);
    animation: heroBgFloat 12s ease-in-out infinite alternate;
}
@keyframes heroBgFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-20px, 20px) scale(1.05); }
}

.hero-container {
    position: relative; z-index: 1;
    max-width: 960px; margin: 0 auto; padding: 0 24px;
    text-align: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(102,126,234,0.1);
    border: 1px solid rgba(102,126,234,0.25);
    border-radius: 20px;
    font-size: 13px; color: var(--primary);
    margin-bottom: 28px;
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(40,200,64,0.7);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(40,200,64,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(40,200,64,0); }
    100% { box-shadow: 0 0 0 0 rgba(40,200,64,0); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-dim);
    max-width: 640px; margin: 0 auto 48px;
    line-height: 1.7;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 720px; margin: 0 auto;
}
@media (max-width: 640px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
.hero-stat {
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.hero-stat-num {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.hero-stat-num .unit { font-size: 0.55em; margin-left: 2px; font-weight: 700; }
.hero-stat-label {
    font-size: 11px; color: var(--text-faint);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-top: 8px;
}

/* ── Sections ────────────────────────────────────────── */
.section { padding: 100px 0; position: relative; }
.section-darker { background: var(--bg-darker); }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}
.eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 12px;
    background: rgba(102,126,234,0.1);
    border-radius: 20px;
    margin-bottom: 18px;
}
.section-head h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.section-head p {
    color: var(--text-dim);
    font-size: 1.05rem;
}

/* ── Product cards ───────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.product-grid-single {
    grid-template-columns: minmax(0, 540px);
    justify-content: center;
}

.product-card {
    position: relative;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex; flex-direction: column;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: rgba(102,126,234,0.04);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(102,126,234,0.15);
}

.product-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 20px;
}
.product-icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    font-size: 28px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.1));
    border: 1px solid rgba(102,126,234,0.2);
}
.product-tag {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 5px 10px;
    border-radius: 20px;
}
.tag-live {
    color: var(--success);
    background: rgba(40,200,64,0.1);
    border: 1px solid rgba(40,200,64,0.3);
}
.tag-soon {
    color: #ffbd2e;
    background: rgba(255,189,46,0.1);
    border: 1px solid rgba(255,189,46,0.3);
}

.product-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.product-tagline {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 3.2em;
}
.product-features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}
.product-features li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 0.9rem;
    color: var(--text);
}
.product-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 14px; height: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13.5 4L6 11.5 2.5 8" stroke="black" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
            mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13.5 4L6 11.5 2.5 8" stroke="black" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
}
.product-actions {
    display: flex; gap: 10px;
    flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 6px 20px rgba(102,126,234,0.35);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(102,126,234,0.5);
}
.btn-ghost {
    color: var(--text-dim);
    background: transparent;
    border-color: var(--border);
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--primary);
    background: rgba(102,126,234,0.08);
}
.btn-disabled {
    color: var(--text-faint);
    background: rgba(255,255,255,0.03);
    border-color: var(--border);
    cursor: not-allowed;
}
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ── How it works ────────────────────────────────────── */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.how-card {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all .3s;
}
.how-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}
.how-num {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px;
    margin-bottom: 16px;
    font-size: 18px; font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(102,126,234,0.3);
}
.how-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.how-card p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

.creds-card {
    max-width: 700px; margin: 0 auto;
    display: flex; align-items: center; gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(0,212,255,0.04));
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 18px;
}
.creds-icon {
    font-size: 42px;
    width: 64px; height: 64px;
    display: grid; place-items: center;
    background: rgba(102,126,234,0.12);
    border-radius: 14px;
    flex-shrink: 0;
}
.creds-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.creds-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 14px; }
.creds-row { display: flex; gap: 32px; flex-wrap: wrap; }
.creds-label {
    display: block;
    font-size: 10px; color: var(--text-faint);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.creds-row code {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    color: var(--accent);
    background: rgba(0,212,255,0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid rgba(0,212,255,0.2);
}

@media (max-width: 560px) {
    .creds-card { flex-direction: column; text-align: center; padding: 24px; }
    .creds-row { justify-content: center; }
}

/* ── CTA section ─────────────────────────────────────── */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background:
        radial-gradient(ellipse at center, rgba(102,126,234,0.15), transparent 60%),
        var(--bg-darker);
}
.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.cta-section p {
    color: var(--text-dim);
    max-width: 540px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
}
.cta-buttons {
    display: flex; gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
    padding: 64px 0 24px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; margin-bottom: 14px;
}
.footer-about {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}
.site-footer h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
    color: var(--text-dim);
    font-size: 0.9rem;
}
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 0;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.85rem;
    text-align: center;
}

/* ── Reveal animation ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
