/* =============================
   Noltec — noltec.ca
   ============================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #0c0c0e;
  --surface: #131316;
  --surface-hover: #1a1a1f;
  --border: #222228;
  --border-light: #2e2e36;
  --text: #e8e6e1;
  --text-muted: #8a8884;
  --text-dim: #5a5856;
  --accent: #c4f04d;
  --accent-dim: rgba(196, 240, 77, 0.08);
  --accent-glow: rgba(196, 240, 77, 0.15);
  --white: #f5f4f0;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(196,240,77,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ── LAYOUT ── */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12,12,14,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.logo span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); opacity: 1; }

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  opacity: 1 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 54px; left: 0; right: 0;
  background: rgba(12,12,14,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ambient glow */
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,240,77,0.07) 0%, transparent 70%);
  top: 5%;
  right: -20%;
  pointer-events: none;
  animation: drift 8s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-30px, 20px) scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--white);
  max-width: 13ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 44ch;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

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

.btn-ghost {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--white); opacity: 1; }

/* stats strip */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}

.stat-value span { color: var(--accent); }

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── HERO VISUAL ── */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px var(--border),
    0 40px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(196,240,77,0.04);
}

/* accent glow line at base of terminal */
.terminal-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 24px 6px rgba(196,240,77,0.2), 0 0 60px 12px rgba(196,240,77,0.07);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.terminal-chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-chrome span:nth-child(1) { background: #ff5f57; }
.terminal-chrome span:nth-child(2) { background: #febc2e; }
.terminal-chrome span:nth-child(3) { background: #28c840; }

.terminal-body {
  padding: 1.75rem 1.5rem 2.25rem;
  font-family: 'Courier New', 'Cascadia Code', monospace;
  font-size: 0.88rem;
}

.terminal-lines {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.t-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.4;
}

.t-prompt {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.t-cmd { color: var(--white); }

.t-out { padding-left: 0.2rem; }

.t-check {
  color: var(--accent);
  flex-shrink: 0;
}

.t-dim { color: var(--text-dim); }
.t-dim .t-check { color: var(--text-dim); }

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: middle;
  border-radius: 1px;
  animation: blink 1.1s step-end infinite;
}

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

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-track span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee-track span::after {
  content: '·';
  margin-left: 3rem;
  color: var(--accent);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.section-heading em { font-style: italic; color: var(--accent); }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ── SERVICES ── */
.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.service-card:hover { background: var(--surface-hover); }
.service-card:hover::after { width: 100%; }

/* service icon box */
.service-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-dim);
  border: 1px solid rgba(196,240,77,0.14);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
  transition: background 0.2s, box-shadow 0.2s;
}

.service-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.service-card:hover .service-icon {
  background: rgba(196,240,77,0.13);
  box-shadow: 0 0 18px rgba(196,240,77,0.12);
}

.service-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(196,240,77,0.14);
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ── CTA BANNER ── */
.cta-banner {
  margin-top: 2rem;
  padding: 1.6rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-banner p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cta-banner p strong { color: var(--text); }

.cta-banner a {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.55rem 1.3rem;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}

.cta-banner a:hover {
  background: var(--accent);
  color: var(--bg);
  opacity: 1;
}

/* ── ABOUT ── */
.about {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-text strong { color: var(--text); font-weight: 500; }

/* tools panel */
.tools-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.tools-group { margin-bottom: 1.5rem; }
.tools-group:last-child { margin-bottom: 0; }

.tools-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tool-tag {
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  transition: border-color 0.2s;
}

.tool-tag:hover { border-color: var(--border-light); }

/* ── CONTACT ── */
.contact {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact .section-heading { margin-bottom: 0.5rem; }

.contact .section-sub {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  padding: 1rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.contact-email:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  opacity: 1;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.contact-links a:hover { color: var(--white); opacity: 1; }

/* ── FOOTER ── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

footer .loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── FADE IN ── */
.reveal { opacity: 1; transform: none; }

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero::before { display: none; }
  .hero-visual { justify-content: flex-start; }
  .terminal-card { max-width: 480px; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 7rem 0 4rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; gap: 0.75rem; text-align: center; }
}
