@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    --ink: #14151A;
    --ink-soft: #23252E;
    --red: #E8384F;
    --red-dark: #B91E36;
    --paper: #FAF8F6;
    --paper-alt: #F1EEE9;
    --slate: #6B7280;
    --slate-dark: #3F4451;
    --gold: #E8A33D;
    --green: #1F9D6B;
    --line: #E5E1DB;
    --line-dark: #34363F;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius: 12px;
    --radius-sm: 7px;
    --container: 1003px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(232,56,79,.65);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 10px 24px -8px rgba(232,56,79,.75); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.35);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-block { width: 100%; }
.btn-sm { padding: 7.5px 14px; font-size: 11px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250,248,246,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 63px;
}
.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 7.5px;
}
.logo .mark {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--red), var(--red-dark));
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.logo .mark svg { width: 14px; height: 14px; }
.logo span.k { color: var(--red); }

.main-nav { display: flex; align-items: center; gap: 29px; }
.main-nav a {
    color: var(--slate-dark);
    font-size: 12px;
    font-weight: 500;
    transition: color .15s ease;
}
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 999px;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    color: var(--ink);
}
.cart-btn:hover { background: #EFE9E1; }
.cart-btn svg { width: 15px; height: 15px; }
.cart-count {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 15px; height: 15px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3.5px;
    border: 2px solid var(--paper);
}

.nav-toggle {
    display: none;
    background: none; border: none;
    width: 34px; height: 34px;
    color: var(--ink);
}
.nav-toggle svg { width: 19px; height: 19px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(60% 80% at 88% 8%, rgba(232,56,79,.10) 0%, rgba(232,56,79,0) 60%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper) 70%, var(--paper-alt) 100%);
    color: var(--ink);
    overflow: hidden;
    padding: 71px 0 0;
    border-bottom: 1px solid var(--line);
}
.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
    padding-bottom: 76px;
}
.hero-copy h1 {
    font-size: clamp(31px, 4vw, 49px);
    line-height: 1.05;
    font-weight: 700;
    margin: 15px 0 19px;
    color: var(--ink);
}
.hero-copy h1 em {
    font-style: normal;
    color: var(--red);
}
.hero-copy p {
    font-size: 15px;
    color: var(--slate-dark);
    max-width: 408px;
    margin-bottom: 27px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 357px; }
.threat-stack {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.shield-orbit {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 221px; height: 221px;
    border-radius: 50%;
    border: 1px dashed rgba(20,21,26,.14);
}
.shield-core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 92px; height: 92px;
    border-radius: 30px;
    background: linear-gradient(150deg, var(--red), var(--red-dark));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 45px -12px rgba(232,56,79,.55);
    animation: pulse 3.2s ease-in-out infinite;
}
.shield-core svg { width: 44px; height: 44px; color: #fff; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 20px 45px -12px rgba(232,56,79,.55); }
    50% { box-shadow: 0 26px 60px -10px rgba(232,56,79,.8); }
}

.alert-card {
    align-self: flex-end;
    width: 255px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    box-shadow: 0 20px 40px -18px rgba(20,21,26,.28);
    animation: floatIn .7s ease both;
}
.alert-card + .alert-card { align-self: flex-start; margin-left: 34px; }
.alert-card:nth-child(2) { animation-delay: .18s; }
.alert-card:nth-child(3) { animation-delay: .36s; align-self: flex-end; margin-right: 8px; }

@keyframes floatIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-icon {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: #FDEBEC;
    color: var(--red);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.alert-icon svg { width: 14px; height: 14px; }
.alert-card strong { display: block; font-size: 11px; font-weight: 700; }
.alert-card span { font-size: 10px; color: var(--slate); }
.alert-tag {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 600;
    color: var(--green);
    background: #E9F8F1;
    padding: 2.5px 6px;
    border-radius: 999px;
    white-space: nowrap;
}

.hero-strip {
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    color: #fff;
    text-align: center;
    padding: 11px 17px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
}

/* ---------- Sections ---------- */
.section { padding: 75px 0; }
.section-head {
    text-align: center;
    max-width: 527px;
    margin: 0 auto 44px;
}
.section-head h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin: 10px 0 12px;
}
.section-head p { color: var(--slate); font-size: 14px; }

/* ---------- Product rows ---------- */
.brand-row { margin-bottom: 54px; }
.brand-row:last-child { margin-bottom: 0; }
.brand-row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 17px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.brand-row-head h3 {
    font-size: 19px;
    font-weight: 700;
}
.brand-row-head .eyebrow { display: block; margin-bottom: 5px; }
.brand-tagline { color: var(--slate); font-size: 12px; max-width: 272px; text-align: right; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19px;
}

.product-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.product-card:hover {
    box-shadow: 0 22px 40px -20px rgba(20,21,26,.25);
    transform: translateY(-3px);
    border-color: #DCD7CF;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 2.5px;
    border-radius: 0 0 4px 4px;
    background: var(--red);
    opacity: 0;
    transition: opacity .18s ease;
}
.product-card:hover::before { opacity: 1; }

.product-badge {
    position: absolute;
    top: -10px; right: 17px;
    background: var(--gold);
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    letter-spacing: .02em;
}
.product-card h4 { font-size: 15px; margin-bottom: 3.5px; }

