@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

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

:root {
    --bg: #F5F3EF;
    --bg-alt: #EDEAE5;
    --surface: #FFFFFF;
    --dark: #111113;
    --dark-surface: #1E1E21;
    --dark-border: rgba(255, 255, 255, 0.07);
    --text: #1C1C1E;
    --text-light: #F5F3EF;
    --muted: #8A8A8E;
    --accent: #E85D4A;
    --accent-hover: #D44A38;
    --accent-light: rgba(232, 93, 74, 0.06);
    --accent-border: rgba(232, 93, 74, 0.2);
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.12);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --radius-pill: 50px;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --max-w: 1200px;
    --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.icon-svg {
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
}
.icon-wrap svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* ─── Container ─── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

/* ─── Section base ─── */
.section {
    padding: 120px 0;
    position: relative;
}
.section-dark {
    background: var(--dark);
    color: var(--text-light);
}
.section-dark h2, .section-dark h3, .section-dark p {
    color: var(--text-light);
}
.section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
}
.section-title {
    font-size: 52px;
    margin-bottom: 20px;
    max-width: 680px;
    letter-spacing: -0.04em;
}
.section-desc {
    color: var(--muted);
    font-size: 17px;
    max-width: 540px;
    line-height: 1.75;
}

/* ─── Decorative gradient orbs ─── */
.decor-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.decor-orb-accent {
    background: var(--accent);
    width: 400px;
    height: 400px;
}
.decor-orb-blue {
    background: #4A7CE8;
    width: 350px;
    height: 350px;
}

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(245, 243, 239, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    background: none;
    border: none;
    padding: 0;
}
.logo-mark img {
    display: block;
    width: auto;
    height: auto;
    max-height: 48px;
    max-width: min(280px, 40vw);
    object-fit: contain;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    width: 40px;
    height: 36px;
    align-items: center;
    justify-content: center;
}
.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(245, 243, 239, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
    display: block;
    padding: 14px 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--dark);
    color: var(--text-light);
}
.btn-primary:hover {
    background: #333;
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn-accent {
    background: var(--accent);
    color: #fff;
}
.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 93, 74, 0.3);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-outline:hover {
    background: var(--dark);
    color: var(--text-light);
    border-color: var(--dark);
    transform: translateY(-2px);
}
.btn-light {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

/* ─── Cards ─── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}
.card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
}
.card-dark {
    background: var(--dark);
    border-color: var(--dark-border);
    color: var(--text-light);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #f4f5f7;
}
.hero-lines {
    position: absolute;
    top: -120px;
    left: -220px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    opacity: 0.32;
    background: repeating-radial-gradient(circle at center, rgba(55, 63, 85, 0.13) 0, rgba(55, 63, 85, 0.13) 1px, transparent 1px, transparent 13px);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 3;
}
.hero-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    padding: 150px 0 110px;
}
.hero h1 {
    font-size: clamp(56px, 11vw, 122px);
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: #0f1014;
    margin-bottom: 24px;
}
.hero h1 .accent-text {
    background: linear-gradient(90deg, #4969d8 0%, #7854a8 52%, #de4f5f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-desc {
    font-size: 22px;
    color: #2b2d35;
    max-width: 720px;
    margin: 0 auto 38px;
    line-height: 1.5;
}
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 16, 20, 0.08);
    color: #505463;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

/* ================================================================
   SERVICES / DETECTION GRID
   ================================================================ */
.services-section {
    padding: 120px 0;
    background: var(--bg);
}
.services-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}
.services-header .section-title {
    margin-left: auto;
    margin-right: auto;
}
.detect-carousel {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) + 4px);
    padding: 4px;
}
.detect-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.detect-nav:hover {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}
.detect-nav-prev { left: 8px; }
.detect-nav-next { right: 8px; }
.detect-carousel::before,
.detect-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 3;
    pointer-events: none;
}
.detect-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(245, 243, 239, 0) 100%);
}
.detect-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg) 0%, rgba(245, 243, 239, 0) 100%);
}
.detect-grid {
    display: flex;
    align-items: stretch;
    gap: 16px;
    will-change: transform;
    transform: translateX(0);
}
.detect-track .detect-card {
    flex: 0 0 min(360px, calc(100vw - 72px));
}
.detect-card {
    padding: 36px 28px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
    min-height: 100%;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.04);
}
.detect-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    color: var(--text);
}
.detect-card-img {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
}
.detect-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.detect-card:hover .detect-card-img img {
    transform: scale(1.05);
}
.detect-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    transition: all var(--transition);
}
.detect-card:hover .detect-card-icon {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}
.detect-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.detect-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}
.detect-card .card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: all var(--transition);
}
.detect-card:hover .card-arrow {
    opacity: 1;
    transform: translateY(0);
}
.detect-card-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #C94432 100%);
    border-color: transparent;
    color: #fff;
}
.detect-card-accent h3 { color: #fff; }
.detect-card-accent p { color: rgba(255, 255, 255, 0.8); }
.detect-card-accent .detect-card-icon {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.detect-card-accent:hover .detect-card-icon {
    background: #fff;
    color: var(--accent);
}
.detect-card-accent .card-arrow {
    background: #fff;
    color: var(--accent);
    opacity: 1;
    transform: none;
}
.detect-card-accent:hover {
    color: #fff;
}

/* ================================================================
   ABOUT (split image + text)
   ================================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-img {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.about-img-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.about-img-badge-num {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.about-img-badge-text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.about-steps {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.about-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.about-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-light);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.about-step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.about-step-content p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ================================================================
   FEATURES (dark section with tabs)
   ================================================================ */
.features-section {
    background: var(--dark);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.features-section .section-label {
    color: rgba(255, 255, 255, 0.35);
}
.features-section .section-title {
    color: var(--text-light);
    margin-bottom: 48px;
}
.feature-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.feature-tab {
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--dark-border);
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.feature-tab:hover,
.feature-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}
.feature-tab .tab-icon { font-size: 16px; }
.feature-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.feature-detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 36px;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}
.feature-detail-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}
.fdc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--accent);
}
.fdc-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
}
.fdc-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.75;
}

