/* ===== AIOT — Global Styles ===== */
:root {
    --brand:       #2563eb;
    --brand-dark:  #1d4ed8;
    --brand-light: #dbeafe;
    --text:        #111827;
    --text-muted:  #6b7280;
    --bg:          #ffffff;
    --bg-alt:      #f9fafb;
    --border:      #e5e7eb;
    --radius:      8px;
    --shadow:      0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:   0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}
img { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }

/* ── Nav ── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: .875rem 0;
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
    font-size: 1.25rem; font-weight: 700; color: var(--text);
    text-decoration: none;
}
.nav__logo span { color: var(--brand); }
.nav__links { display: flex; gap: 1.75rem; list-style: none; }
.nav__links a { color: var(--text-muted); font-size: .9rem; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }

/* ── Hero ── */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%);
}
.hero__badge {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    max-width: 760px;
    margin: 0 auto .75rem;
}
.hero__title span { color: var(--brand); }
.hero__sub {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius);
    font-size: 1rem; font-weight: 600;
    cursor: pointer; border: none; transition: all .15s;
    text-decoration: none !important;
}
.btn--primary {
    background: var(--brand); color: #fff;
}
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--lg { padding: .9rem 2.25rem; font-size: 1.05rem; }

/* ── Features grid ── */
.features { padding: 5rem 0; }
.features__header { text-align: center; margin-bottom: 3rem; }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -.015em;
}
.section-sub {
    color: var(--text-muted);
    margin-top: .5rem;
    font-size: 1.05rem;
}
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
    width: 44px; height: 44px;
    background: var(--brand-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.card__title { font-weight: 700; margin-bottom: .4rem; }
.card__desc  { font-size: .9rem; color: var(--text-muted); }

/* ── Download section ── */
.download-hero {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
}
.download-hero .section-title { color: #fff; }
.download-hero .section-sub   { color: rgba(255,255,255,.75); }
.version-tag {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: .25rem .75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.btn--white {
    background: #fff;
    color: var(--brand);
}
.btn--white:hover { background: #f0f9ff; }

/* ── Download page table ── */
.dl-table {
    width: 100%; border-collapse: collapse; margin-top: 1.5rem;
    font-size: .9rem;
}
.dl-table th, .dl-table td {
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    text-align: left;
}
.dl-table th { background: var(--bg-alt); font-weight: 600; }

/* ── Prose (Privacy, Terms) ── */
.prose { max-width: 720px; margin: 0 auto; padding: 4rem 1.25rem; }
.prose h1 { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .6rem; }
.prose p  { margin-bottom: 1rem; color: var(--text-muted); }
.prose ul { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-muted); }
.prose li { margin-bottom: .35rem; }
.prose a  { color: var(--brand); }
.last-updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 2rem; }

/* ── Footer ── */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}
.footer__inner {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
}
.footer__copy { color: var(--text-muted); font-size: .875rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: var(--text-muted); font-size: .875rem; }
.footer__links a:hover { color: var(--brand); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .nav__links { gap: 1rem; }
    .hero { padding: 4rem 0 3.5rem; }
    .footer__inner { flex-direction: column; align-items: flex-start; }
}
