/* Nox Forge Labs — design tokens + site styles */

:root {
  --bg: #FDFCFA;
  --bg-soft: #F7F5F2;
  --ink: #0A0A0A;
  --ink-soft: #4B4B4E;
  --ink-faint: #8A8A8E;
  --border: #E7E4DF;
  --border-strong: #D8D4CD;
  --panel-dark: #0A0A0A;
  --panel-dark-ink: #F5F4F2;
  --panel-dark-ink-soft: #A8A7A4;

  --grad-purple: #8B5CF6;
  --grad-pink: #EC4899;
  --grad-orange: #F59E0B;
  --grad-blue: #3B82F6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 8px 30px rgba(10, 10, 10, 0.06);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--grad-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #262626; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 118px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 90px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease);
}
.main-nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 3px;
  font-size: 13px;
  font-weight: 600;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: var(--ink-faint);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle svg { display: block; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: 40px;
  align-items: center;
  min-height: 420px;
}
.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero-copy p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-gradient {
  position: absolute;
  inset: -10% -5% -10% 30%;
  z-index: 1;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.85;
}
.hero-gradient span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: drift 22s var(--ease) infinite alternate;
}
.hero-gradient span:nth-child(1) {
  width: 46%; height: 60%; top: 4%; right: 6%;
  background: radial-gradient(circle, var(--grad-purple), transparent 70%);
  animation-delay: 0s;
}
.hero-gradient span:nth-child(2) {
  width: 40%; height: 50%; top: 30%; right: 26%;
  background: radial-gradient(circle, var(--grad-pink), transparent 70%);
  animation-delay: -6s;
}
.hero-gradient span:nth-child(3) {
  width: 42%; height: 46%; bottom: 6%; right: 10%;
  background: radial-gradient(circle, var(--grad-orange), transparent 70%);
  animation-delay: -12s;
}
.hero-gradient span:nth-child(4) {
  width: 36%; height: 44%; top: 8%; right: 40%;
  background: radial-gradient(circle, var(--grad-blue), transparent 70%);
  animation-delay: -18s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 3%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gradient span { animation: none; }
}

/* Services */
.services { padding: 64px 0; border-top: 1px solid var(--border); }
.section-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 30px 26px;
}
.service-card .icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.service-card .icon svg { width: 20px; height: 20px; stroke: var(--ink); }
.service-card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* Positioning (dark panel) */
.positioning {
  background: var(--panel-dark);
  color: var(--panel-dark-ink);
  padding: 84px 0;
  margin: 64px 0;
}
.positioning-head { max-width: 640px; margin-bottom: 52px; }
.positioning-head .section-eyebrow { color: #7A7A80; }
.positioning-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.positioning-head p { font-size: 16.5px; color: var(--panel-dark-ink-soft); margin: 0; }
.positioning-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.positioning-item { border-top: 1px solid #2A2A2C; padding-top: 20px; }
.positioning-item h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.positioning-item p { font-size: 14px; color: var(--panel-dark-ink-soft); margin: 0; line-height: 1.55; }

/* Process */
.process { padding: 64px 0; }
.process-head { max-width: 560px; margin-bottom: 48px; }
.process-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin: 10px 0 0; letter-spacing: -0.01em; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-step { padding: 0 20px 0 0; position: relative; }
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px; right: -2px; left: 60px;
  border-top: 1px dashed var(--border-strong);
}
.process-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--ink-faint);
  margin-bottom: 18px;
  background: var(--bg);
  position: relative; z-index: 1;
}
.process-step h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 6px; }
.process-step p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Work */
.work { padding: 64px 0; border-top: 1px solid var(--border); }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.work-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin: 10px 0 8px; letter-spacing: -0.01em; }
.work-head p { color: var(--ink-soft); margin: 0; max-width: 480px; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.work-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.work-frame {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
  padding: 22px 24px;
}
.work-frame .browser-dots { display: flex; gap: 6px; margin-bottom: 20px; }
.work-frame .browser-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.work-frame .skeleton { display: grid; gap: 11px; }
.work-frame .bar { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--border-strong), var(--border)); }
.work-frame .bar:first-child { background: linear-gradient(90deg, var(--grad-purple), var(--grad-blue)); opacity: 0.35; }
.work-body { padding: 22px 24px 26px; }
.work-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  margin-bottom: 12px;
}
.work-body h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.work-body p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* FAQ */
.faq { padding: 64px 0; border-top: 1px solid var(--border); }
.faq-head { max-width: 560px; margin-bottom: 40px; }
.faq-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin: 10px 0 0; letter-spacing: -0.01em; }
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-faint);
  flex: none;
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 620px;
}

/* CTA panel */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 24px var(--gutter) 80px;
  padding: 64px var(--gutter);
  text-align: center;
  isolation: isolate;
}
.cta-panel .cta-gradient {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.30), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.28), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.26), transparent 50%),
    radial-gradient(circle at 90% 85%, rgba(236, 72, 153, 0.26), transparent 45%),
    var(--bg-soft);
  filter: blur(2px);
}
.cta-panel h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.01em; }
.cta-panel p { color: var(--ink-soft); font-size: 16.5px; margin: 0 auto 30px; max-width: 520px; }

/* Contact */
.contact { padding: 20px 0 80px; }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 60px;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.contact-head h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; margin: 10px 0 14px; letter-spacing: -0.01em; }
.contact-head p { color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input,
.field select,
.field textarea {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; margin-top: 4px; min-height: 20px; }
.form-status.success { color: #1a7f37; }
.form-status.error { color: #c0392b; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 34px; background: var(--bg-soft); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 44px; }
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-soft); font-size: 14px; max-width: 260px; margin: 0; }
.footer-col h4 { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 24px; font-size: 13px; color: var(--ink-faint);
  flex-wrap: wrap; gap: 10px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 118px 0 0 0; z-index: 90;
  background: var(--bg);
  padding: 28px var(--gutter);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  font-size: 20px; font-weight: 600; text-decoration: none; color: var(--ink);
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.mobile-nav .header-actions { margin-top: 24px; flex-direction: column; align-items: stretch; gap: 16px; }
.mobile-nav .btn { width: 100%; }

/* Responsive */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .positioning-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .lang-switch { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }

  .hero { padding: 44px 0 40px; }
  .hero .container { grid-template-columns: 1fr; min-height: 0; }
  .hero-gradient { position: absolute; inset: 8% -20% auto -20%; height: 340px; opacity: 0.65; z-index: 0; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-copy p { max-width: none; }
}

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
  .positioning { padding: 56px 0; margin: 44px 0; }
  .positioning-grid { grid-template-columns: 1fr; gap: 24px; }

  .process-steps { grid-template-columns: 1fr; gap: 28px; }
  .process-step::after { display: none; }

  .cta-panel { margin: 16px var(--gutter) 56px; padding: 48px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