.product-image {
    height: 144px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-alt);
    border-radius: var(--radius-sm);
    margin: -1.5px -1.5px 15px;
    overflow: hidden;
}
.product-image img {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(20,21,26,.12));
}
.product-image-fallback {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--red);
}
.product-image-fallback svg { width: 22px; height: 22px; }

.product-plan {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--slate);
    margin-bottom: 15px;
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 7.5px;
    margin-bottom: 17px;
}
.product-price .now {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
}
.product-price .was {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--slate);
    text-decoration: line-through;
}
.product-features { margin-bottom: 20px; flex-grow: 1; }
.product-features li {
    display: flex;
    gap: 7.5px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--slate-dark);
    padding: 4px 0;
}
.product-features svg { width: 13px; height: 13px; color: var(--green); flex-shrink: 0; margin-top: 1.5px; }

.add-to-cart-form { margin-top: auto; }

/* ---------- Trust / About content section ---------- */
.about-section { background: var(--paper-alt); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
}
.about-grid h2 { font-size: 26px; margin-bottom: 12px; }
.about-grid > div > p.lead { color: var(--slate-dark); font-size: 13px; margin-bottom: 22px; }
.check-list li {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.check-list li:last-child { border-bottom: none; }
.check-list b { display: block; margin-bottom: 1.5px; font-size: 13px; }
.check-list span.desc { color: var(--slate); }
.check-list .num {
    font-family: var(--font-mono);
    color: var(--red);
    font-weight: 600;
    flex-shrink: 0;
    width: 19px;
}
.why-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.why-card ul li {
    display: flex;
    gap: 10px;
    padding: 9px 0;
}
.why-card ul li:not(:last-child) { border-bottom: 1px solid var(--line); }
.why-card .ico {
    width: 27px; height: 27px;
    border-radius: 9px;
    background: #FDEBEC;
    color: var(--red);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.why-card .ico svg { width: 14px; height: 14px; }
.why-card b { font-size: 12px; display: block; }
.why-card span { color: var(--slate); font-size: 11px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.65);
    padding: 51px 0 22px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line-dark);
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 12px; max-width: 238px; color: rgba(255,255,255,.5); }
.footer-col h5 {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: 12px; color: rgba(255,255,255,.62); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 11px;
    color: rgba(255,255,255,.42);
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Inner pages (contact / policy / checkout) ---------- */
.page-hero {
    background: var(--ink);
    color: #fff;
    padding: 48px 0;
}
.page-hero .eyebrow { color: var(--red); }
.page-hero h1 { font-size: clamp(24px, 3.5vw, 34px); margin-top: 8px; }
.page-hero p { color: rgba(255,255,255,.65); margin-top: 10px; max-width: 476px; }

.card-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 27px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 3.5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 11px; font-weight: 600; color: var(--slate-dark); }
.form-field input,
.form-field select,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
}
.form-hint { font-size: 10px; color: var(--slate); margin-top: -1.5px; }
.form-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 26px 0 17px;
    color: var(--slate);
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.form-divider::before, .form-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--line);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 26px;
    align-items: start;
}
.order-summary { position: sticky; top: 80px; }
.summary-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.summary-item .name { font-weight: 600; }
.summary-item .plan { color: var(--slate); font-size: 11px; font-family: var(--font-mono); }
.summary-item .remove { color: var(--red); font-size: 10px; font-weight: 600; }
.summary-total {
    display: flex; justify-content: space-between;
    padding-top: 14px; margin-top: 5px;
    font-weight: 700; font-size: 14px;
}
.empty-note {
    text-align: center;
    color: var(--slate);
    font-size: 12px;
    padding: 22px 0;
}
.secure-note {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; color: var(--slate);
    margin-top: 12px;
}
.secure-note svg { width: 12px; height: 12px; color: var(--green); }

.demo-notice {
    background: #FFF7EA;
    border: 1px solid #F0DDAE;
    color: #8A6416;
    font-size: 11px;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 19px;
}

.success-box { text-align: center; padding: 41px 0; }
.success-icon {
    width: 65px; height: 65px;
    border-radius: 50%;
    background: #E9F8F1;
    color: var(--green);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 19px;
}
.success-icon svg { width: 31px; height: 31px; }
.success-box h1 { font-size: 22px; margin-bottom: 8px; }
.success-box p { color: var(--slate); max-width: 374px; margin: 0 auto 22px; }

.policy-body { max-width: 646px; margin: 0 auto; }
.policy-body h2 { font-size: 19px; margin: 27px 0 10px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p { color: var(--slate-dark); margin-bottom: 12px; }
.policy-body ul { margin: 0 0 12px; padding-left: 17px; list-style: disc; color: var(--slate-dark); }
.policy-body li { margin-bottom: 5px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; padding-bottom: 51px; }
    .hero-visual { height: 272px; order: -1; }
    .about-grid { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .brand-tagline { display: none; }
}

@media (max-width: 560px) {
    .section { padding: 51px 0; }
    .product-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .hero-copy p { max-width: 100%; }
    .hero-actions .btn { flex: 1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
