/*
Theme Name: VLNtech
Theme URI: https://vlntech.com
Author: VLNtech
Author URI: https://vlntech.com
Description: A bold, AI-forward dark theme for VLNtech. Features a sitewide animated code background, hero, pricing matrix, portfolio section, and full custom layout. All styles and scripts are namespaced with "nw-" to prevent conflicts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vlntech
Tags: dark, one-column, custom-colors, custom-menu, featured-images, full-width-template, theme-options
*/

/* ============ RESET (scoped to .nw-root, won't break wp-admin) ============ */
.nw-root *, .nw-root *::before, .nw-root *::after { box-sizing: border-box; }
.nw-root { margin: 0; padding: 0; }

/* ============ TOKENS ============ */
:root {
  --nw-bg: #020509;
  --nw-surface: #060d18;
  --nw-surface2: #081120;
  --nw-border: rgba(56,140,230,0.12);
  --nw-border-bright: rgba(56,140,230,0.28);
  --nw-accent: #4FA8F5;
  --nw-accent-bright: #6BBEFF;
  --nw-accent-dim: rgba(79,168,245,0.15);
  --nw-text: #F2F6FC;
  --nw-muted: rgba(200,222,250,0.78);
  --nw-muted-soft: rgba(200,222,250,0.82);
  --nw-font-head: 'Syne', sans-serif;
  --nw-font-body: 'Space Grotesk', sans-serif;
  --nw-font-mono: 'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; }

body.nw-body {
  background: var(--nw-bg);
  color: var(--nw-text);
  font-family: var(--nw-font-body);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ SITEWIDE CODE-RAIN BACKGROUND ============ */
#nw-code-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  opacity: 0.13;
  pointer-events: none;
}
.nw-root {
  position: relative;
  z-index: 1;
}

/* ============ NAV ============ */
.nw-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(2,5,9,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--nw-border-bright);
  position: sticky; top: 0;
  z-index: 50;
}
.nw-logo { font-family: var(--nw-font-head); font-size: 1.1rem; font-weight: 800; letter-spacing: 0.04em; color: var(--nw-text); text-decoration: none; }
.nw-logo span { color: var(--nw-accent-bright); }
.nw-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nw-nav ul li { margin: 0; }
.nw-nav ul a { text-decoration: none; color: var(--nw-muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.nw-nav ul a:hover { color: var(--nw-accent-bright); }
.nw-nav-cta {
  background: transparent;
  color: var(--nw-accent-bright);
  font-family: var(--nw-font-head);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5rem 1.2rem; border-radius: 3px;
  border: 0.5px solid var(--nw-accent);
  text-decoration: none;
  transition: background 0.2s;
}
.nw-nav-cta:hover { background: var(--nw-accent-dim); }

/* ============ HERO ============ */
.nw-hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
}
.nw-grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(79,168,245,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(79,168,245,0.04) 1px, transparent 1px); background-size: 48px 48px; }
.nw-grid-fade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, var(--nw-bg) 80%); }
.nw-scan-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--nw-accent), transparent); animation: nw-scan 4s ease-in-out infinite; opacity: 0.4; }
@keyframes nw-scan { 0%,100% { transform: translateY(0); opacity: 0; } 10% { opacity: 0.4; } 90% { opacity: 0.4; } 50% { transform: translateY(200px); } }

.nw-hero-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--nw-accent); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.7rem; position: relative; }
.nw-hero-label::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--nw-accent); }

.nw-h1 { font-family: var(--nw-font-head); font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 800; line-height: 1.05; max-width: 740px; margin: 0 0 0.9rem; position: relative; color: var(--nw-text); }
.nw-h1 em { font-style: normal; color: var(--nw-accent-bright); }

.nw-hero-sub { color: var(--nw-muted); font-size: 1.05rem; max-width: 480px; margin-bottom: 1.5rem; line-height: 1.75; position: relative; }
.nw-hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; position: relative; }

.nw-btn-primary { background: var(--nw-accent); color: #020509; font-family: var(--nw-font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.75rem 1.75rem; border-radius: 3px; text-decoration: none; border: none; cursor: pointer; transition: opacity 0.2s, transform 0.18s; display: inline-block; }
.nw-btn-primary:hover { opacity: 0.88; transform: translateY(-2px); color: #020509; }
.nw-btn-ghost { background: transparent; color: var(--nw-text); font-family: var(--nw-font-head); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.75rem 1.75rem; border-radius: 3px; text-decoration: none; border: 0.5px solid var(--nw-border-bright); cursor: pointer; transition: border-color 0.2s, transform 0.18s, color 0.2s; display: inline-block; }
.nw-btn-ghost:hover { border-color: var(--nw-accent-bright); color: var(--nw-accent-bright); transform: translateY(-2px); }

.nw-status-bar { display: flex; gap: 1.25rem; margin-top: 1.25rem; position: relative; flex-wrap: wrap; }
.nw-status-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; color: var(--nw-muted); letter-spacing: 0.05em; }
.nw-status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--nw-accent); animation: nw-pulse 2s ease-in-out infinite; }
@keyframes nw-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.nw-status-dot.nw-delay { animation-delay: 0.7s; }
.nw-status-dot.nw-delay2 { animation-delay: 1.4s; }

