/* ==========================================================================
   WanLainjo Technologies USA — "Living Circuit"
   ========================================================================== */

.theme-usa {
  --tech: #4cc9f0;
  --tech-2: #7dd3fc;
  --tech-rgb: 76, 201, 240;
}

/* ---------- Utility bar ---------- */
.utility {
  position: relative;
  z-index: 101;
  font-size: 12.5px;
  color: var(--text-2);
  background: #03060c;
  border-bottom: 1px solid var(--line);
}
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.utility-left, .utility-right { display: flex; align-items: center; gap: 16px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #bbf7d0; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
.mission-pill { display: none; padding: 3px 10px; border-radius: 999px; background: rgba(var(--accent-rgb), 0.1); color: var(--gold-2); font-weight: 600; }
.utility-right a { font-weight: 600; transition: color 0.2s; }
.utility-right a:hover { color: var(--tech-2); }
.utility-right a:last-child { display: none; }

.theme-usa .nav { top: 38px; }
.theme-usa .nav.scrolled { top: 0; }
.theme-usa .brand-word { font-size: 22px; }
.desk-only { display: none !important; }

/* ---------- Hero ---------- */
.u-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(100svh, 1000px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 44px) 0 56px;
  background:
    radial-gradient(90% 70% at 70% 40%, rgba(var(--tech-rgb), 0.14), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(var(--accent-rgb), 0.08), transparent 60%),
    linear-gradient(180deg, #050a14 0%, #060b16 60%, var(--bg) 100%);
}
.u-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.u-grid {
  position: absolute;
  inset: -20% -10% 0;
  background-image:
    linear-gradient(rgba(var(--tech-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--tech-rgb), 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(900px) rotateX(58deg) translateY(28%);
  transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 70%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 70%, #000 20%, transparent 75%);
  animation: grid-flow 14s linear infinite;
}
@keyframes grid-flow { to { background-position: 0 56px, 0 0; } }
.u-glow {
  position: absolute;
  left: 50%; top: 56%;
  width: 70vmax; height: 40vmax;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--tech-rgb), 0.22), rgba(90, 80, 220, 0.08) 60%, transparent);
}
.u-circuit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; -webkit-mask-image: radial-gradient(60% 60% at 50% 60%, #000 30%, transparent 85%); mask-image: radial-gradient(60% 60% at 50% 60%, #000 30%, transparent 85%); }
@media (prefers-reduced-motion: reduce) { .u-circuit .pulses { display: none; } }
.u-circuit .nodes circle { filter: drop-shadow(0 0 6px rgba(var(--tech-rgb), 0.9)); opacity: 0.8; }
.u-circuit .p { stroke-dasharray: 70 1400; stroke-dashoffset: 0; animation: travel 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
.p1 { animation-delay: 0.2s !important; } .p2 { animation-delay: 0.9s !important; } .p3 { animation-delay: 1.7s !important; }
.p4 { animation-delay: 2.4s !important; } .p5 { animation-delay: 0.5s !important; animation-duration: 3.6s !important; }
.p6 { animation-delay: 1.3s !important; animation-duration: 3.6s !important; } .p7 { animation-delay: 2s !important; animation-duration: 3.6s !important; }
.p8 { animation-delay: 2.9s !important; animation-duration: 3.6s !important; } .p9 { animation-delay: 3.3s !important; } .p10 { animation-delay: 3.9s !important; }
@keyframes travel { from { stroke-dashoffset: 70; } to { stroke-dashoffset: -1000; } }

/* The laptop: placed right on desktop, centered behind content on mobile */
.u-device {
  position: absolute;
  left: 50%;
  top: 64%;
  width: min(92vw, 560px);
  transform: translate(-50%, -50%);
  opacity: 0.14;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(var(--tech-rgb), 0.25));
}
.u-device svg { width: 100%; height: auto; }
.u-device .scan { animation: scan 3.8s cubic-bezier(0.6, 0, 0.4, 1) infinite; }
@keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(320px); } }
.u-device .progress { transform-origin: 96px 0; animation: prog 4.2s var(--ease) infinite; }
@keyframes prog { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.u-device .bar { transform-origin: 262px 0; animation: grow 2.6s var(--ease) both; }
.u-device .b2 { animation-delay: 0.2s; } .u-device .b3 { animation-delay: 0.4s; }
@keyframes grow { from { transform: scaleX(0); } }
.u-device .chart { stroke-dasharray: 220; stroke-dashoffset: 220; animation: chart 2.4s var(--ease) 0.6s forwards; }
@keyframes chart { to { stroke-dashoffset: 0; } }

.u-hero-inner { position: relative; display: grid; gap: 40px; }
.hero-content { max-width: 760px; }
.u-hero .eyebrow { color: var(--tech-2); --d: 0.55s; }
.u-hero .eyebrow::before { background: linear-gradient(90deg, transparent, var(--tech-2)); }
.u-h1 { font-size: clamp(2.4rem, 7.4vw, 4.5rem); line-height: 1.04; }
.u-h1 .line-mask:nth-child(1) > span { --d: 0.6s; }
.u-h1 .line-mask:nth-child(2) > span { --d: 0.75s; }
.u-h1 .line-mask:nth-child(3) > span { --d: 0.9s; }
.u-grad {
  font-style: italic;
  background: linear-gradient(100deg, #7dd3fc 0%, #e0f2fe 30%, #ffd27a 60%, #f4a623 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}
.hero-copy { margin-top: 26px; max-width: 58ch; --d: 1.1s; }
.hero-actions { margin-top: 36px; --d: 1.25s; }

.proofbar {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.proof {
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(var(--tech-rgb), 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.proof:nth-child(1) { --d: 1.4s; } .proof:nth-child(2) { --d: 1.5s; } .proof:nth-child(3) { --d: 1.6s; } .proof:nth-child(4) { --d: 1.7s; }
.proof dd { margin: 0; }
.proof strong { display: block; font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.05; color: #fff; }
.proof span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-3); line-height: 1.35; }

/* Letterbox intro (shared language with home) */
.letterbox { position: absolute; left: 0; right: 0; height: 0; z-index: 4; background: #000; pointer-events: none; }
.lb-top { top: 0; }
.lb-bottom { bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .letterbox { animation: lb-open 1.4s cubic-bezier(0.77, 0, 0.18, 1) 0.1s backwards; }
  @keyframes lb-open { 0% { height: 50%; } 55% { height: 8%; } 100% { height: 0; } }
  .js .u-scene { animation: dolly 3s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes dolly { from { transform: scale(1.15); filter: brightness(0.35); } to { transform: none; filter: none; } }
  .js .u-h1 .line-mask > span { animation: line-up 1.2s var(--ease) forwards, focus-pull 1.5s var(--ease) forwards; animation-delay: var(--d, 0s), var(--d, 0s); }
  @keyframes focus-pull { from { filter: blur(12px); } to { filter: blur(0); } }
  .js .u-grad { animation: line-up 1.2s var(--ease) forwards, focus-pull 1.5s var(--ease) forwards, sheen 8s linear 2.4s infinite; animation-delay: var(--d, 0s), var(--d, 0s), 2.4s; }
  @keyframes sheen { to { background-position: -200% 0; } }
}

/* ---------- Section heads (split layout) ---------- */
.split-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.split-head .h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.08; }
.section-soft {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(var(--tech-rgb), 0.07), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008));
  border-block: 1px solid var(--line);
}

/* ---------- Services ---------- */
.service-card { display: flex; flex-direction: column; }
.service-card .link-arrow { margin-top: auto; padding-top: 24px; }
.theme-usa .icon-tile {
  background: linear-gradient(135deg, rgba(var(--tech-rgb), 0.18), rgba(var(--accent-rgb), 0.12));
  border-color: rgba(var(--tech-rgb), 0.3);
  color: var(--tech-2);
}
.sales-card {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(var(--accent-rgb), 0.28);
}
.sales-card .icon-tile { background: var(--grad); color: #160d02; border: 0; }
.availability-note {
  margin-top: 24px;
  display: grid;
  gap: 18px;
  align-items: center;
  padding: clamp(22px, 3.5vw, 34px);
  border-radius: 26px;
  border: 1px dashed rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.06);
}
.availability-note strong { display: block; font-size: 1.08rem; color: var(--gold-2); }
.availability-note span { display: block; margin-top: 6px; color: var(--text-2); }

/* ---------- Process ---------- */
.operating-model { display: grid; gap: 22px; }
.model-panel {
  display: grid;
  gap: 32px;
  padding: clamp(26px, 4.5vw, 52px);
  border-radius: 32px;
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(var(--tech-rgb), 0.16), transparent 60%),
    linear-gradient(140deg, #0c1a33, #0a1020);
  border: 1px solid rgba(var(--tech-rgb), 0.2);
  box-shadow: var(--shadow);
}
.model-panel .h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); line-height: 1.1; }
.model-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.model-meta > div { padding: 20px; border-radius: 20px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.model-meta dd { margin: 0; }
.model-meta strong { display: block; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1; color: var(--tech-2); }
.model-meta span { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); }
.steps { display: grid; gap: 14px; counter-reset: x; }
.step {
  position: relative;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.step:hover { border-color: rgba(var(--tech-rgb), 0.4); translate: 0 -4px; }
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #04121c;
  background: linear-gradient(135deg, #7dd3fc, #4cc9f0);
  box-shadow: 0 10px 24px -10px rgba(var(--tech-rgb), 0.9);
  margin-bottom: 16px;
}
.step h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---------- Training ---------- */
.training { display: grid; gap: 18px; align-items: start; }
.training-card {
  padding: clamp(26px, 4vw, 40px);
  border-radius: 30px;
  color: #160d02;
  background: linear-gradient(150deg, #ffe2a6 0%, #f4a623 48%, #e4572e 100%);
  box-shadow: 0 30px 80px -30px rgba(244, 120, 40, 0.6);
}
.training-card h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.12; }
.training-card p { color: rgba(22, 13, 2, 0.78); }
.training-card .price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 22px; }
.training-card .price strong { font-family: var(--display); font-size: clamp(3rem, 7vw, 4.2rem); line-height: 1; }
.training-card .price span { font-weight: 700; opacity: 0.75; }
.btn-dark { color: #fff; background: #0a1020; }
.btn-dark:hover { translate: 0 -2px; background: #000; }
.programs { display: grid; grid-template-columns: 1fr; gap: 10px; }
.program {
  position: relative;
  padding: 20px 20px 20px 70px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.program:hover { border-color: rgba(var(--tech-rgb), 0.4); background: rgba(var(--tech-rgb), 0.05); translate: 0 -3px; }
.program small {
  position: absolute;
  left: 18px; top: 20px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--tech-rgb), 0.7);
}
.program h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.program p { font-size: 14px; color: var(--text-3); }

/* ---------- Impact ---------- */
.impact-k { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tech-2); margin-bottom: 10px; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; gap: 16px; }
.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--text); }
.quote.featured {
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(var(--tech-rgb), 0.18), transparent 60%),
    linear-gradient(150deg, #0e1f3d, #0a1222);
  border-color: rgba(var(--tech-rgb), 0.25);
}
.quote.featured blockquote { font-family: var(--display); font-size: clamp(1.3rem, 2.8vw, 1.85rem); line-height: 1.4; font-weight: 600; }
.quote-footer { font-size: 13.5px; font-weight: 650; color: var(--tech-2); }
.quote-stack { display: grid; gap: 16px; }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(30px, 5vw, 64px);
  border-radius: 36px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(var(--accent-rgb), 0.22), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(var(--tech-rgb), 0.2), transparent 60%),
    linear-gradient(135deg, #0d1c38, #080f1e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}
.cta-band .h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.1; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 22px; align-items: start; }
.form-card {
  border-radius: 32px;
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(100% 60% at 100% 0%, rgba(var(--tech-rgb), 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}
.contact-side { display: grid; gap: 12px; }
.info {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.info:hover { border-color: rgba(var(--tech-rgb), 0.35); }
.info small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tech-2); margin-bottom: 6px; }
.info strong { display: block; font-size: 1.05rem; font-weight: 650; }
.info span { display: block; margin-top: 4px; font-size: 14px; color: var(--text-3); line-height: 1.5; }
.info a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(var(--tech-rgb), 0.5); text-underline-offset: 4px; }
.info a:hover { color: var(--tech-2); }