/* ================================================================
   PRICING (3-column centered)
   ================================================================ */
.pricing-section {
    padding: 120px 0;
    background: var(--bg-alt);
}
.pricing-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}
.pricing-header .section-title {
    margin-left: auto;
    margin-right: auto;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}
.pricing-card.featured {
    border-color: var(--accent);
    border-width: 2px;
}
.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 18px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.pc-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--accent-light);
    color: var(--accent);
}
.pc-name {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.pc-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}
.pc-price {
    font-family: var(--font-head);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.pc-period {
    font-size: 15px;
    color: var(--muted);
    font-weight: 400;
}
.pc-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 28px 0;
}
.pc-features {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
    text-align: left;
}
.pc-features li {
    font-size: 14px;
    color: var(--muted);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pc-features li::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-light);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' fill='none' stroke='%23E85D4A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.pc-cta .btn { width: 100%; }

/* ================================================================
   FAQ (split layout)
   ================================================================ */
.faq-section {
    padding: 120px 0;
}
.faq-split {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 80px;
    align-items: start;
}
.faq-list {
    display: flex;
    flex-direction: column;
}
.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: left;
}
.faq-text {
    flex: 1;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}
.faq-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text);
    transition: all var(--transition);
}
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    background: var(--accent);
    color: #fff;
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
    padding: 0 0 24px 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: var(--dark);
    padding: 80px 0 40px;
    color: var(--text-light);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}
.footer .logo-mark img {
    max-height: 64px;
    max-width: min(320px, 80vw);
}
.footer-brand-text {
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}
.footer-col-title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}
.footer-col a {
    display: block;
    padding: 5px 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-light); }