/* ============ TICKER ============ */
.nw-ticker-wrap { overflow: hidden; border-top: 0.5px solid var(--nw-border-bright); border-bottom: 0.5px solid var(--nw-border-bright); padding: 0.75rem 0; background: var(--nw-surface); }
.nw-ticker-track { display: flex; gap: 3rem; animation: nw-ticker 24s linear infinite; width: max-content; }
.nw-ticker-track span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nw-muted); white-space: nowrap; }
.nw-ticker-track span em { font-style: normal; color: var(--nw-accent); margin-right: 0.4rem; }
@keyframes nw-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ GENERIC SECTIONS ============ */
.nw-section { padding: 4rem 2.5rem; position: relative; }
.nw-section-label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nw-accent); margin-bottom: 0.6rem; }
.nw-h2 { font-family: var(--nw-font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.08; margin: 0 0 2rem; max-width: 560px; color: var(--nw-text); }

/* ============ FEATURE CARDS ("What We Do") ============ */
.nw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--nw-border-bright); border: 0.5px solid var(--nw-border-bright); border-radius: 6px; overflow: hidden; }
.nw-cards .nw-card { background: var(--nw-surface); padding: 1.5rem; transition: background 0.25s; position: relative; overflow: hidden; }
.nw-cards .nw-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--nw-accent), transparent); opacity: 0; transition: opacity 0.3s; }
.nw-cards .nw-card:hover { background: var(--nw-surface2); }
.nw-cards .nw-card:hover::before { opacity: 0.6; }
.nw-cards .nw-card-num { font-family: var(--nw-font-head); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--nw-accent); margin-bottom: 0.75rem; }
.nw-cards .nw-card h3 { font-family: var(--nw-font-head); font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--nw-text); }
.nw-cards .nw-card p { font-size: 0.95rem; color: var(--nw-muted); line-height: 1.7; margin: 0; }

/* ============ PROCESS STEPS ============ */
.nw-steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.nw-step { padding-left: 1rem; border-left: 1px solid var(--nw-border-bright); }
.nw-step-num { font-family: var(--nw-font-head); font-size: 2rem; font-weight: 800; color: rgba(79,168,245,0.1); line-height: 1; margin-bottom: 0.4rem; }
.nw-step h4 { font-family: var(--nw-font-head); font-size: 0.9rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--nw-accent-bright); }
.nw-step p { font-size: 0.93rem; color: var(--nw-muted); margin: 0; }

/* ============ DOMAIN STRIP ============ */
.nw-domain-strip { background: var(--nw-surface); border-top: 0.5px solid var(--nw-border-bright); border-bottom: 0.5px solid var(--nw-border-bright); padding: 3rem 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; position: relative; }
.nw-domain-inner { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.nw-domain-text { flex: 1; min-width: 240px; }
.nw-domain-text h3 { font-family: var(--nw-font-head); font-size: 1.3rem; font-weight: 800; margin: 0 0 0.5rem; color: var(--nw-text); }
.nw-domain-text p { color: var(--nw-muted); font-size: 0.86rem; max-width: 360px; line-height: 1.7; margin: 0; }
.nw-domain-search { display: flex; flex: 1; min-width: 260px; max-width: 420px; background: rgba(79,168,245,0.04); border: 0.5px solid var(--nw-border-bright); border-radius: 4px; overflow: hidden; align-self: center; }
.nw-domain-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--nw-text); font-family: var(--nw-font-body); font-size: 0.9rem; padding: 0.8rem 1rem; }
.nw-domain-search input::placeholder { color: var(--nw-muted); }
.nw-domain-search button { background: var(--nw-accent); color: #020509; font-family: var(--nw-font-head); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; border: none; padding: 0 1.2rem; cursor: pointer; transition: opacity 0.2s; }
.nw-domain-search button:hover { opacity: 0.85; }
.nw-domain-result { font-size: 0.92rem; color: var(--nw-accent-bright); padding-left: 0.2rem; min-height: 1.2em; letter-spacing: 0.03em; margin: 0; }

/* ============ CTA / FOOTER ============ */
.nw-cta-section { padding: 4.5rem 2.5rem; text-align: center; position: relative; overflow: hidden; }
.nw-cta-orb { position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(79,168,245,0.07) 0%, transparent 65%); pointer-events: none; }
.nw-cta-section .nw-h2 { margin: 0 auto 0.75rem; }
.nw-cta-section .nw-cta-copy { color: var(--nw-muted); margin: 0 auto 2rem; max-width: 480px; font-size: 1.05rem; line-height: 1.7; }

