/* ============================================
   web3sec.ai — Neo-Industrial Cybersecurity
   ============================================ */

:root {
    --bg: #06060c;
    --bg-elevated: #0c0c16;
    --bg-card: #0e0e1a;
    --surface: #12121f;
    --border: rgba(0, 240, 255, 0.08);
    --border-hover: rgba(0, 240, 255, 0.2);
    --text: #c8c8d8;
    --text-muted: #6a6a80;
    --text-bright: #eeeef4;
    --cyan: #00f0ff;
    --green: #00ff88;
    --red: #ff3366;
    --yellow: #ffcc00;
    --cyan-glow: rgba(0, 240, 255, 0.15);
    --green-glow: rgba(0, 255, 136, 0.15);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) var(--bg);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

.accent {
    color: var(--cyan);
}

/* ---- Grid Background ---- */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.3;
    z-index: 1;
    animation: scanDown 8s linear infinite;
    pointer-events: none;
}

@keyframes scanDown {
    0% { top: -2px; }
    100% { top: 100vh; }
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: rgba(6, 6, 12, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    border-bottom-color: var(--border);
    padding: 12px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--cyan);
    display: flex;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 1px;
}

.logo-dot {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--text-bright);
}

.nav-cta {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 8px 20px !important;
    border-radius: 6px;
    color: var(--cyan) !important;
    font-family: var(--font-mono);
    font-size: 13px !important;
    transition: all 0.2s !important;
}

.nav-cta:hover {
    background: rgba(0, 240, 255, 0.2) !important;
    border-color: var(--cyan) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
    backdrop-filter: blur(20px);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 16px;
    color: var(--text);
    padding: 8px 0;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 100px;
    padding: 6px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--green);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease both;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-bright);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-line {
    display: block;
    animation: fadeInUp 0.8s ease both;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-line:nth-child(3) { animation-delay: 0.3s; }

.hero-line.accent {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.5s both;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), #00c8ff);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.35);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Terminal */
.hero-terminal {
    max-width: 640px;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.6s both;
    backdrop-filter: blur(10px);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.terminal-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    min-height: 180px;
}

.terminal-line {
    opacity: 0;
    animation: typeIn 0.3s ease forwards;
    white-space: nowrap;
    overflow: hidden;
}

.t-prompt { color: var(--green); }
.t-cmd { color: var(--cyan); }
.t-arg { color: var(--text-muted); }
.t-success { color: var(--green); }
.t-warn { color: var(--yellow); }
.t-info { color: var(--text-muted); }
.t-value { color: var(--cyan); }

@keyframes typeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---- Trust Bar ---- */
.trust-bar {
    position: relative;
    z-index: 2;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 20, 0.5);
}

.trust-label {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 28px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-logo {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.4;
    transition: opacity 0.3s;
    letter-spacing: 2px;
}

.trust-logo:hover {
    opacity: 0.8;
}

/* ---- Section Common ---- */
.section-header {
    margin-bottom: 28px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    margin-top: 16px;
    line-height: 1.7;
}

.section-highlights {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    opacity: 1 !important;
    transform: none !important;
}

.highlight-item svg {
    flex-shrink: 0;
    color: var(--cyan);
    margin-top: 2px;
}

.highlight-item strong {
    color: var(--text-bright);
    font-weight: 600;
}

/* ---- Products ---- */
.products {
    position: relative;
    z-index: 2;
    padding: 56px 0;
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 240, 255, 0.05);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan-glow);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    color: var(--cyan);
    margin-bottom: 24px;
}

.product-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.product-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.product-stats strong {
    color: var(--cyan);
    font-weight: 600;
}

.product-link {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cyan);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.product-link:hover {
    opacity: 1;
}

/* ---- How It Works ---- */
.how-it-works {
    position: relative;
    z-index: 2;
    padding: 56px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.step-num {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--cyan);
    opacity: 0.15;
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.step-visual {
    display: flex;
    justify-content: center;
}

/* Code block in step */
.code-block {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    width: 100%;
    max-width: 400px;
    overflow-x: auto;
}

.code-block code {
    display: block;
    white-space: pre;
}

.c-kw { color: var(--cyan); }
.c-str { color: var(--green); }
.c-fn { color: #c792ea; }

/* Scan animation */
.scan-anim {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--cyan);
}

.ring-1 {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-2 {
    width: 120px;
    height: 120px;
    opacity: 0.25;
    animation: ringPulse 3s ease-in-out 0.5s infinite;
}

.ring-3 {
    width: 160px;
    height: 160px;
    opacity: 0.1;
    animation: ringPulse 3s ease-in-out 1s infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

.scan-center {
    position: relative;
    z-index: 1;
    color: var(--cyan);
    animation: rotate 12s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Report preview */
.report-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.report-header {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.report-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-muted);
}

.severity {
    font-weight: 600;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.report-row.critical .severity { background: rgba(255, 51, 102, 0.15); color: var(--red); }
.report-row.high .severity { background: rgba(255, 136, 0, 0.15); color: #ff8800; }
.report-row.medium .severity { background: rgba(255, 204, 0, 0.15); color: var(--yellow); }
.report-row.low .severity { background: rgba(0, 240, 255, 0.1); color: var(--cyan); }

.report-status {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--green);
    font-weight: 600;
}

/* ---- Stats ---- */
.stats {
    position: relative;
    z-index: 2;
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ---- CTA ---- */
.cta-section {
    position: relative;
    z-index: 2;
    padding: 56px 0;
}

.cta-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 64px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--green), var(--cyan));
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.3;
    margin-top: 12px;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.cta-form .form-row {
    display: flex;
    gap: 12px;
}

.form-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg);
    border: 1px solid var(--border-hover);
    border-radius: 8px;
    color: var(--text-bright);
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-note a {
    color: var(--cyan);
    transition: opacity 0.2s;
}

.form-note a:hover {
    opacity: 0.8;
}

.cta-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-icon {
    animation: floatShield 6s ease-in-out infinite;
}

@keyframes floatShield {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 2;
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-bright);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

/* ---- Scroll Animations ---- */
.product-card,
.step,
.stat-card,
.highlight-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card.visible,
.step.visible,
.stat-card.visible,
.highlight-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .step {
        grid-template-columns: 60px 1fr;
    }

    .step-visual {
        display: none;
    }

    .cta-box {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .cta-visual {
        display: none;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .trust-logos {
        gap: 24px;
    }

    .trust-logo {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-value {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-terminal {
        max-width: 100%;
    }

    .cta-form .form-row {
        flex-direction: column;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-num {
        font-size: 32px;
    }
}

/* ---- Selection ---- */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: var(--text-bright);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}
