/* ========================================
   ShieldSafe Landing Page Styles
   Dark theme, minimalist, engineering style
   ======================================== */

/* Fonts */
@font-face {
    font-family: 'Manrope';
    src: url('./fonts/Manrope-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('./fonts/Manrope-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('./fonts/Manrope-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('./fonts/Manrope-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('./fonts/Manrope-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --color-bg: #0a0a0b;
    --color-bg-elevated: #111113;
    --color-bg-card: #18181b;
    --color-bg-hover: #1f1f23;

    --color-border: #27272a;
    --color-border-light: #3f3f46;

    --color-text: #fafafa;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;

    --color-primary: #06b6d4;
    --color-primary-hover: #22d3ee;
    --color-primary-muted: rgba(6, 182, 212, 0.15);

    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;

    --font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --container-width: 1200px;
    --section-padding: 100px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section */
.section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #0a0a0b;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-hover);
    border-color: var(--color-border-light);
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header Logo - appears on scroll */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-text {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.header.scrolled .header-logo-text {
    opacity: 1;
    transform: translateY(0);
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.nav-link:hover {
    color: var(--color-text);
}

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(6, 182, 212, 0.15), transparent),
        var(--color-bg);
}

.hero-logo {
    text-align: center;
    margin-bottom: 60px;
}

.hero-logo img {
    height: 240px;
    width: auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-note {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Terminal */
.terminal {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-border-light);
}

.terminal-dot:first-child { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-prompt {
    color: var(--color-primary);
}

.terminal-command {
    color: var(--color-text);
}

.terminal-output {
    color: var(--color-text-secondary);
    padding-left: 4px;
}

.terminal-success { color: var(--color-success); }
.terminal-warning { color: var(--color-warning); }
.terminal-info { color: var(--color-info); }

/* Screenshot Slider */
.screenshot-slider {
    position: relative;
}

.screenshot-frame {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 20px 50px rgba(0, 0, 0, 0.5);
}

.screenshot-header {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
}

.screenshot-container {
    position: relative;
    aspect-ratio: 900 / 578;
    overflow: hidden;
}

.screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.screenshot.active {
    opacity: 1;
}

.screenshot-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.screenshot-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border-light);
    cursor: pointer;
    transition: all var(--transition);
}

.screenshot-dots .dot:hover {
    background: var(--color-text-muted);
}

.screenshot-dots .dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-logo img {
        height: 160px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* Problem Section */
.problem {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.problem-card {
    padding: 32px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.problem-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-2px);
}

.problem-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-muted);
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    color: var(--color-primary);
}

.problem-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 960px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--color-primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-muted);
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Levels Section */
.levels {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.level-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.level-card-featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.level-card-partner {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.level-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-primary-muted);
    color: var(--color-primary);
    border-radius: 4px;
    margin-bottom: 16px;
    width: fit-content;
}

.level-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.level-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.level-features {
    flex: 1;
    margin-bottom: 24px;
}

.level-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-features li::before {
    content: "✓";
    color: var(--color-primary);
    font-weight: 600;
}

.level-note {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

.level-partner-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: 24px;
    flex: 1;
}

.levels-note {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 40px;
}

@media (max-width: 1080px) {
    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .levels-grid {
        grid-template-columns: 1fr;
    }
}

/* How It Works */
.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.step-connector {
    width: 2px;
    height: 40px;
    background: var(--color-border);
    margin-left: 23px;
}

/* AI Section */
.ai-section {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.ai-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.ai-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-muted);
    border-radius: 50%;
    margin: 0 auto 24px;
    color: var(--color-primary);
}

.ai-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.ai-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.ai-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.ai-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.ai-feature-icon {
    color: var(--color-primary);
    font-weight: 600;
}

/* Audience Section */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.audience-card {
    padding: 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition);
}

.audience-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-2px);
}

.audience-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-muted);
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--color-primary);
}

.audience-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.audience-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

@media (max-width: 960px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

/* Trust Section */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.trust-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-muted);
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
    flex-shrink: 0;
}

.trust-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.trust-item p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

@media (max-width: 640px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section */
.cta-section {
    background:
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(6, 182, 212, 0.15), transparent),
        var(--color-bg);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.3;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 14px;
    color: var(--color-text-muted);
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
    }
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.footer-brand img {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--color-text-secondary);
    padding: 6px 0;
}

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

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Utilities */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
}
