/* neo-terminal/theme.css */
/* --- Optional mono font --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&display=swap');

/* Root tokens (dramatic shift) */
body.neo-terminal {
  --nt-bg: #0b0e10;
  --nt-bg-2: #0f1418;
  --nt-grid: rgba(0, 255, 140, 0.06);
  --nt-text: #e5ffe5;
  --nt-text-dim: #9de8c0;
  --nt-accent: #00ff88;
  --nt-accent-2: #18d6a6;
  --nt-danger: #ff4d4d;
  --nt-warning: #ffd166;
  --nt-border: rgba(0, 255, 136, 0.35);
  --nt-border-strong: rgba(0, 255, 136, 0.7);
  --nt-shadow: 0 0 0.75rem rgba(0, 255, 136, 0.25), inset 0 0 0.5rem rgba(0, 255, 136, 0.08);
  --nt-scanline: linear-gradient(rgba(255,255,255,0.07) 50%, transparent 50%) 0 0/100% 2.4px;
  --nt-glow: drop-shadow(0 0 6px rgba(0, 255, 136, 0.5)) drop-shadow(0 0 18px rgba(0, 255, 136, 0.25));
  --nt-radius: 0px; /* hard edges */
  --nt-gap: 18px;

  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(0,255,136,0.06), transparent 60%),
    radial-gradient(1200px 800px at 110% 10%, rgba(0,255,136,0.05), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(0,255,136,0.035) 22px 23px),
    var(--nt-scanline),
    #0a0d0f;
  color: var(--nt-text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* Grid overlay */
body.neo-terminal .smartpage-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 50% -10%, rgba(0,255,136,0.06), transparent 60%),
    linear-gradient(transparent, transparent),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(0,255,136,0.05) 28px 29px),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(0,255,136,0.05) 28px 29px);
  opacity: 0.35;
  z-index: 0;
}

/* Container spacing */
body.neo-terminal .smartpage-container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 32px auto;
  padding: 0 18px 56px;
}

/* Headings */
body.neo-terminal h1,
body.neo-terminal h2,
body.neo-terminal h3 {
  letter-spacing: 0.4px;
  text-shadow: 0 0 6px rgba(0,255,136,0.3);
  filter: var(--nt-glow);
}

body.neo-terminal .hero-headline { font-weight: 700; }
body.neo-terminal .hero-subheadline { color: var(--nt-text-dim); }

/* Cards / sections */
body.neo-terminal .card-box,
body.neo-terminal .smartpage-hero,
body.neo-terminal .smartpage-about,
body.neo-terminal .smartpage-offer,
body.neo-terminal .smartpage-video,
body.neo-terminal .smartpage-form {
  background: linear-gradient(180deg, rgba(0, 25, 18, 0.5), rgba(0, 20, 16, 0.3));
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  box-shadow: var(--nt-shadow);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

/* Remove the default hero fancy image/scrims for purity */
body.neo-terminal .smartpage-hero .hero-bg-wrap,
body.neo-terminal .smartpage-hero .hero-bg-img,
body.neo-terminal .smartpage-hero .hero-bg-mask,
body.neo-terminal .smartpage-hero .hero-bg-scrim { display: none !important; }

/* Hero */
body.neo-terminal .smartpage-hero {
  background:
    linear-gradient(180deg, rgba(0, 25, 18, 0.6), rgba(0, 20, 16, 0.35)),
    repeating-linear-gradient(0deg, rgba(0,255,136,0.05) 0 1px, transparent 1px 3px);
  border-left: 3px solid var(--nt-border-strong);
}
body.neo-terminal .hero-avatar {
  width: 68px; height: 68px; object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--nt-border-strong);
  box-shadow: var(--nt-shadow);
}

/* CTA Buttons */
body.neo-terminal .btn-premium,
body.neo-terminal .btn-secondary,
body.neo-terminal .smartpage-links a.link-btn-grid {
  font-family: inherit !important;
  text-transform: none !important;
  border-radius: 0 !important;
  border: 1px solid var(--nt-border-strong) !important;
  background: transparent !important;
  color: var(--nt-accent) !important;
  box-shadow: none !important;
  position: relative;
  isolation: isolate;
}

body.neo-terminal .btn-premium {
  background: rgba(0,255,136,0.08) !important;
}

body.neo-terminal .btn-premium:hover,
body.neo-terminal .smartpage-links a.link-btn-grid:hover {
  background: rgba(0,255,136,0.14) !important;
  box-shadow: 0 0 10px rgba(0,255,136,0.25) !important;
  transform: translateY(-1px);
}

body.neo-terminal .btn-secondary {
  color: var(--nt-text) !important;
  border-color: var(--nt-border) !important;
}
body.neo-terminal .btn-secondary:hover {
  border-color: var(--nt-border-strong) !important;
}

