/* GRU PenTesting — real design-system reuse.
   Structure/grid classes (.pill-badge, .stat-col, .split-feature-container,
   .glass-footer and children) copied from Clarix's real static CSS
   (clarix-design-system/assets/overview/assets/css/style.css), recolored for
   a dark page and with font-family swapped from Sarabun to Instrument Serif.
   Color tokens (--accent #0cb300, dark #262626, chip rgba(0,0,0,.82)), the
   pill radius (~999px) and the multi-layer "raised card" shadow are copied
   from Hanzo's real compiled CSS (hanzo-design-system/assets/catalog/framer-ssr.css) —
   Hanzo's own classes are Framer-runtime-hashed and not portable as literal
   selectors, so its real values were extracted into these variables instead. */

:root {
  --bg: #0c0c0c;
  --bg-alt: #161616;
  --panel: #1a1a1a;
  --border: rgba(255, 255, 255, 0.1);
  --text: #ededed;
  --text-dim: #a3a3a3;
  --accent: #0cb300; /* real Hanzo green token */
  --accent-ink: #06210a;
  --serif: "Instrument Serif", Georgia, serif; /* real Hanzo headline font */
  --sans: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; /* real Hanzo body font */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* real Hanzo --ds-mono token */
  --max: 1120px;
  --radius-pill: 999px; /* real Hanzo pill radius (~509px on their canvas, fully rounded) */
  --radius-card: 24px; /* real Hanzo card radius */
  --shadow-raised: .6px .6px .8px -.7px #00000080, 1.4px 1.4px 2px -1.4px #0000007a,
    2.9px 2.9px 4px -2.1px #00000075, 5.5px 5.5px 7.8px -2.8px #00000069,
    10.9px 10.9px 15.4px -3.5px #00000052, 24px 24px 34px -4.3px #00000017; /* real Hanzo raised-card shadow */
  --shadow-glass: 0 0 0 1px rgba(255, 255, 255, 0.08), 12px 16px 16px rgba(0, 0, 0, 0.35); /* real Hanzo glass ring, dark variant */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 em, h2 em { font-style: italic; color: var(--accent); }

h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { color: var(--text-dim); margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* real Clarix class, recolored for dark + Instrument Serif instead of Sarabun */
.pill-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  color: var(--accent);
  margin: 0 0 0.9em;
}

/* real Clarix class, headline switched to Instrument Serif */
.feature-title {
  font-family: var(--serif);
  font-weight: 400;
}

/* real Clarix class */
.feature-text {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-dim);
}

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* --- buttons: 3 real Hanzo variants (solid / outline / ghost), pill radius --- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #0e2; }
.btn--outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--outline:hover { background: rgba(12, 179, 0, 0.1); }
.btn--ghost { color: var(--text); background: transparent; border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* --- nav: pill links on a dark glass bar --- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(12, 12, 12, 0.86); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__brand { font-family: var(--serif); font-size: 1.2rem; color: var(--text); letter-spacing: 0.01em; }
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.nav__links a { color: var(--text-dim); padding: 0.5rem 0.9rem; border-radius: var(--radius-pill); font-size: 0.92rem; transition: background 0.2s, color 0.2s; }
.nav__links a:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.nav__cta { background: var(--accent); color: var(--accent-ink) !important; font-weight: 500; }
.nav__cta:hover { background: #0e2 !important; }
.lang-toggle { display: flex; gap: 2px; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius-pill); padding: 2px; font-family: var(--mono); font-size: 0.78rem; }
.lang-toggle button { border: 0; background: transparent; color: var(--text-dim); padding: 0.3rem 0.65rem; border-radius: var(--radius-pill); cursor: pointer; }
.lang-toggle button.is-active { background: var(--accent); color: var(--accent-ink); }

/* --- hero --- */
.hero { padding: 7rem 1.5rem 5rem; }
.hero__inner { max-width: var(--max); margin: 0 auto; }
.hero__title { font-size: clamp(2.4rem, 7vw, 4.6rem); margin-bottom: 0.6em; }
.reveal-line { display: block; }
.hero__sub { font-size: 1.15rem; max-width: 40rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* --- stats: real Clarix stat-col pattern, recolored dark --- */
.stats { padding: 2.5rem 1.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.stat-col { position: relative; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1 1 200px; }
.stat-col::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.25) 10%, rgba(255,255,255,0.25) 90%, rgba(255,255,255,0)); }
.stat-num { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; color: var(--text); }
.stat-desc { font-size: 0.85rem; line-height: 1.5; color: var(--text-dim); }

