/* Streamlined SCS — Root Landing Pages */
/* Pure CSS, no external dependencies, system fonts only */

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

:root {
  --bg: #08101f;
  --bg-card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(230,80,0,0.3);
  --text: #ffffff;
  --text-muted: #8ba3c7;
  --primary: #e65000;
  --primary-glow: rgba(230,80,0,0.4);
  --primary-soft: rgba(230,80,0,0.12);
  --navy: #011844;
  --navy-glow: rgba(1,24,68,0.8);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-pill: 9999px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background effects ─────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right,  rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  mix-blend-mode: screen;
  animation: orb-pulse 6s ease-in-out infinite;
}
.bg-orb-1 {
  top: -15%; left: -10%;
  width: 55%; height: 55%;
  background: var(--navy);
  animation-delay: 0s;
}
.bg-orb-2 {
  bottom: -15%; right: -10%;
  width: 45%; height: 45%;
  background: rgba(230,80,0,0.08);
  animation-delay: 3s;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes orb-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
  50%       { box-shadow: 0 0 24px 4px var(--primary-glow); }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Layout ─────────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 5rem;
  animation: fade-up 0.5s ease both;
}

.logo { height: 48px; object-fit: contain; display: block; }

.domain-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

/* ── Main ───────────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Hero icon ──────────────────────────────────────────── */
.hero-icon-wrap {
  display: inline-flex;
  padding: 1rem;
  border-radius: 1.25rem;
  border: 1px solid var(--primary-soft);
  background: var(--primary-soft);
  margin-bottom: 2rem;
  animation: fade-up 0.6s 0.05s ease both;
}

.hero-icon-wrap svg { display: block; }

/* hero image (technician / sqd) */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 2rem;
  height: 200px;
  animation: fade-up 0.6s ease both;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--primary-soft);
  filter: blur(60px);
}

.hero-image { height: 100%; object-fit: contain; position: relative; z-index: 1; }

/* ── Typography ─────────────────────────────────────────── */
h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
  animation: fade-up 0.6s 0.1s ease both;
}

.text-primary { color: var(--primary); }
.text-amber   { color: #f59e0b; }
.text-teal    { color: #2dd4bf; }

.gradient-text {
  background: linear-gradient(135deg, #fff 50%, rgba(255,255,255,0.35));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
  animation: fade-up 0.6s 0.2s ease both;
}

.subtitle-amber { color: rgba(251,191,36,0.75); }

/* ── Feature cards ──────────────────────────────────────── */
.cards {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 860px;
  margin-top: 3rem;
  animation: fade-up 0.6s 0.35s ease both;
}

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

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: border-color 0.25s;
}

.card:hover { border-color: rgba(230,80,0,0.35); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.card-icon svg { display: block; }

.card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* card-span spans both columns in 2-col grids */
.card-span { grid-column: 1 / -1; }

/* ── Tags (legacy) ──────────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 3rem;
  animation: fade-up 0.6s 0.35s ease both;
}

.tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  border: 1px solid;
}

.tag-amber {
  background: rgba(245,158,11,0.08);
  color: #f59e0b;
  border-color: rgba(245,158,11,0.25);
}

/* Terminal cards (tech) */
.terminal-card {
  background: #060d1a;
  border: 1px solid rgba(45,212,191,0.18);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.terminal-card svg { flex-shrink: 0; margin-top: 2px; }

.terminal-method { color: #2dd4bf; }
.terminal-path   { color: var(--text); }
.terminal-desc   {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ── Slogan ─────────────────────────────────────────────── */
.slogan {
  margin-top: 4rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  font-style: italic;
  font-weight: 300;
  max-width: 560px;
  animation: fade-in 1s 0.5s ease both;
}

/* ── Access restriction ─────────────────────────────────── */
.access-notice {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 620px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  animation: fade-up 0.6s 0.55s ease both;
}

.notice-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.notice-icon svg { display: block; }

.access-notice h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  animation: none;
  letter-spacing: 0;
}

.access-notice p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA ────────────────────────────────────────────────── */
.cta-wrap {
  margin-top: 2.5rem;
  animation: fade-in 0.8s 0.75s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: glow-pulse 3s ease-in-out infinite;
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 32px var(--primary-glow);
  animation: none;
}

.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(4px); }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  animation: fade-in 1s 1s ease both;
}

.footer-logo { height: 22px; opacity: 0.45; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 1; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--primary); }

.footer-secure {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(230,80,0,0.6);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(139,163,199,0.5);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-wrap { padding: 2rem 1.25rem 3rem; }
  header { margin-bottom: 3.5rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .card-span { grid-column: 1; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .logo { height: 38px; }
  .slogan { margin-top: 2.5rem; }
  .cta-wrap { margin-top: 2rem; }
}

/* ── Footer security link ───────────────────────────────── */
.footer-security-link {
  opacity: 0.5;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  gap: 4px;
  transition: opacity 0.25s ease;
}
.footer-security-link:hover { opacity: 0.85; }

/* ── Footer protection line ─────────────────────────────── */
.footer-protection {
  width: 100%;
  text-align: center;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.22);
  margin: 0.5rem 0 0;
  letter-spacing: 0.015em;
  font-style: italic;
}
