/* SecTests — Cybersecurity Dark
   Palette: GitHub Dark #0D1117, Neon Green #00D68F, Slate #8B949E
   Typography: JetBrains Mono (accents) + Inter (body)
*/

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

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

:root {
  --bg: #0D1117;
  --surface: #161B22;
  --surface-2: #1C2128;
  --border: rgba(139,148,158,0.1);
  --border-light: rgba(139,148,158,0.18);
  --green: #00D68F;
  --green-dark: #00B377;
  --green-dim: rgba(0,214,143,0.08);
  --red: #F85149;
  --yellow: #E3B341;
  --blue: #58A6FF;
  --slate: #8B949E;
  --text: #C9D1D9;
  --text-muted: #8B949E;
  --text-dim: rgba(201,209,217,0.35);
  --white: #F0F6FC;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1080px;
  --radius: 6px;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--white); }
code, .mono { font-family: var(--mono); }

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

/* ---- HEADER ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(13,17,23,0.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-family: var(--mono); font-size: 1rem; font-weight: 600; color: var(--white); }
.logo span { color: var(--green); }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { font-family: var(--mono) !important; background: var(--green) !important; color: var(--bg) !important; padding: 6px 16px !important; border-radius: 4px !important; font-weight: 600 !important; font-size: 0.75rem !important; }
.nav-cta:hover { background: var(--green-dark) !important; color: var(--bg) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--text); }

/* ---- HERO ---- */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero::before { content: ''; position: absolute; top: -200px; right: -100px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(0,214,143,0.04) 0%, transparent 70%); }

.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-content { position: relative; }
.hero-tag { display: inline-block; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--green); background: var(--green-dim); border: 1px solid rgba(0,214,143,0.2); padding: 4px 12px; border-radius: 3px; margin-bottom: 18px; }
.hero h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.1; color: var(--white); margin-bottom: 16px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--green); }
.hero p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 28px; max-width: 440px; font-weight: 300; line-height: 1.7; }