/* --- split sections --- */
.split { padding: 5rem 1.5rem; }
.split__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.split--reverse .split__inner { grid-template-columns: 0.9fr 1.1fr; }
.split--reverse .split__visual { order: -1; }
.split__text h2 { max-width: 28rem; }
.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.checklist li { position: relative; padding-left: 1.6rem; color: var(--text-dim); font-size: 0.98rem; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0.4em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); }

/* glass card, real Hanzo ring shadow */
.split__visual {
  min-height: 16rem;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, rgba(12, 179, 0, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border);
}

/* --- process steps: real Hanzo raised-card shadow --- */
.process { padding: 5rem 1.5rem; background: var(--bg-alt); }
.process__inner { max-width: var(--max); margin: 0 auto; }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.step { background: var(--panel); border-radius: var(--radius-card); box-shadow: var(--shadow-raised); padding: 1.75rem; }
.step__num { font-family: var(--mono); color: var(--accent); font-size: 0.85rem; letter-spacing: 0.08em; }
.step h3 { margin-top: 0.6em; }

/* --- partners --- */
.partners { padding: 5rem 1.5rem; text-align: center; }
.partners__inner { max-width: var(--max); margin: 0 auto; }
.partner-placeholder {
  margin-top: 2rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 3rem;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* --- contact --- */
.contact { padding: 5rem 1.5rem; }
.contact__inner { max-width: 40rem; margin: 0 auto; }
.contact__sub { font-size: 1.05rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; color: var(--text-dim); }
.field input, .field textarea {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field--checkbox { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.field--checkbox label { color: var(--text-dim); }
.field__error { color: #ff6b6b; font-size: 0.82rem; min-height: 1em; }
.form-note { font-size: 0.9rem; margin-top: 0.5rem; }

/* --- legal --- */
.legal { padding: 5rem 1.5rem; border-top: 1px solid var(--border); }
.legal__inner { max-width: 40rem; margin: 0 auto; }

/* --- footer: real Clarix glass-footer pattern, recolored dark --- */
.footer { padding: 3rem 1.5rem 3rem; }
.glass-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-left { display: flex; flex-direction: column; max-width: 24rem; }
.footer-brand { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-brand span { color: var(--accent); }
.footer-heading { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text-dim); }
.footer-input-group { display: flex; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius-pill); padding: 0.3rem; border: 1px solid var(--border); max-width: 22rem; }
.footer-input { flex: 1; background: transparent; border: none; outline: none; padding-left: 1rem; color: var(--text); font-family: var(--sans); font-size: 0.9rem; }
.footer-input::placeholder { color: var(--text-dim); }
.footer-submit { background: var(--accent); color: var(--accent-ink); border: none; border-radius: var(--radius-pill); padding: 0.6rem 1.4rem; font-family: var(--sans); font-weight: 500; cursor: pointer; transition: transform 0.2s; }
.footer-submit:hover { transform: scale(1.05); }
.footer-subtext { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.6rem; }
.footer-line { height: 1px; background: var(--border); margin: 2rem 0 1.2rem; }
.footer-bottom { text-align: center; font-size: 0.82rem; color: var(--text-dim); }

/* --- responsive --- */
@media (max-width: 860px) {
  .split__inner, .split--reverse .split__inner { grid-template-columns: 1fr; }
  .split--reverse .split__visual { order: 0; }
  .nav__links { display: none; }
  .footer-top { flex-direction: column; }
}
