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

:root {
    --blue:    #03a9f4;
    --blue-dk: #0288d1;
    --orange:  #ff9800;
    --text:    #0d1117;
    --text-2:  #4b5563;
    --text-3:  #9ca3af;
    --surface: #ffffff;
    --bg:      #f0f4f8;
    --border:  rgba(0,0,0,.08);
    --radius:  14px;
    --shadow:  0 4px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.flash-layout-slot {
    padding: 16px 6% 0;
}

.flash-layout-slot #flash-messages {
    width: min(100%, 980px);
    margin: 0 auto;
}

.flash-layout-slot .alert {
    margin-bottom: 10px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; gap: 32px;
    padding: 0 6%; height: 68px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 18px; letter-spacing: -.3px;
    flex-shrink: 0;
}
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a {
    font-size: 14px; font-weight: 500; color: var(--text-2);
    transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: 9px; font-size: 14px;
    font-weight: 600; cursor: pointer; border: none;
    transition: background .15s, transform .1s, box-shadow .15s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(3,169,244,.3); }
.btn-primary:hover { background: var(--blue-dk); box-shadow: 0 4px 16px rgba(3,169,244,.4); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: rgba(3,169,244,.07); }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 11px; }

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    padding: 100px 6% 80px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(3,169,244,.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(3,169,244,.1); color: var(--blue);
    font-size: 13px; font-weight: 600;
    padding: 5px 14px; border-radius: 20px;
    margin-bottom: 24px;
}
.hero-badge .mdi { font-size: 15px; }
.hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.08;
    max-width: 820px;
    margin-bottom: 22px;
}
.hero h1 span { color: var(--blue); }
.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-2);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 400;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }
.hero-stats {
    display: flex; gap: 48px; flex-wrap: wrap; justify-content: center;
}
.stat { text-align: center; }
.stat-num {
    font-size: 28px; font-weight: 800; letter-spacing: -1px;
    color: var(--text); line-height: 1;
}
.stat-num span { color: var(--blue); }
.stat-label { font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ── SECTION SHARED ──────────────────────────────────────────────── */
section { padding: 88px 6%; }
.section-label {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--blue);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800; letter-spacing: -1px;
    margin-bottom: 14px;
    max-width: 640px;
}
.section-sub {
    font-size: 17px; color: var(--text-2);
    max-width: 560px; margin-bottom: 52px;
}
.centered { text-align: center; margin: 0 auto; }