/* Terminal visual */
.hero-terminal { background: var(--surface); border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
.terminal-bar { height: 32px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 12px; gap: 6px; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot:nth-child(1) { background: var(--red); opacity: 0.7; }
.terminal-dot:nth-child(2) { background: var(--yellow); opacity: 0.7; }
.terminal-dot:nth-child(3) { background: var(--green); opacity: 0.7; }
.terminal-body { padding: 16px; font-family: var(--mono); font-size: 0.72rem; line-height: 1.8; color: var(--text-muted); }
.terminal-body .prompt { color: var(--green); }
.terminal-body .cmd { color: var(--white); }
.terminal-body .output { color: var(--slate); }
.terminal-body .ok { color: var(--green); }
.terminal-body .warn { color: var(--yellow); }

.hero-sub { padding: 52px 0 44px; border-bottom: 1px solid var(--border); }
.hero-sub h1 { font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.hero-sub p { font-size: 0.9rem; color: var(--text-muted); max-width: 480px; font-weight: 300; }

/* ---- BUTTONS ---- */
.btn { display: inline-block; padding: 11px 24px; font-family: var(--font); font-size: 0.82rem; font-weight: 600; border-radius: 4px; transition: all 0.15s; cursor: pointer; border: none; }
.btn-green { background: var(--green); color: var(--bg); }
.btn-green:hover { background: var(--green-dark); color: var(--bg); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- SECTIONS ---- */
section { padding: 72px 0; }
.section-surface { background: var(--surface); }
.section-title { font-size: 1.75rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.section-sub { font-size: 0.9rem; color: var(--text-muted); max-width: 460px; margin-bottom: 40px; font-weight: 300; }
.section-label { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--green); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---- FEATURES ---- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.feature-card { padding: 28px 22px; background: var(--bg); }
.feature-card:hover { background: var(--surface); }
.feature-icon { width: 20px; height: 20px; margin-bottom: 14px; color: var(--green); }
.feature-card h3 { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.feature-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; font-weight: 300; }

/* ---- STATS ---- */
.stats-band { padding: 44px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item h3 { font-family: var(--mono); font-size: 2rem; font-weight: 600; color: var(--green); }
.stat-item p { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

/* ---- IMAGE BAND ---- */
.img-band { position: relative; height: 300px; overflow: hidden; }
.img-band img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.25) saturate(0.8); }
.img-band .overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.img-band .overlay h2 { font-size: 1.5rem; font-weight: 700; color: var(--white); max-width: 480px; }
.img-band .overlay p { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }

/* ---- PRICING ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); align-items: stretch; }
.price-card { padding: 32px 24px; background: var(--bg); }
.price-card.featured { background: var(--surface); position: relative; }
.price-card.featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--green); }
.price-label { font-family: var(--mono); font-size: 0.62rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: 4px; }
.price-card h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.price-amount { font-size: 2rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.price-amount span { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }
.price-desc { font-size: 0.78rem; color: var(--text-muted); font-weight: 300; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li { font-size: 0.8rem; color: var(--text); font-weight: 300; padding: 4px 0 4px 18px; position: relative; }
.price-features li::before { content: '\2713'; position: absolute; left: 0; top: 4px; color: var(--green); font-size: 0.7rem; }
.price-card .btn { width: 100%; text-align: center; }

/* ---- BLOG ---- */
.blog-hero { padding: 52px 0 40px; border-bottom: 1px solid var(--border); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.blog-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.2s; }
.blog-card:hover { border-color: var(--border-light); }
.blog-meta { font-family: var(--mono); font-size: 0.65rem; color: var(--text-dim); margin-bottom: 8px; }
.blog-card h3 { font-size: 0.92rem; font-weight: 600; color: var(--white); margin-bottom: 6px; line-height: 1.35; }
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--green); }
.blog-card p { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; }

.post-hero { padding: 52px 0 40px; border-bottom: 1px solid var(--border); }
.post-hero h1 { font-size: 1.85rem; font-weight: 700; line-height: 1.15; color: var(--white); max-width: 640px; }
.post-hero .post-meta { font-family: var(--mono); color: var(--text-dim); font-size: 0.75rem; margin-top: 10px; }
.post-body { max-width: 660px; padding: 40px 0 72px; }
.post-body h2 { font-size: 1.15rem; font-weight: 600; color: var(--white); margin-top: 32px; margin-bottom: 12px; }
.post-body p { margin-bottom: 14px; color: var(--text); font-weight: 300; line-height: 1.75; }
.post-body ul, .post-body ol { margin-bottom: 14px; padding-left: 20px; }
.post-body li { margin-bottom: 5px; color: var(--text); font-weight: 300; }
.post-body code { font-family: var(--mono); background: var(--surface); padding: 2px 6px; border-radius: 3px; font-size: 0.85em; color: var(--green); }
.post-body blockquote { border-left: 2px solid var(--green); padding-left: 16px; margin: 20px 0; color: var(--text-muted); font-style: italic; font-weight: 300; }

/* ---- CTA ---- */
.cta-banner { padding: 56px 0; text-align: center; border-top: 1px solid var(--border); }
.cta-banner h2 { font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: var(--text-muted); font-weight: 300; margin-bottom: 24px; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 12px; font-family: var(--font); font-size: 0.85rem; font-weight: 300; border: 1px solid var(--border-light); border-radius: 4px; background: var(--surface); color: var(--white); transition: border-color 0.15s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 100px; }
.contact-info h3 { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 8px; margin-top: 20px; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 300; }

/* ---- TEAM ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.team-member { text-align: center; padding: 28px 16px; background: var(--bg); }
.team-avatar { width: 48px; height: 48px; border-radius: 4px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 0.82rem; font-weight: 600; color: var(--bg); background: var(--green); }
.team-member h4 { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.team-member p { font-size: 0.7rem; color: var(--text-dim); margin-top: 2px; }

/* ---- FAQ ---- */
.faq-list { max-width: 660px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item summary { font-size: 0.85rem; font-weight: 500; color: var(--white); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-family: var(--mono); font-size: 0.9rem; color: var(--green); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; line-height: 1.6; font-weight: 300; }

/* ---- FOOTER ---- */
.site-footer { border-top: 1px solid var(--border); color: var(--text-dim); padding: 40px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.footer-brand .logo { margin-bottom: 10px; display: block; }
.footer-brand p { font-size: 0.75rem; line-height: 1.6; max-width: 240px; font-weight: 300; }
.footer-col h4 { color: var(--text-muted); font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.footer-col ul { list-style: none; }
.footer-col a { color: var(--text-dim); font-size: 0.78rem; display: block; padding: 2px 0; transition: color 0.15s; font-weight: 300; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 14px; font-size: 0.68rem; display: flex; justify-content: space-between; font-weight: 300; }

/* ---- LEGAL ---- */
.legal-body { max-width: 660px; padding: 52px 0 72px; }
.legal-body h1 { font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.legal-updated { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 28px; }
.legal-body h2 { font-size: 1rem; font-weight: 600; color: var(--white); margin-top: 24px; margin-bottom: 8px; }
.legal-body p, .legal-body li { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.7; font-weight: 300; }
.legal-body ul { padding-left: 18px; margin-bottom: 12px; }

/* ---- 404 ---- */
.error-page { text-align: center; padding: 120px 24px; }
.error-page h1 { font-family: var(--mono); font-size: 5rem; font-weight: 600; color: var(--surface-2); line-height: 1; }
.error-page p { font-size: 0.95rem; color: var(--text-muted); margin: 10px 0 24px; font-weight: 300; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-terminal { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 24px; gap: 12px; z-index: 50; }
  .nav-toggle { display: block; }
  .hero { padding: 44px 0; }
  section { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