.nw-footer { border-top: 0.5px solid var(--nw-border); padding: 1.5rem 2.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; position: relative; background: var(--nw-bg); }
.nw-footer p { font-size: 0.76rem; color: var(--nw-muted); margin: 0; }
.nw-footer-logo { font-family: var(--nw-font-head); font-size: 0.95rem; font-weight: 800; color: var(--nw-text); }
.nw-footer-logo span { color: var(--nw-accent-bright); }

.nw-fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.nw-fade-up.nw-visible { opacity: 1; transform: translateY(0); }

/* ============ PRICING SECTION ============ */
.nw-pricing-section { position: relative; padding: 3.5rem 2rem; overflow: hidden; border-top: 0.5px solid var(--nw-border-bright); border-bottom: 0.5px solid var(--nw-border-bright); }
.nw-services-wrap { position: relative; z-index: 1; }

.nw-section-head { text-align: center; margin-bottom: 2.5rem; position: relative; }
.nw-scan-bar { position: absolute; top: 0; left: -2rem; right: -2rem; height: 1px; background: linear-gradient(90deg, transparent, var(--nw-accent), transparent); animation: nw-scanh 3s ease-in-out infinite; opacity: 0.5; }
@keyframes nw-scanh { 0%,100% { opacity: 0; transform: translateY(0); } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 50% { transform: translateY(80px); } }

.nw-sys-label { font-family: var(--nw-font-mono); font-size: 0.65rem; color: var(--nw-accent); letter-spacing: 0.18em; margin-bottom: 0.5rem; opacity: 0.8; }
.nw-section-head .nw-h2 { font-family: var(--nw-font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.1; color: var(--nw-text); margin: 0 auto; max-width: none; }
.nw-section-head .nw-h2 em { font-style: italic; color: var(--nw-accent-bright); display: block; }

.nw-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--nw-border-bright);
  border: 0.5px solid var(--nw-border-bright);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.nw-pcard {
  background: var(--nw-surface);
  padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.nw-pcard:hover { background: var(--nw-surface2); }

.nw-card-rain {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; opacity: 0; transition: opacity 0.4s;
  overflow: hidden;
}
.nw-pcard:hover .nw-card-rain { opacity: 1; }
.nw-rain-col {
  position: absolute; top: -100%;
  font-family: var(--nw-font-mono);
  font-size: 10px; color: var(--nw-accent); line-height: 1.4;
  writing-mode: vertical-rl; letter-spacing: 2px;
  animation: nw-rainfall linear infinite;
  opacity: 0.18;
  white-space: nowrap;
}
@keyframes nw-rainfall { from { transform: translateY(-20%); } to { transform: translateY(120%); } }

.nw-pcard::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--nw-accent-bright), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.nw-pcard:hover::after { opacity: 0.8; }

.nw-card-corner { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-top: 1px solid var(--nw-accent); border-right: 1px solid var(--nw-accent); opacity: 0.4; }
.nw-card-corner-bl { position: absolute; bottom: 8px; left: 8px; width: 10px; height: 10px; border-bottom: 1px solid var(--nw-accent); border-left: 1px solid var(--nw-accent); opacity: 0.4; }

.nw-card-top { display: flex; align-items: flex-start; justify-content: flex-end; margin-bottom: 0.75rem; }
.nw-card-num-mono { font-family: var(--nw-font-mono); font-size: 0.65rem; color: var(--nw-accent); opacity: 0.6; letter-spacing: 0.1em; }
.nw-card-tag { font-family: var(--nw-font-mono); font-size: 0.58rem; color: var(--nw-accent); background: rgba(79,168,245,0.08); border: 0.5px solid var(--nw-border-bright); padding: 2px 7px; border-radius: 2px; letter-spacing: 0.1em; }

.nw-pcard h3 { font-family: var(--nw-font-head); font-size: 0.97rem; font-weight: 700; margin: 0 0 0.55rem; color: var(--nw-text); line-height: 1.3; position: relative; }
.nw-pcard p { font-size: 0.92rem; color: var(--nw-muted-soft); line-height: 1.72; flex: 1; position: relative; margin: 0; }

.nw-card-footer { margin-top: 1.1rem; position: relative; }
.nw-price-row { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.85rem; }
.nw-price-label { font-family: var(--nw-font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nw-accent); }
.nw-price-amount { font-family: var(--nw-font-head); font-size: 1.5rem; font-weight: 800; color: var(--nw-text); }