/* ── FEATURES ────────────────────────────────────────────────────── */
.features { background: var(--bg); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 52px;
}
.feature-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 18px;
    background: rgba(3,169,244,.1); color: var(--blue);
}
.feature-icon.orange { background: rgba(255,152,0,.1); color: var(--orange); }
.feature-icon.green  { background: rgba(76,175,80,.1);  color: #43a047; }
.feature-icon.purple { background: rgba(156,39,176,.1); color: #8e24aa; }
.feature-icon.red    { background: rgba(244,67,54,.1);  color: #e53935; }
.feature-icon.teal   { background: rgba(0,150,136,.1);  color: #00897b; }
.feature-card h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 8px;
    letter-spacing: -.2px;
}
.feature-card p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ── HOW IT WORKS ────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    margin-top: 52px;
    counter-reset: step;
    position: relative;
    max-width: 1200px; margin-left: auto; margin-right: auto;
}
.steps::before {
    content: '';
    position: absolute;
    top: 28px; left: 56px; right: 56px;
    height: 2px; background: var(--border);
    z-index: 0;
}
.step {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 0 20px;
    position: relative; z-index: 1;
    counter-increment: step;
}
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800;
    background: var(--surface); border: 2px solid var(--blue);
    color: var(--blue); margin-bottom: 18px;
    box-shadow: 0 0 0 6px var(--surface);
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ── DEVICE PREVIEW ──────────────────────────────────────────────── */
.preview { background: var(--bg); }
.preview-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.preview-text .section-title { max-width: 100%; }
.preview-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.preview-list li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 15px; color: var(--text-2);
}
.preview-list li .mdi {
    font-size: 20px; color: var(--blue);
    flex-shrink: 0; margin-top: 1px;
}
.preview-list strong { color: var(--text); font-weight: 600; }
.preview-ui {
    background: #0d1117;
    border-radius: 20px;
    padding: 6px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.preview-ui-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px 6px;
}
.preview-ui-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-ui-dot:nth-child(1) { background: #ff5f57; }
.preview-ui-dot:nth-child(2) { background: #febc2e; }
.preview-ui-dot:nth-child(3) { background: #28c840; }
.preview-ui-screen {
    background: #f0f4f8;
    border-radius: 14px; padding: 16px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.mini-card {
    background: #fff; border-radius: 10px;
    padding: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.mini-card-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 10px;
}
.mini-card-icon.on  { background: #ffc107; color: #fff; }
.mini-card-icon.off { background: rgba(0,0,0,.06); color: #9ca3af; }
.mini-card-icon.blue { background: rgba(3,169,244,.15); color: var(--blue); }
.mini-card-val { font-size: 22px; font-weight: 300; color: var(--text); }
.mini-card-lbl { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.mini-card-wide { grid-column: span 2; display: flex; align-items: center; gap: 10px; }
.mini-card-wide .mini-card-icon { margin: 0; }
.mini-card-wide .mini-card-lbl { font-size: 12px; }

/* ── PRICING ─────────────────────────────────────────────────────── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
    justify-content: center;
    gap: 20px; margin-top: 52px;
    align-items: start;
    max-width: 1200px; margin-left: auto; margin-right: auto;
}
.plan {
    background: var(--surface); border-radius: 18px;
    padding: 32px 28px; border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan--featured {
    background: linear-gradient(135deg, #03a9f4 0%, #0288d1 100%);
    border-color: transparent; color: #fff;
}
.plan-label {
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-3);
    margin-bottom: 8px;
}
.plan--featured .plan-label { color: rgba(255,255,255,.7); }
.plan-name { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.plan-price {
    font-size: 42px; font-weight: 800; letter-spacing: -2px;
    line-height: 1; margin-bottom: 4px;
}
.plan-price sup { font-size: 22px; font-weight: 600; vertical-align: top; margin-top: 8px; }
.plan-price sub { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.plan-period { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.plan--featured .plan-period { color: rgba(255,255,255,.7); }
.plan-divider { height: 1px; background: var(--border); margin: 20px 0; }
.plan--featured .plan-divider { background: rgba(255,255,255,.2); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: var(--text-2);
}
.plan--featured .plan-features li { color: rgba(255,255,255,.9); }
.plan-features li .mdi { font-size: 18px; color: #43a047; flex-shrink: 0; margin-top: 1px; }
.plan--featured .plan-features li .mdi { color: rgba(255,255,255,.85); }
.plan-cta { display: block; text-align: center; padding: 12px; border-radius: 10px;
    font-size: 15px; font-weight: 600; transition: background .15s; }
.plan--featured .plan-cta { background: rgba(255,255,255,.2); color: #fff; }
.plan--featured .plan-cta:hover { background: rgba(255,255,255,.3); }
.plan-cta:not(.plan--featured .plan-cta) { background: var(--bg); color: var(--blue); }
.plan-cta:not(.plan--featured .plan-cta):hover { background: rgba(3,169,244,.1); }
.plan-tag {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    background: rgba(255,255,255,.25); color: #fff;
    margin-bottom: 10px;
}

/* ── TESTIMONIAL / TRUST ─────────────────────────────────────────── */
.trust { background: var(--bg); }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center;
    gap: 20px; margin-top: 52px;
    max-width: 1200px; margin-left: auto; margin-right: auto;
}
.trust-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.trust-stars { color: #ffc107; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.trust-text { font-size: 15px; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; }
.trust-author { display: flex; align-items: center; gap: 12px; }
.trust-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.trust-name  { font-size: 14px; font-weight: 600; }
.trust-role  { font-size: 12px; color: var(--text-3); }

/* ── CTA BANNER ──────────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, #0d1117 0%, #1a2332 100%);
    color: #fff;
    text-align: center;
}
.cta-banner .section-title { color: #fff; max-width: 600px; }
.cta-banner .section-sub   { color: rgba(255,255,255,.65); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { background: #f0f4f8; }
.btn-ghost-white { background: transparent; color: rgba(255,255,255,.8); border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost-white:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer {
    background: #0d1117; color: rgba(255,255,255,.5);
    padding: 48px 6% 32px;
}
.footer-inner {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.footer-brand img { height: 28px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; text-align: center; margin-top: 32px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 72px 5% 60px; }
    .hero-stats { gap: 28px; }
    .preview-inner { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .steps { gap: 28px; }
    section { padding: 60px 5%; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}