/* Link grid buttons: show a ">" caret like a terminal */
body.neo-terminal .smartpage-links { gap: 10px; }
body.neo-terminal .smartpage-links a.link-btn-grid {
  padding: 10px 14px !important;
}
body.neo-terminal .smartpage-links a.link-btn-grid::before {
  content: "> ";
  color: var(--nt-accent);
  opacity: 0.8;
}

/* Offer block */
body.neo-terminal .smartpage-offer h3 { color: var(--nt-accent); }
body.neo-terminal .smartpage-offer p { color: var(--nt-text-dim); }

/* Video frame */
body.neo-terminal .video-wrapper {
  border: 1px solid var(--nt-border);
  box-shadow: var(--nt-shadow);
  background: #07110d;
}

/* Form elements */
body.neo-terminal .smartpage-form input[type="text"],
body.neo-terminal .smartpage-form input[type="email"],
body.neo-terminal .smartpage-form input[type="tel"],
body.neo-terminal .smartpage-form input[type="url"],
body.neo-terminal .smartpage-form textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--nt-text);
  border: 1px solid var(--nt-border);
  border-radius: 0;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
body.neo-terminal .smartpage-form input::placeholder,
body.neo-terminal .smartpage-form textarea::placeholder {
  color: rgba(229, 255, 229, 0.5);
}
body.neo-terminal .smartpage-form input:focus,
body.neo-terminal .smartpage-form textarea:focus {
  border-color: var(--nt-border-strong);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.12);
}

body.neo-terminal .consent-label {
  color: var(--nt-text-dim);
}
body.neo-terminal .consent-label input[type="checkbox"] {
  accent-color: var(--nt-accent);
}

/* Social icons */
body.neo-terminal .smartpage-social .social-icon {
  color: var(--nt-accent);
  border: 1px solid var(--nt-border);
  padding: 8px 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  box-shadow: var(--nt-shadow);
}
body.neo-terminal .smartpage-social .social-icon:hover {
  background: rgba(0,255,136,0.12);
}

/* Dividers */
body.neo-terminal .section-divider {
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(0,255,136,0.35), transparent);
  margin: 18px 0;
  position: relative;
}
body.neo-terminal .section-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(0,255,136,0.15) 8px 9px);
  opacity: 0.3;
  pointer-events: none;
}

/* Footer */
body.neo-terminal .smartpage-footer {
  color: var(--nt-text-dim);
  text-align: center;
  padding-top: 18px;
}
body.neo-terminal .smartpage-footer .footer-link,
body.neo-terminal .smartpage-footer .brand-link {
  color: var(--nt-accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(0,255,136,0.5);
}
body.neo-terminal .smartpage-footer .footer-link:hover,
body.neo-terminal .smartpage-footer .brand-link:hover {
  border-bottom-style: solid;
}

/* Progress bar (if used) */
body.neo-terminal #progress-bar {
  position: fixed;
  left: 0; top: 0;
  height: 3px;
  width: 100%;
  background:
    linear-gradient(90deg, rgba(0,255,136,0.0), rgba(0,255,136,0.8), rgba(0,255,136,0.0));
  box-shadow: 0 0 8px rgba(0,255,136,0.5);
  z-index: 10;
}

/* Scrollbar (WebKit) */
body.neo-terminal ::-webkit-scrollbar { height: 10px; width: 10px; }
body.neo-terminal ::-webkit-scrollbar-thumb {
  background: rgba(0,255,136,0.35);
  border: 2px solid rgba(0,0,0,0.45);
}
body.neo-terminal ::-webkit-scrollbar-track { background: rgba(0,0,0,0.4); }

/* Focus ring for a11y */
body.neo-terminal :focus-visible {
  outline: 2px solid var(--nt-accent);
  outline-offset: 2px;
}

/* Small entrance animation */
@keyframes nt-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.neo-terminal .fade-in { animation: nt-fade-in 320ms ease-out; }

/* Subtle blinking cursor effect for hero headline (optional) */
body.neo-terminal .hero-headline::after {
  content: " _";
  animation: nt-blink 1.1s steps(2, start) infinite;
  color: var(--nt-accent);
  opacity: 0.9;
}
@keyframes nt-blink {
  0%, 49% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

/* Make sure minimal-aura / other base radii don’t leak in */
body.neo-terminal .btn-premium,
body.neo-terminal .btn-secondary,
body.neo-terminal .link-btn-grid,
body.neo-terminal .smartpage-hero,
body.neo-terminal .card-box,
body.neo-terminal .video-wrapper,
body.neo-terminal input,
body.neo-terminal textarea {
  border-radius: 0 !important;
}