.nw-included-list { margin-bottom: 0.85rem; }
.nw-included-label { font-family: var(--nw-font-mono); font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nw-accent); margin-bottom: 0.45rem; }
.nw-included-row { display: flex; justify-content: space-between; align-items: center; padding: 0.28rem 0; border-bottom: 0.5px solid var(--nw-border); }
.nw-included-row:last-child { border-bottom: none; }
.nw-included-row span { font-size: 0.74rem; color: var(--nw-muted-soft); }
.nw-included-row strong { font-size: 0.74rem; font-weight: 600; color: var(--nw-accent-bright); font-family: var(--nw-font-mono); }

.nw-add-btn {
  display: block; width: 100%; text-align: center;
  background: transparent;
  color: var(--nw-accent-bright);
  font-family: var(--nw-font-mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.65rem 1rem; border-radius: 3px;
  border: 0.5px solid var(--nw-border-bright);
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none; position: relative; overflow: hidden;
}
.nw-add-btn::before {
  content: ''; position: absolute; left: -100%; top: 0; bottom: 0; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(79,168,245,0.12), transparent);
  transition: left 0.4s;
}
.nw-add-btn:hover::before { left: 100%; }
.nw-add-btn:hover { border-color: var(--nw-accent); color: var(--nw-accent-bright); }

.nw-glitch { position: relative; display: inline-block; }
.nw-glitch::before, .nw-glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; opacity: 0; }
.nw-section-head:hover .nw-glitch::before { color: #4FA8F5; left: 2px; opacity: 0.4; animation: nw-glitch1 0.3s steps(2) 1; }
.nw-section-head:hover .nw-glitch::after { color: #6BBEFF; left: -2px; opacity: 0.3; animation: nw-glitch2 0.3s steps(2) 1; }
@keyframes nw-glitch1 { 0%,100% { clip-path: inset(0 0 80% 0); } 50% { clip-path: inset(40% 0 20% 0); } }
@keyframes nw-glitch2 { 0%,100% { clip-path: inset(60% 0 10% 0); } 50% { clip-path: inset(10% 0 60% 0); } }

.nw-hud-line { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.2rem; font-family: var(--nw-font-mono); font-size: 0.58rem; color: rgba(79,168,245,0.35); letter-spacing: 0.1em; }
.nw-hud-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--nw-accent); animation: nw-pulse 1.8s ease-in-out infinite; }
.nw-hud-dot.nw-d2 { animation-delay: 0.6s; }
.nw-hud-dot.nw-d3 { animation-delay: 1.2s; }

/* ============ PORTFOLIO / OUR WORK ============ */
.nw-portfolio { position: relative; }
.nw-portfolio-intro {
	color: var(--nw-muted);
	max-width: 580px;
	margin: -1.25rem 0 2.5rem;
	font-size: 1.05rem;
	line-height: 1.75;
}

.nw-portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1px;
	background: var(--nw-border-bright);
	border: 0.5px solid var(--nw-border-bright);
	border-radius: 6px;
	overflow: hidden;
}

.nw-portfolio-card {
	background: var(--nw-surface);
	padding: 1.5rem 1.4rem 1.6rem;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--nw-text);
	position: relative;
	overflow: hidden;
	transition: background 0.3s, transform 0.25s;
}
.nw-portfolio-card:hover { background: var(--nw-surface2); }
.nw-portfolio-card::after {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--nw-brand-accent, var(--nw-accent-bright)), transparent);
	opacity: 0; transition: opacity 0.3s;
}
.nw-portfolio-card:hover::after { opacity: 0.85; }

.nw-portfolio-card-corner {
	position: absolute; top: 8px; right: 8px;
	width: 10px; height: 10px;
	border-top: 1px solid var(--nw-accent);
	border-right: 1px solid var(--nw-accent);
	opacity: 0.4;
}
.nw-portfolio-card-corner-bl {
	position: absolute; bottom: 8px; left: 8px;
	width: 10px; height: 10px;
	border-bottom: 1px solid var(--nw-accent);
	border-left: 1px solid var(--nw-accent);
	opacity: 0.4;
}