/* ---------- Footer ---------- */
.footer-about { max-width: 42ch; }
.u-footer-grid { grid-template-columns: 1fr 1fr; }
.u-footer-grid > div:first-child { grid-column: 1 / -1; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .proofbar { grid-template-columns: repeat(4, 1fr); }
  .mission-pill { display: inline-block; }
  .utility-right a:last-child { display: inline; }
  .programs { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .quote-stack { grid-template-columns: 1fr 1fr; }
  .u-footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .split-head { grid-template-columns: 1.25fr 1fr; align-items: end; gap: 56px; }
  .availability-note { grid-template-columns: 1fr auto; }
  .model-panel { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .training { grid-template-columns: 0.8fr 1.6fr; }
  .training-card { position: sticky; top: calc(var(--nav-h) + 24px); }
  .programs { grid-template-columns: repeat(3, 1fr); }
  .program { padding: 64px 22px 22px; }
  .program small { top: 22px; left: 22px; font-size: 2rem; }
  .testimonials { grid-template-columns: 1.2fr 1fr; }
  .quote-stack { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1.4fr auto; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; }
  .contact-side { position: sticky; top: calc(var(--nav-h) + 24px); }
  .u-device { left: auto; right: -2vw; top: 46%; transform: translateY(-50%); width: min(46vw, 640px); opacity: 1; }
  .hero-content { max-width: 58%; }
  .u-h1 { font-size: clamp(2.6rem, 4.3vw, 4.25rem); }
  .u-circuit { transform: translateX(30%); -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 55%); mask-image: linear-gradient(90deg, transparent 28%, #000 55%); }
  .u-glow { left: 74%; top: 46%; }
  .u-hero-inner { gap: 52px; }
}
@media (min-width: 1024px) {
  .desk-only { display: inline-flex !important; }
  .u-footer-grid { grid-template-columns: 1.6fr repeat(5, 1fr); }
  .u-footer-grid > div:first-child { grid-column: auto; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .theme-usa .nav-links a { padding: 10px 10px; }
  .theme-usa .brand-tag { display: none; }
}
