@import url("../../resources/libs/fonts/fonts.css");

/* Shared chrome: tokens, reset, nav, language, footer, drawer */
:root {
  --black: #000000;
  --white: #ffffff;
  --lime: #d4ff00;
  --lime-dim: rgba(212, 255, 0, 0.14);
  --moss: #10180a;
  --gray: #e4e4e4;
  --gray-mid: #d4d4d4;
  --gray-dark: #222222;
  --line: #1a1a1a;
  --muted: #ececec;
  --panel: #0a0a0a;
  --panel-alt: #111111;
  --panel-line: #2e2e2e;
  --field: #141414;
  --field-line: #3d3d3d;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--black);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
}

::selection { background: var(--lime); color: #000; }

.on-lime ::selection,
.on-lime *::selection {
  background: #000;
  color: #fff;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap {
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,0) 100%);
}

.nav.scrolled {
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 2;
}

.logo-mark {
  width: 8px;
  height: 8px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.logo span { color: var(--gray); font-weight: 400; }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ededed;
  transition: color .25s;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.lang {
  position: relative;
}

.lang-btn {
  min-width: 118px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color .25s, color .25s;
}

.lang-btn:hover { border-color: var(--lime); color: var(--lime); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #000;
  border: 1px solid #2a2a2a;
  padding: 8px 0;
  display: none;
}

.lang.open .lang-menu { display: block; }

.lang-menu button {
  width: 100%;
  text-align: left;
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #e8e8e8;
}

.lang-menu button:hover,
.lang-menu button.active {
  color: var(--lime);
  background: var(--lime-dim);
}

.menu-toggle {
  display: none;
  min-height: 34px;
  padding: 0 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  color: var(--lime);
}

body.is-nav-open {
  overflow: hidden;
}

body.is-nav-open .nav {
  background: #000;
}

/* Shared buttons (used across pages) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #fff;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: .25s;
}

.btn:hover { border-color: var(--lime); color: var(--lime); }

.btn-solid {
  background: var(--lime);
  color: #000;
  border-color: var(--lime);
  font-weight: 600;
}

.btn-solid:hover { background: #e8ff4d; color: #000; }

.btn-lime {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: .25s;
}

.btn-lime:hover {
  background: var(--lime);
  color: #000;
}

.cta-actions .btn,
.cta-actions .btn-lime {
  height: 48px;
  padding: 0 20px;
  font-size: 12px;
  gap: 12px;
}

/* Shared tool workspace: input / output must have visible edges */
.workspace {
  border: 1px solid var(--panel-line);
  background: var(--panel);
}

.workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--panel-line);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  min-height: 420px;
}

.workspace-setup,
.workspace-output {
  min-width: 0;
  padding: 28px 24px;
}

.workspace-setup {
  border-right: 1px solid var(--panel-line);
}

.workspace-output {
  display: flex;
  flex-direction: column;
  background: var(--panel-alt);
}

.output-well {
  flex: 1;
  min-height: 220px;
  padding: 20px 18px;
  border: 1px solid var(--field-line);
  background: var(--field);
}

/* Alternating page surfaces: lime band + dark green band */
.on-lime {
  background: var(--lime);
  color: #111;
  --gray: #1a1a1a;
  --muted: #111;
  --line: rgba(0, 0, 0, 0.22);
}

.on-moss {
  background: var(--moss);
  color: var(--white);
}

.on-lime em,
.on-lime .cta-title .w,
.on-lime .cta-title .g,
.on-lime .cta-title .arrow {
  color: #111;
}

.on-lime .btn {
  border-color: #111;
  color: #111;
}

.on-lime .btn:hover {
  background: #111;
  color: var(--lime);
}

.on-lime .btn-lime {
  border-color: #111;
  color: #111;
}

.on-lime .btn-lime:hover {
  background: #111;
  color: var(--lime);
}

.on-lime .btn-solid {
  background: #111;
  color: var(--lime);
  border-color: #111;
}

.on-lime .btn-solid:hover {
  background: #000;
  color: var(--lime);
}

.on-lime .stat-value.live { color: #111; }

.on-lime .dot {
  background: #111;
  box-shadow: none;
}

/* ========== FOOTER ========== */
footer {
  padding: 56px var(--pad) 40px;
  background: var(--moss);
  border-top: 1px solid #1f2a12;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.foot-brand {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.foot-brand b { font-weight: 700; }
.foot-brand span { color: var(--gray); font-weight: 400; }

.foot-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
}

.foot-col h4 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.foot-col a {
  display: block;
  font-size: 14px;
  color: #eeeeee;
  margin-bottom: 10px;
}

.foot-col a:hover { color: var(--lime); }

.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-size: 12px;
}


/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: none;
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: #000;
    color: #fff;
    padding: 100px var(--pad) 40px;
  }
  .mobile-menu.is-open {
    display: flex;
    flex-direction: column;
  }
  .mobile-menu-kicker {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 28px;
  }
  .mobile-menu-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: auto;
  }
  .mobile-menu-list a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu-idx {
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--gray);
  }
  .mobile-menu-name {
    font-family: "Inter Tight", Inter, sans-serif;
    font-size: clamp(22px, 6vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
  }
  .mobile-menu-go {
    color: var(--lime);
    font-size: 18px;
  }
  .mobile-menu-list a:hover .mobile-menu-name,
  .mobile-menu-list a.is-active .mobile-menu-name,
  .mobile-menu-list a.is-active .mobile-menu-idx {
    color: var(--lime);
  }
  .mobile-menu-foot {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .mobile-menu-foot p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
  }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-setup {
    border-right: 0;
    border-bottom: 1px solid var(--panel-line);
  }
}

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bar { flex-direction: column; }
  .workspace-bar { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