/* Logo wrap is transparent — logos sit on the dark site background with breathing room */
/* Logo tile — clean light card per brand, sized to make the logo actually readable */
.nw-portfolio-logo-wrap {
	background: #FAFAF8; /* fallback; overridden inline per brand */
	border-radius: 6px;
	aspect-ratio: 16 / 10;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.6rem;
	margin: 0 auto 1rem;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.nw-portfolio-card:hover .nw-portfolio-logo-wrap {
	transform: scale(1.03);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.nw-portfolio-logo-wrap img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	transition: transform 0.5s ease;
}
.nw-portfolio-card:hover .nw-portfolio-logo-wrap img {
	transform: scale(1.05);
}

/* Framed marker kept for API compat — all cards are essentially framed now */
.nw-logo-framed {
	padding: 0.5rem 0.6rem;
}
.nw-logo-framed img {
	max-width: 100%;
	max-height: 100%;
}

/* Text-only placeholder for clients without a logo file yet */
.nw-portfolio-logo-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #FAFAF8 0%, #F0EEE8 100%);
	border-radius: 3px;
	padding: 1rem;
	text-align: center;
}
.nw-portfolio-logo-placeholder span {
	font-family: var(--nw-font-head);
	font-size: 1.05rem;
	font-weight: 800;
	color: #1a1a1a;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.nw-portfolio-card-body { display: flex; flex-direction: column; flex: 1; }
.nw-portfolio-tag {
	font-family: var(--nw-font-mono);
	font-size: 0.58rem;
	color: var(--nw-accent);
	background: rgba(79,168,245,0.08);
	border: 0.5px solid var(--nw-border-bright);
	padding: 2px 7px;
	border-radius: 2px;
	letter-spacing: 0.1em;
	margin-bottom: 0.6rem;
	align-self: flex-start;
}
.nw-portfolio-card h3 {
	font-family: var(--nw-font-head);
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.4rem;
	color: var(--nw-text);
	line-height: 1.25;
}
.nw-portfolio-card p {
	font-size: 0.92rem;
	color: var(--nw-muted-soft);
	line-height: 1.65;
	margin: 0 0 0.85rem;
	flex: 1;
}
.nw-portfolio-link {
	font-family: var(--nw-font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	color: var(--nw-accent-bright);
	text-transform: lowercase;
	display: inline-flex;
	align-items: center;
	transition: color 0.2s, letter-spacing 0.2s;
}
.nw-portfolio-card:hover .nw-portfolio-link {
	letter-spacing: 0.12em;
}

/* ============ RESULTS / TRACK RECORD ============ */
.nw-results { position: relative; }
.nw-results-intro {
	color: var(--nw-muted);
	max-width: 580px;
	margin: -1.25rem 0 2.5rem;
	font-size: 1.05rem;
	line-height: 1.75;
}

.nw-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.nw-result-card {
	background: var(--nw-bg);
	border: 0.5px solid var(--nw-border-bright);
	border-radius: 6px;
	padding: 1.5rem 1.4rem;
	position: relative;
	transition: border-color 0.3s, transform 0.25s;
	overflow: hidden;
}
.nw-result-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 2px; height: 100%;
	background: linear-gradient(180deg, var(--nw-accent), transparent);
	opacity: 0.6;
}
.nw-result-card:hover {
	border-color: var(--nw-accent);
	transform: translateY(-2px);
}

.nw-result-corner {
	position: absolute;
	top: 8px; right: 8px;
	width: 8px; height: 8px;
	border-top: 1px solid var(--nw-accent);
	border-right: 1px solid var(--nw-accent);
	opacity: 0.45;
}

.nw-result-value {
	font-family: var(--nw-font-head);
	font-size: clamp(1.5rem, 2.4vw, 1.95rem);
	font-weight: 800;
	line-height: 1.05;
	color: var(--nw-accent-bright);
	margin-bottom: 0.5rem;
	letter-spacing: -0.01em;
}

.nw-result-label {
	font-family: var(--nw-font-head);
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--nw-text);
	margin-bottom: 0.4rem;
	letter-spacing: 0.01em;
}

.nw-result-desc {
	font-size: 0.9rem;
	color: var(--nw-muted-soft);
	line-height: 1.6;
}

.nw-results-note {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--nw-font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	color: var(--nw-muted);
	padding-top: 1rem;
	border-top: 0.5px solid var(--nw-border);
}
.nw-results-note-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nw-accent);
	animation: nw-pulse 2s ease-in-out infinite;
}

/* ============ WHAT WE DO INTRO PROSE ============ */
.nw-whatwedo-intro {
	max-width: 720px;
	margin: -0.5rem 0 2.5rem;
}
.nw-whatwedo-intro p {
	color: var(--nw-muted);
	font-size: 1.05rem;
	line-height: 1.8;
	margin: 0 0 1.1rem;
}
.nw-whatwedo-intro p:last-child { margin-bottom: 0; }
.nw-whatwedo-intro em {
	color: var(--nw-accent-bright);
	font-style: italic;
	font-weight: 500;
}
.nw-whatwedo-intro strong {
	color: var(--nw-text);
	font-weight: 700;
}
.nw-whatwedo-pitch {
	font-family: var(--nw-font-head);
	color: var(--nw-text) !important;
	font-size: 1rem !important;
	font-weight: 500;
	letter-spacing: 0.01em;
	padding-left: 1rem;
	border-left: 2px solid var(--nw-accent);
	margin-top: 1.5rem !important;
}

/* ============ VIDEO SHOWCASE ============ */
.nw-showcase { position: relative; }
.nw-showcase-intro {
	color: var(--nw-muted);
	max-width: 620px;
	margin: -1.25rem 0 2.5rem;
	font-size: 1.05rem;
	line-height: 1.75;
}