.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-copy {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

/* ─── Scroll-to-top ─── */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--text-light);
    border: 1px solid var(--dark-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
}
.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-top:hover {
    transform: translateY(-3px);
    background: var(--accent);
    border-color: transparent;
}

/* ─── Animations ─── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(.4, 0, .2, 1), transform 0.8s cubic-bezier(.4, 0, .2, 1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   FORM ELEMENTS (scan.html)
   ================================================================ */
.form-group {
    margin-bottom: 24px;
}
.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 15px;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.form-textarea {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A7A7A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
.form-error {
    color: var(--accent);
    font-size: 13px;
    margin-top: 6px;
    display: none;
}
.form-error.visible { display: block; }

/* ─── Dropzone ─── */
.dropzone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--surface);
}
.dropzone:hover,
.dropzone.dragover {
    border-color: var(--accent);
    background: var(--accent-light);
}
.dropzone.has-file {
    border-color: #2ECC71;
    background: rgba(46, 204, 113, 0.05);
}
.dropzone-icon { font-size: 40px; margin-bottom: 12px; }
.dropzone-text { color: var(--muted); font-size: 15px; }
.dropzone-text strong { color: var(--accent); }

/* ─── Step Indicator ─── */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}
.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--border-strong);
    color: var(--muted);
    transition: all var(--transition);
    font-family: var(--font-head);
}
.step-dot.active {
    border-color: var(--accent);
    color: var(--accent);
}
.step-dot.done {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--text-light);
}
.step-line {
    width: 60px;
    height: 2px;
    background: var(--border);
    transition: background var(--transition);
}
.step-line.active { background: var(--accent); }

/* ─── Loading Overlay ─── */
.scan-overlay {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 48px 24px;
    text-align: center;
    background: var(--bg);
}
.scan-overlay.active { display: flex; }
.scan-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    animation: spin 1.2s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}
.scan-ring::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px solid var(--border);
    border-bottom-color: var(--dark);
    animation: spin 1.8s linear infinite reverse;
}
.scan-icon {
    font-size: 44px;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
.scan-phase {
    font-family: var(--font-head);
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text);
}
.scan-subtext {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 40px;
}
.progress-track {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.95); }
}

/* ================================================================
   RESULTS PAGE
   ================================================================ */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 15px;
    transition: color var(--transition);
}
.back-link:hover { color: var(--text); }

.verdict-section {
    text-align: center;
    padding: 60px 0 40px;
}

.circle-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 32px;
}
.circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}
.circle-progress {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1.2s ease-out, stroke 0.3s ease;
}
.circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.circle-pct {
    font-family: var(--font-head);
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}
.circle-label {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.verdict-badge {
    display: inline-block;
    padding: 12px 36px;
    border-radius: var(--radius-pill);
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}
.verdict-green { background: rgba(46, 204, 113, 0.1); color: #2ECC71; border: 1px solid rgba(46, 204, 113, 0.25); }
.verdict-gold { background: rgba(243, 156, 18, 0.1); color: #F39C12; border: 1px solid rgba(243, 156, 18, 0.25); }
.verdict-red { background: rgba(232, 93, 74, 0.1); color: var(--accent); border: 1px solid var(--accent-border); }

/* ─── Flags ─── */
.flags-orbit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 48px;
}
.flag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text);
    opacity: 0;
    animation: fadeChip 0.4s ease forwards;
}
@keyframes fadeChip {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Scan Breakdown ─── */
.scan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.mini-circle-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}
.mini-circle-wrap .circle-pct { font-size: 28px; }
.mini-circle-wrap .circle-label { font-size: 11px; }
.scan-card-title {
    font-family: var(--font-head);
    font-size: 16px;
    margin-bottom: 8px;
    text-align: center;
}
.scan-card-verdict {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}
.scan-card-flags { list-style: none; padding: 0; }
.scan-card-flags li {
    font-size: 13px;
    color: var(--muted);
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}
.scan-card-flags li:last-child { border-bottom: none; }
.scan-card-flags li::before {
    content: '›';
    color: var(--accent);
    margin-right: 8px;
}

