/* ============================================================
   NetGuard — Stylesheet
   Apple-inspired, dark-accented, conversion-focused
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Palette */
    --bg:          #fafafa;
    --bg-alt:      #f2f2f7;
    --bg-dark:     #0a0a0a;
    --text:        #1d1d1f;
    --text-mid:    #6e6e73;
    --text-light:  #86868b;
    --border:      #d2d2d7;
    --border-light:#e8e8ed;
    --green:       #16A34A;
    --green-light: #dcfce7;
    --green-dark:  #15803d;
    --red:         #ef4444;
    --blue:        #2563eb;
    --amber:       #f59e0b;
    --purple:      #8b5cf6;
    --teal:        #14b8a6;

    /* Typography */
    --font:        'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:   'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

    /* Spacing */
    --section-y:   120px;
    --container:   1120px;
    --nav-h:       64px;
    --radius:      12px;
    --radius-sm:   8px;
    --radius-lg:   20px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 20px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Utilities --- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}
.section-desc {
    margin-top: 16px;
    font-size: 17px;
    color: var(--text-mid);
    line-height: 1.65;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn--primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(22,163,74,0.25);
}
.btn--primary:hover {
    background: var(--green-dark);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 8px 24px rgba(22,163,74,0.3);
    transform: translateY(-1px);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn--ghost:hover {
    background: var(--bg-alt);
    border-color: var(--text-light);
}
.btn--white {
    background: #fff;
    color: var(--bg-dark);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.btn--white:hover { background: #f0f0f0; transform: translateY(-1px); }
.btn--nav {
    background: var(--green);
    color: #fff;
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 6px;
}
.btn--nav:hover { background: var(--green-dark); }
.btn--lg { padding: 14px 30px; font-size: 15px; border-radius: 10px; }
.btn--full { width: 100%; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(250,250,250,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.nav--scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__links a:not(.btn) {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--text); }

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.nav__toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 60px;
    background: linear-gradient(180deg, #f8fdf9 0%, var(--bg) 100%);
    overflow: hidden;
}
.hero__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-light);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
}
.hero__sub {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-mid);
    max-width: 480px;
}
.hero__points {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.hero__cta {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero__note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

/* Hero Visual */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero__device {
    position: relative;
    animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero__screenshot {
    width: 500px;
    max-width: 100%;
    height: auto;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
    padding: 36px 0;
    border-bottom: 1px solid var(--border-light);
}
.trust__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
}
.trust__item svg { color: var(--text-light); flex-shrink: 0; }

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    padding: var(--section-y) 0;
}
.features__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}
.feature-card:hover {
    border-color: var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-card__icon--red    { background: #fef2f2; color: var(--red); }
.feature-card__icon--green  { background: #f0fdf4; color: var(--green); }
.feature-card__icon--blue   { background: #eff6ff; color: var(--blue); }
.feature-card__icon--amber  { background: #fffbeb; color: var(--amber); }
.feature-card__icon--purple { background: #f5f3ff; color: var(--purple); }
.feature-card__icon--teal   { background: #f0fdfa; color: var(--teal); }

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.feature-card p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-mid);
}
.feature-card p strong { color: var(--text); font-weight: 600; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
    padding: var(--section-y) 0;
    background: var(--bg-alt);
}
.how__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.how__steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.how__step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 0 20px;
}
.how__number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(22,163,74,0.25);
}
.how__step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.how__step p {
    font-size: 14.5px;
    color: var(--text-mid);
    line-height: 1.65;
}
.how__connector {
    display: flex;
    align-items: center;
    padding-top: 24px;
    color: var(--border);
    flex-shrink: 0;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
    padding: var(--section-y) 0;
}
.pricing__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.pricing__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .pricing__cards {
        grid-template-columns: 1fr 1fr;
    }
}
.pricing__card {
    background: #fff;
    border: 2px solid var(--green);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(22,163,74,0.08), 0 1px 3px rgba(0,0,0,0.04);
}
.pricing__card--alt {
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.pricing__card-header { margin-bottom: 24px; }
.pricing__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    background: var(--green-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.pricing__card-header h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.pricing__tagline {
    font-size: 14px;
    color: var(--text-mid);
    margin-top: 4px;
}
.pricing__price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin-bottom: 4px;
}
.pricing__currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-top: 8px;
}
.pricing__amount {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
}
.pricing__decimal {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-mid);
    margin-top: 8px;
}
.pricing__billing {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.pricing__badge--alt {
    color: var(--purple);
    background: #f5f3ff;
}
.pricing__period {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    align-self: flex-end;
    margin-bottom: 6px;
    margin-left: 2px;
}
.pricing__footer {
    max-width: 860px;
    margin: 36px auto 0;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.pricing__footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
}
.pricing__features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pricing__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
}
.pricing__features svg { flex-shrink: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    padding: var(--section-y) 0;
    background: var(--bg-alt);
}
.faq__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq__item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq__item[open] { border-color: var(--border); }
.faq__item summary {
    padding: 20px 24px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.2s;
    user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--text-light);
    transition: transform 0.25s;
    flex-shrink: 0;
    line-height: 1;
}
.faq__item[open] summary::after {
    transform: rotate(45deg);
}
.faq__item summary:hover { color: var(--green); }
.faq__answer {
    padding: 0 24px 20px;
}
.faq__answer p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-mid);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: var(--section-y) 0;
}
.contact__inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
}
.contact-form {
    margin-top: 0;
}
.form-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group label span { color: var(--red); }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-feedback {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: none;
}
.form-feedback--success {
    display: block;
    background: #f0fdf4;
    color: var(--green-dark);
    border: 1px solid #bbf7d0;
}
.form-feedback--error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final {
    padding: 100px 0;
    background: var(--bg-dark);
    text-align: center;
}
.cta-final__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.cta-final h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.cta-final p {
    margin-top: 12px;
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}
.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}
.footer__brand p {
    font-size: 13px;
    color: var(--text-light);
}
.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer__links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root { --section-y: 80px; }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero__sub { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero__points { align-items: center; }
    .hero__cta { justify-content: center; }
    .hero__note { text-align: center; }
    .hero__visual { order: -1; }

    .features__grid { grid-template-columns: repeat(2, 1fr); }

    .how__steps { flex-direction: column; align-items: center; gap: 32px; }
    .how__connector { transform: rotate(90deg); padding: 0; }
}

/* Mobile */
@media (max-width: 640px) {
    :root { --section-y: 60px; --nav-h: 56px; }

    .nav__links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(250,250,250,0.97);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
    .nav__links.nav__links--open { display: flex; }
    .nav__toggle { display: flex; }

    .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 40px; }
    .hero h1 { font-size: 34px; }
    .hero__sub { font-size: 16px; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; }

    .hero__screenshot { width: 100%; }

    .features__grid { grid-template-columns: 1fr; }
    .feature-card { padding: 24px 20px; }

    .trust__inner { gap: 20px; justify-content: flex-start; }
    .trust__item { font-size: 12px; }

    .pricing__card { padding: 28px 24px; }
    .pricing__amount { font-size: 52px; }
    .pricing__footer { gap: 16px; }

    .form-row { grid-template-columns: 1fr; }

    .section-header { margin-bottom: 40px; }

    .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__device { animation: none; }
    .feature-card { transition: none; }
    .btn { transition: none; }
}