.nw-showcase-wrap {
	max-width: 960px;
	margin: 0 auto;
}

.nw-video-player {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: var(--nw-surface);
	border: 0.5px solid var(--nw-border-bright);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.nw-video-player:hover,
.nw-video-player:focus-visible {
	transform: translateY(-2px);
	border-color: var(--nw-accent);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(79, 168, 245, 0.15);
	outline: none;
}

.nw-video-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease, filter 0.3s ease;
}
.nw-video-player:hover .nw-video-thumb {
	transform: scale(1.025);
	filter: brightness(0.92);
}

/* Subtle dark gradient over the bottom of the thumb so the overlay tag stays readable */
.nw-video-player::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(2, 5, 9, 0.4) 100%);
	pointer-events: none;
}

.nw-video-play-btn {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	z-index: 2;
	transition: transform 0.3s ease, filter 0.3s ease;
	filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}
.nw-video-player:hover .nw-video-play-btn {
	transform: translate(-50%, -50%) scale(1.08);
}
.nw-video-play-btn svg {
	width: clamp(56px, 8vw, 84px);
	height: auto;
	display: block;
}

.nw-video-overlay-tag {
	position: absolute;
	bottom: 14px;
	left: 14px;
	font-family: var(--nw-font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.15em;
	color: var(--nw-accent-bright);
	background: rgba(2, 5, 9, 0.7);
	border: 0.5px solid var(--nw-border-bright);
	padding: 4px 10px;
	border-radius: 3px;
	z-index: 3;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* When the iframe replaces the thumb, hide thumb-side elements */
.nw-video-player.is-playing .nw-video-thumb,
.nw-video-player.is-playing .nw-video-play-btn,
.nw-video-player.is-playing .nw-video-overlay-tag,
.nw-video-player.is-playing::after {
	display: none;
}
.nw-video-player.is-playing { cursor: default; }
.nw-video-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Caption below the video */
.nw-showcase-caption {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-top: 1.25rem;
	padding: 0 0.25rem;
	flex-wrap: wrap;
}
.nw-showcase-caption-tag {
	font-family: var(--nw-font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.16em;
	color: var(--nw-accent);
	text-transform: uppercase;
	background: rgba(79, 168, 245, 0.08);
	border: 0.5px solid var(--nw-border-bright);
	padding: 4px 9px;
	border-radius: 2px;
}
.nw-showcase-caption-text {
	font-size: 0.92rem;
	color: var(--nw-muted);
}

/* ============ DEPOSIT MODAL ============ */
.nw-deposit-note {
	font-family: var(--nw-font-mono);
	font-size: 0.72rem;
	color: var(--nw-muted);
	letter-spacing: 0.06em;
	max-width: 560px;
	margin: 1.25rem auto 0;
	text-align: center;
	line-height: 1.6;
}

.nw-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(2, 5, 9, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 1000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 2rem 1rem;
}
.nw-modal-overlay.is-open {
	display: flex;
	animation: nw-fade-in 0.25s ease;
}
@keyframes nw-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.nw-modal {
	background: var(--nw-surface);
	border: 0.5px solid var(--nw-border-bright);
	border-radius: 8px;
	padding: 2rem 1.75rem;
	width: 100%;
	max-width: 580px;
	position: relative;
	color: var(--nw-text);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	margin: auto;
	animation: nw-slide-up 0.3s ease;
}
@keyframes nw-slide-up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.nw-modal-close {
	position: absolute;
	top: 0.85rem;
	right: 1rem;
	background: transparent;
	border: none;
	color: var(--nw-muted);
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	transition: color 0.2s;
}
.nw-modal-close:hover { color: var(--nw-accent-bright); }

.nw-modal h2 {
	font-family: var(--nw-font-head);
	font-size: 1.4rem;
	font-weight: 800;
	margin: 0.5rem 0 0.75rem;
	color: var(--nw-text);
	line-height: 1.2;
}
.nw-modal h2 span { color: var(--nw-accent-bright); }

.nw-modal-lead {
	color: var(--nw-muted);
	font-size: 0.9rem;
	line-height: 1.65;
	margin: 0 0 1.5rem;
}
.nw-modal-lead strong { color: var(--nw-accent-bright); font-weight: 700; }

/* ============ FORM STYLES (scoped to modal) ============ */
.nw-modal .nw-form-row { margin-bottom: 1rem; }
.nw-modal .nw-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.nw-modal label {
	display: block;
	font-family: var(--nw-font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	color: var(--nw-accent);
	text-transform: uppercase;
	margin-bottom: 0.4rem;
}
.nw-modal .nw-req { color: #ef4444; margin-left: 2px; }
.nw-modal .nw-opt { color: var(--nw-muted); font-size: 0.65rem; text-transform: none; letter-spacing: 0.05em; }

.nw-modal input[type="text"],
.nw-modal input[type="email"],
.nw-modal input[type="tel"],
.nw-modal select,
.nw-modal textarea {
	width: 100%;
	background: var(--nw-bg);
	border: 0.5px solid var(--nw-border-bright);
	color: var(--nw-text);
	font-family: var(--nw-font-body);
	font-size: 0.92rem;
	padding: 0.7rem 0.85rem;
	border-radius: 4px;
	outline: none;
	transition: border-color 0.2s, background 0.2s;
}
.nw-modal input:focus,
.nw-modal select:focus,
.nw-modal textarea:focus {
	border-color: var(--nw-accent);
	background: rgba(79, 168, 245, 0.04);
}
.nw-modal input::placeholder,
.nw-modal textarea::placeholder { color: rgba(180, 210, 245, 0.35); }
.nw-modal textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.nw-modal select { cursor: pointer; appearance: none; -webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--nw-accent) 50%),
		linear-gradient(135deg, var(--nw-accent) 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 2.2rem;
}

/* Checkbox row for the agreement */
.nw-modal .nw-form-agree label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-family: var(--nw-font-body);
	font-size: 0.78rem;
	letter-spacing: 0;
	color: var(--nw-muted);
	text-transform: none;
	cursor: pointer;
	line-height: 1.55;
}
.nw-modal .nw-form-agree input[type="checkbox"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	accent-color: var(--nw-accent);
	margin-top: 2px;
}
.nw-modal .nw-form-agree span { display: inline-block; }

.nw-form-error {
	background: rgba(239, 68, 68, 0.08);
	border: 0.5px solid rgba(239, 68, 68, 0.3);
	color: #fca5a5;
	padding: 0.7rem 0.9rem;
	border-radius: 4px;
	font-size: 0.82rem;
	margin-bottom: 1rem;
	display: none;
}

.nw-modal .nw-btn-primary {
	width: 100%;
	padding: 0.85rem 1.5rem;
	font-size: 0.85rem;
	margin-top: 0.5rem;
}

#nw-paypal-button-container {
	min-height: 50px;
	margin-top: 1rem;
}

/* Modal mobile tightening */
@media (max-width: 480px) {
	.nw-modal { padding: 1.5rem 1.25rem; border-radius: 6px; }
	.nw-modal h2 { font-size: 1.2rem; }
	.nw-modal .nw-form-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ============ SECTION LINKS ROW (after What We Do) ============ */
.nw-section-links {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1.75rem;
}

/* ============ WHY US ============ */
.nw-whyus { position: relative; }
.nw-whyus-intro {
	color: var(--nw-muted);
	max-width: 580px;
	margin: -1.25rem 0 2.5rem;
	font-size: 1.05rem;
	line-height: 1.75;
}

.nw-whyus-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1px;
	background: var(--nw-border-bright);
	border: 0.5px solid var(--nw-border-bright);
	border-radius: 6px;
	overflow: hidden;
}

.nw-whyus-card {
	background: var(--nw-bg);
	padding: 1.7rem 1.5rem;
	position: relative;
	overflow: hidden;
	transition: background 0.3s;
}
.nw-whyus-card:hover { background: var(--nw-surface); }
.nw-whyus-card::after {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--nw-accent-bright), transparent);
	opacity: 0; transition: opacity 0.3s;
}
.nw-whyus-card:hover::after { opacity: 0.7; }

