/* ============================================================
   Illuxsys — global stylesheet
   Modern dark "lux" tech aesthetic with a glowing accent.
   ============================================================ */

:root {
    --bg:        #0a0c14;
    --bg-soft:   #11141f;
    --surface:   #161a28;
    --surface-2: #1d2233;
    --border:    #272d42;
    --text:      #e8ebf5;
    --text-mute: #9aa3bd;
    --accent:    #5b8cff;
    --accent-2:  #9b5bff;
    --accent-3:  #2fe6c4;
    --glow:      0 0 40px rgba(91, 140, 255, 0.35);
    --radius:    16px;
    --radius-sm: 10px;
    --maxw:      1140px;
    --font-head: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { color: var(--text-mute); }
a  { color: inherit; text-decoration: none; transition: color .2s ease; }

.gradient-text {
    background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .98rem;
    padding: 14px 26px; border: none; border-radius: 50px; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 12, 20, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.brand-mark { color: var(--accent); font-size: 1.1rem; filter: drop-shadow(0 0 8px var(--accent)); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-mute); font-weight: 500; font-size: .96rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px;
}
.nav-cta { color: #fff !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--accent-3); margin-bottom: 16px;
}
.section-head p { font-size: 1.1rem; margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 100px; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(91,140,255,.22), transparent 60%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { margin-bottom: 22px; }
.hero p.lead { font-size: 1.25rem; max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; margin-top: 72px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-head); font-size: 2.2rem; color: var(--text); }
.hero-stats .stat span { color: var(--text-mute); font-size: .92rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(91,140,255,.18), rgba(155,91,255,.18));
    font-size: 1.5rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split ul { list-style: none; margin-top: 24px; }
.split ul li { padding: 12px 0 12px 32px; position: relative; border-bottom: 1px solid var(--border); }
.split ul li::before { content: '✦'; position: absolute; left: 0; color: var(--accent-3); }
.media-box {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; min-height: 320px;
    display: grid; place-items: center; box-shadow: var(--glow);
}
.code-window { width: 100%; font-family: 'Courier New', monospace; font-size: .85rem; }
.code-window .dots { display: flex; gap: 7px; margin-bottom: 18px; }
.code-window .dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.code-window pre { color: var(--text-mute); line-height: 1.9; white-space: pre-wrap; }
.code-window .tk-key { color: var(--accent); }
.code-window .tk-str { color: var(--accent-3); }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--font-head); font-weight: 800; font-size: 1.6rem;
    color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; min-width: 48px;
}
.step h3 { margin-bottom: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, rgba(91,140,255,.12), rgba(155,91,255,.12));
    border: 1px solid var(--border); border-radius: 24px; padding: 64px 48px; text-align: center;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 540px; margin: 0 auto 32px; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info ul { list-style: none; margin-top: 28px; }
.contact-info li { margin-bottom: 22px; }
.contact-info li span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-3); margin-bottom: 4px; }
.contact-info li a, .contact-info li p { color: var(--text); font-size: 1.05rem; }

form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: .88rem; font-weight: 500; margin-bottom: 6px; display: block; }
input, select, textarea {
    width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 13px 16px; color: var(--text); font-family: var(--font-body); font-size: .98rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,.15); }
textarea { resize: vertical; min-height: 130px; }
.field-error { border-color: #ff6b6b !important; }
.error-msg { color: #ff8585; font-size: .82rem; margin-top: -10px; }

.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 8px; font-size: .96rem; }
.alert-success { background: rgba(47,230,196,.12); border: 1px solid rgba(47,230,196,.4); color: var(--accent-3); }
.alert-error   { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4); color: #ff8585; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-top: 64px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col li { color: var(--text-mute); font-size: .94rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 0; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px;
}
.footer-bottom p, .footer-bottom a { color: var(--text-mute); font-size: .88rem; }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer-legal .divider { color: var(--accent); font-size: .6rem; opacity: .6; user-select: none; }

/* ---------- Legal / content pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }

/* ---------- Site map ---------- */
.sitemap-list { list-style: none; margin-top: 8px; }
.sitemap-list li { margin-bottom: 10px; }
.sitemap-list a { color: var(--text-mute); }
.sitemap-list a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
        background: var(--bg-soft); border-bottom: 1px solid var(--border);
        padding: 12px 24px 24px; transform: translateY(-120%); transition: transform .3s ease; align-items: stretch;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
    .nav-links a.active::after { display: none; }
    .nav-cta { margin-top: 12px; text-align: center; justify-content: center; }

    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    section { padding: 64px 0; }
    .hero { padding: 72px 0 56px; }
    .hero-stats { gap: 28px; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 44px 24px; }
}