/* ─── Accordion ─── */
.accordion { margin-bottom: 48px; }
.accordion-trigger {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition);
}
.accordion-trigger:hover { border-color: var(--border-strong); }
.accordion-arrow {
    transition: transform var(--transition);
    font-size: 14px;
}
.accordion-trigger.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.accordion-body.open { max-height: 2000px; }
.accordion-inner {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
.flag-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.flag-row:last-child { border-bottom: none; }
.flag-severity {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}
.severity-critical { background: rgba(232, 93, 74, 0.1); color: var(--accent); }
.severity-warning { background: rgba(243, 156, 18, 0.1); color: #F39C12; }
.severity-note { background: rgba(0, 0, 0, 0.05); color: var(--muted); }

/* ─── Metric Cards ─── */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.metric-card { text-align: center; padding: 28px 20px; }
.metric-value {
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}
.metric-label { color: var(--muted); font-size: 14px; }

/* ─── Summary Quote ─── */
.summary-card {
    border-left: 4px solid var(--accent);
    padding: 28px 32px;
    margin-bottom: 48px;
    font-style: italic;
    color: var(--text);
    line-height: 1.8;
}

/* ─── Disclaimer ─── */
.disclaimer {
    text-align: center;
    padding: 32px;
    color: var(--muted);
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 48px;
}
.disclaimer strong { color: var(--accent); }

/* ─── CTA Bottom ─── */
.cta-bottom {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .section { padding: 80px 0; }
    .section-title { font-size: 40px; }
    .hero-content { padding: 140px 0 100px; }
    .hero h1 { font-size: clamp(52px, 10vw, 96px); }
    .hero-desc { font-size: 18px; max-width: 620px; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-img { max-width: 500px; }
    .feature-detail-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .faq-split { grid-template-columns: 1fr; gap: 40px; }
    .detect-track .detect-card { flex-basis: min(320px, calc(100vw - 84px)); }
    .scan-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
    .features-section,
    .pricing-section,
    .faq-section,
    .services-section { padding: 80px 0; }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 32px; }
    .section-desc { font-size: 15px; }

    .hamburger { display: flex; }
    .nav-links { display: none; }

    .btn { width: 100%; padding: 14px 28px; }
    .btn-sm { width: auto; }
    .card { padding: 24px; }

    .hero { min-height: auto; }
    .hero-content { padding: 110px 0 74px; }
    .hero h1 { font-size: clamp(48px, 17vw, 70px); }
    .hero-desc { font-size: 16px; line-height: 1.55; }
    .hero-lines {
        top: -180px;
        left: -250px;
        width: 500px;
        height: 500px;
    }

    .detect-carousel::before,
    .detect-carousel::after { width: 38px; }
    .detect-nav { width: 36px; height: 36px; font-size: 24px; }
    .detect-nav-prev { left: 2px; }
    .detect-nav-next { right: 2px; }
    .detect-track .detect-card { flex-basis: min(280px, calc(100vw - 58px)); }
    .detect-card-img { height: 120px; }

    .about-grid { gap: 36px; }
    .about-img { aspect-ratio: 16 / 10; }

    .feature-detail-card { padding: 24px; }

    .faq-text { font-size: 16px; }

    .circle-wrap { width: 220px; height: 220px; }
    .circle-pct { font-size: 40px; }
    .scan-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }

    .steps { gap: 8px; }
    .step-line { width: 30px; }
    .cta-bottom { flex-direction: column; align-items: center; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .logo-mark img {
        max-height: 40px;
        max-width: min(240px, 65vw);
    }
    .footer .logo-mark img {
        max-height: 52px;
        max-width: min(300px, 80vw);
    }

    .scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; font-size: 16px; }

    .features-section,
    .pricing-section,
    .faq-section,
    .services-section { padding: 60px 0; }
}