.nw-whyus-corner {
	position: absolute; top: 10px; right: 10px;
	width: 10px; height: 10px;
	border-top: 1px solid var(--nw-accent);
	border-right: 1px solid var(--nw-accent);
	opacity: 0.4;
}
.nw-whyus-corner-bl {
	position: absolute; bottom: 10px; left: 10px;
	width: 10px; height: 10px;
	border-bottom: 1px solid var(--nw-accent);
	border-left: 1px solid var(--nw-accent);
	opacity: 0.4;
}

.nw-whyus-tag {
	display: inline-block;
	font-family: var(--nw-font-mono);
	font-size: 0.58rem;
	color: var(--nw-accent);
	background: rgba(79,168,245,0.08);
	border: 0.5px solid var(--nw-border-bright);
	padding: 2px 7px;
	border-radius: 2px;
	letter-spacing: 0.1em;
	margin-bottom: 0.85rem;
}

.nw-whyus-card h3 {
	font-family: var(--nw-font-head);
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.6rem;
	color: var(--nw-text);
	line-height: 1.3;
}

.nw-whyus-card p {
	font-size: 0.95rem;
	color: var(--nw-muted-soft);
	line-height: 1.7;
	margin: 0;
}

/* ============ CONTENT WRAP ============ */
.nw-content-wrap { max-width: 820px; margin: 0 auto; padding: 4rem 2rem; position: relative; }
.nw-content-wrap h1, .nw-content-wrap h2, .nw-content-wrap h3, .nw-content-wrap h4 { font-family: var(--nw-font-head); color: var(--nw-text); margin-top: 2rem; margin-bottom: 0.75rem; }
.nw-content-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.nw-content-wrap h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.nw-content-wrap p, .nw-content-wrap li { color: var(--nw-muted); line-height: 1.75; }
.nw-content-wrap a { color: var(--nw-accent-bright); text-decoration: underline; text-decoration-color: rgba(107,190,255,0.4); }
.nw-content-wrap a:hover { text-decoration-color: var(--nw-accent-bright); }
.nw-content-wrap img { max-width: 100%; height: auto; border-radius: 4px; }
.nw-content-wrap blockquote { border-left: 2px solid var(--nw-accent); padding-left: 1rem; margin: 1.5rem 0; color: var(--nw-text); font-style: italic; }
.nw-content-wrap code { font-family: var(--nw-font-mono); background: var(--nw-surface); padding: 2px 6px; border-radius: 3px; font-size: 0.88em; color: var(--nw-accent-bright); }
.nw-content-wrap pre { background: var(--nw-surface); border: 0.5px solid var(--nw-border-bright); border-radius: 4px; padding: 1rem; overflow-x: auto; }
.nw-content-wrap pre code { background: transparent; padding: 0; }
.nw-page-title { font-family: var(--nw-font-head); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.05; margin: 0 0 1.5rem; color: var(--nw-text); }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  /* Nav: logo + CTA on top row, tabs wrap to a clean second row below */
  .nw-nav {
    padding: 0.85rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.85rem;
    row-gap: 0;
  }
  .nw-nav ul {
    order: 3;
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding-top: 0.85rem;
    margin-top: 0.4rem;
    border-top: 0.5px solid var(--nw-border-bright);
  }
  .nw-nav ul li { flex: 1; text-align: center; }
  .nw-nav ul a {
    font-size: 0.82rem;
    color: var(--nw-text);
    padding: 0.5rem 0.15rem;
    display: block;
    line-height: 1.4;
    white-space: nowrap;
  }

  .nw-hero { padding: 2.5rem 1.25rem; }
  .nw-section, .nw-cta-section { padding: 3rem 1.25rem; }
  .nw-domain-strip { padding: 2.5rem 1.25rem; }
  .nw-pricing-section { padding: 3rem 1rem; }
  .nw-footer { padding: 1.25rem; flex-direction: column; align-items: flex-start; }
  .nw-content-wrap { padding: 2.5rem 1.25rem; }

  /* Stack hero buttons full-width for easy tapping */
  .nw-hero-btns { flex-direction: column; align-items: stretch; }
  .nw-hero-btns .nw-btn-primary,
  .nw-hero-btns .nw-btn-ghost { text-align: center; }

  /* Section link row stacks */
  .nw-section-links { flex-direction: column; align-items: stretch; }
  .nw-section-links .nw-btn-ghost { text-align: center; }

  /* Status bar wraps cleanly instead of cramming */
  .nw-status-bar { flex-wrap: wrap; gap: 0.75rem 1.25rem; }

  /* Portfolio: clean compact logo tile on phones — logos fill the tile so they're readable */
  .nw-portfolio-logo-wrap {
    aspect-ratio: auto;
    height: 170px;
    padding: 0.4rem 0.5rem;
  }
  .nw-portfolio-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
  }
  .nw-logo-framed img {
    max-width: 100%;
    max-height: 100%;
  }
}

