/* =====================================================
   Nereus Pulse — Landing Page
   ===================================================== */

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

:root {
    --bg:        #1C1C1E;
    --bg-2:      #111111;
    --bg-card:   #252525;
    --bg-card-h: #2C2C2C;
    --border:    rgba(255,255,255,0.07);
    --border-h:  rgba(204,255,0,0.25);
    --accent-1:  #CCFF00;
    --accent-2:  #64DD17;
    --text:      #F4F4F5;
    --text-muted:#A1A1AA;
    --text-dim:  #71717A;
    --radius:    14px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

.gradient-text {
    background: linear-gradient(100deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border: 1px solid var(--border-h);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-1);
    margin-bottom: 20px;
    background: rgba(204,255,0,0.05);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 0.83rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

.btn:not(.btn-ghost) {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #07090f;
}
.btn:not(.btn-ghost):hover { filter: brightness(1.1); transform: translateY(-1px); }

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

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(17,17,17,0.9);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Myth ── */
.myth {
    padding: 100px 24px 80px;
    margin-top: 64px; /* nav height */
    display: flex;
    justify-content: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.myth::before {
    content: 'ΝΗΡΕΥΣ';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(5rem, 18vw, 14rem);
    font-weight: 900;
    color: rgba(255,255,255,0.018);
    letter-spacing: 0.15em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}
.myth-inner {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}
.myth-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 6rem;
    line-height: 0.5;
    color: var(--accent-1);
    opacity: 0.6;
    user-select: none;
}
.myth-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-style: italic;
    color: #c8c8c8;
    line-height: 1.85;
    font-weight: 400;
}
.myth-quote em {
    font-style: normal;
    color: #ffffff;
    font-weight: 600;
}
.myth-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 580px;
}
.myth-body strong {
    color: var(--accent-1);
    font-weight: 600;
}
.myth-divider {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    justify-content: center;
}
.myth-divider::before,
.myth-divider::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1));
}
.myth-divider::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
}
.myth-glyph {
    font-size: 0.6rem;
    color: var(--accent-1);
    opacity: 0.5;
    letter-spacing: 8px;
}

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 100px;
    text-align: center;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}
.hero-glow-1 {
    width: 600px; height: 600px;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(204,255,0,0.09) 0%, transparent 70%);
}
.hero-glow-2 {
    width: 400px; height: 400px;
    bottom: 0; right: 10%;
    background: radial-gradient(circle, rgba(180,180,180,0.04) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }

.hero-title { margin-bottom: 24px; }
.hero-sub {
    max-width: 660px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* ── Terminal ── */
.hero-visual {
    max-width: 780px;
    margin: 0 auto;
}
.terminal {
    background: #0D1117;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(204,255,0,0.06);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #111111;
    border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.amber  { background: #febc2e; }
.dot.green  { background: #28c840; }
.terminal-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: 8px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.08em;
}
.terminal-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.log-line {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-size: 0.78rem;
    font-family: 'Courier New', monospace;
    flex-wrap: wrap;
}
.ts { color: var(--text-dim); flex-shrink: 0; }
.sev {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 1px 8px;
    border-radius: 4px;
}
.sev.critical { background: rgba(239,68,68,0.18); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.sev.high     { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.sev.medium   { background: rgba(234,179,8,0.12);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.2); }
.sev.low      { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.msg { color: var(--text-muted); }

.blink .ts { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ── Stats strip ── */
.stats-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    padding: 48px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

/* ── Section header ── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ── Features ── */
.features { padding: 100px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.feature-card:hover {
    border-color: var(--border-h);
    background: var(--bg-card-h);
    transform: translateY(-3px);
}
.feature-icon {
    width: 44px; height: 44px;
    margin-bottom: 20px;
    color: var(--accent-1);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ── How it works ── */
.how {
    padding: 100px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-wrap: nowrap;
}
.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.step-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--accent-1);
    background: rgba(204,255,0,0.07);
    border: 1px solid rgba(204,255,0,0.2);
    border-radius: 8px;
    padding: 8px 14px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.step-body h3 { margin-bottom: 10px; }
.step-body p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }
.step-connector {
    flex-shrink: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-1) 40%, transparent);
    margin-top: 26px;
    opacity: 0.5;
}

/* ── CTA ── */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    text-align: center;
}
.cta-glow {
    position: absolute;
    width: 700px; height: 700px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204,255,0,0.07) 0%, transparent 65%);
    pointer-events: none;
}
.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.cta-logo { opacity: 0.9; }
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.cta-section p { color: var(--text-muted); max-width: 500px; font-size: 1.05rem; }
.cta-form {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.cta-form input {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.95rem;
    width: 280px;
    outline: none;
    transition: border-color 0.2s;
}
.cta-form input::placeholder { color: var(--text-dim); }
.cta-form input:focus { border-color: var(--border-h); }
.cta-note { font-size: 0.78rem; color: var(--text-dim); }

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    background: var(--bg-2);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
    .stat:last-child { border-bottom: none; }
    .steps { flex-direction: column; align-items: stretch; }
    .step { align-items: flex-start; text-align: left; flex-direction: row; gap: 20px; padding: 0; }
    .step-connector { width: 2px; height: 32px; background: linear-gradient(180deg, transparent, var(--accent-1) 50%, transparent); margin: 0 0 0 12px; align-self: stretch; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero { padding: 110px 0 60px; }
    .log-line { flex-wrap: nowrap; overflow: hidden; }
    .msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .footer-inner { flex-direction: column; text-align: center; }
}
