/*
Theme Name: SecTerminal Landing
Theme URI: https://secterminal.io
Author: OpenAI
Author URI: https://openai.com
Description: Minimal WordPress landing page theme for SecTerminal with retro terminal-inspired design.
Version: 1.1
License: GPL2
Text Domain: secterminal
*/

:root {
  --bg: #d7d7d7;
  --bg-soft: #ebebeb;
  --panel: #f3f3f3;
  --panel-2: #e7e7e7;
  --terminal: #111111;
  --terminal-2: #181818;
  --text: #121212;
  --muted: #575757;
  --border: #8c8c8c;
  --border-strong: #4e4e4e;
  --white: #ffffff;
  --green: #00c96b;
  --amber: #d38a00;
  --red: #c63b3b;
  --shadow: 0 0 0 1px rgba(0,0,0,.08), 6px 6px 0 rgba(0,0,0,.04);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", "JetBrains Mono", "Courier New", monospace;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #000; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: inherit; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(223,223,223,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-strong);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #000;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
}

.brand-mark span {
  display: block;
  background: #000;
}

.brand-mark span.off { background: transparent; }

.brand-text {
  font-size: 1.05rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  width: .6ch;
  margin-left: 1px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a,
.button,
.wp-block-button__link,
input[type="submit"] {
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: #000;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: var(--shadow);
  font: inherit;
  cursor: pointer;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.nav-links a:hover,
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  transform: translate(-1px, -1px);
  background: var(--white);
  border-color: #000;
  color: #000;
}

.button-primary {
  background: #000;
  color: var(--white);
}
.button-primary:hover {
  color: var(--white);
  background: #2a2a2a;
  border-color: #000;
}

.hero {
  padding: 72px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch;
}

.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: .92rem;
  background: rgba(255,255,255,.35);
}

.dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--border-strong);
  background: #d0d0d0;
}

.panel-body {
  padding: 28px;
}

.kicker {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: .96rem;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.03em;
}

.hero p {
  margin: 0 0 24px;
  color: #3f3f3f;
  font-size: 1.02rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.terminal-screen {
  background: linear-gradient(180deg, var(--terminal), var(--terminal-2));
  border: 1px solid #000;
  padding: 22px;
  min-height: 100%;
  color: #e8e8e8;
}

.term-line { margin: 0 0 8px; }
.term-line.dim { color: #9c9c9c; }
.term-line.ok { color: #57f0a0; }
.term-line.warn { color: #ffc04a; }
.term-line.crit { color: #ff7474; }
.term-line strong { color: var(--white); }

.section {
  padding: 28px 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

.section-intro {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 64ch;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  background: #f8f8f8;
  color: var(--muted);
  padding: 7px 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  font-size: .86rem;
}

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

.card {
  padding: 24px;
}

.card h3,
.card h2 {
  margin-top: 0;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.card li + li {
  margin-top: 8px;
}

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

.score-box {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.45);
  padding: 14px;
}

.score-box small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.score-box strong {
  font-size: 1.15rem;
}

.cta {
  padding: 20px 0 28px;
}

.cta-box {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-box h2 {
  margin: 0 0 10px;
}
.cta-box p {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
}

.contact-form label {
  display: block;
  margin-top: 14px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: #000;
  padding: 12px 14px;
  font: inherit;
  border-radius: 0;
}

textarea { min-height: 150px; }

.inline {
  background: #f8f8f8;
  padding: 4px 6px;
  border: 1px solid var(--border);
}

.site-footer {
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: auto;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 38px;
  }

  .cta-box {
    align-items: flex-start;
  }
}