/* Smaller phones */
@media (max-width: 480px) {
  .nw-nav { padding: 0.75rem 1rem; }
  .nw-nav ul { gap: 0.3rem 1rem; }
  .nw-nav ul a { font-size: 0.82rem; }
  .nw-nav-cta { padding: 0.5rem 0.95rem; font-size: 0.76rem; }
  .nw-logo { font-size: 1rem; }

  /* Domain checker: stack input above button so neither gets crushed */
  .nw-domain-search { flex-direction: column; max-width: 100%; }
  .nw-domain-search input { width: 100%; }
  .nw-domain-search button { width: 100%; padding: 0.7rem 1rem; border-top: 0.5px solid var(--nw-border-bright); }

  /* Bigger tap targets on small screens */
  .nw-add-btn { padding: 0.8rem 1rem; }

  /* Tighter logo tile on small phones */
  .nw-portfolio-logo-wrap {
    height: 150px;
    padding: 0.35rem 0.45rem;
  }
  .nw-portfolio-logo-wrap img {
    max-width: 100%;
  }
}

/* Tiny phones (e.g. iPhone SE 320px) — keep all tabs visible */
@media (max-width: 380px) {
  .nw-nav ul a { font-size: 0.7rem; padding: 0.5rem 0.05rem; letter-spacing: 0.05em; }
  .nw-nav { padding: 0.7rem 0.85rem; }
  .nw-logo { font-size: 0.95rem; }
}
