/* =========================================================
   D0C STUDIO — Shared neon/cyberpunk styling
   ========================================================= */

:root {
  --void:        #040619;
  --bg:          #0A0E27;
  --bg-2:        #0E1438;
  --surface:     #12163A;
  --surface-2:   #1a2150;
  --line:        rgba(232, 236, 255, 0.10);
  --line-strong: rgba(232, 236, 255, 0.22);
  --text:        #E8ECFF;
  --muted:       #8A91B8;
  --dim:         #5d648c;

  --blue:    #00D9FF;
  --pink:    #FF49C0;
  --teal:    #00FFC6;
  --amber:   #FFB347;

  --shadow-blue: 0 0 0 1px rgba(0,217,255,.35), 0 0 28px rgba(0,217,255,.35);
  --shadow-pink: 0 0 0 1px rgba(255,73,192,.35), 0 0 28px rgba(255,73,192,.35);
  --shadow-teal: 0 0 0 1px rgba(0,255,198,.35), 0 0 32px rgba(0,255,198,.35);

  --display: "Russo One", "Bebas Neue", "Arial Black", sans-serif;
  --body: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* clip path used for "cut corner" cards (cyberpunk frame) */
  --cut-12: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  --cut-20: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Bitmap grid backdrop — drawn via CSS (no image) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,217,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,217,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  z-index: 0;
}

/* horizontal scanline overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

main, header, footer, section { position: relative; z-index: 2; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(4,6,25,0.65);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.topbar .brand {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px; height: 10px;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.topnav a { color: var(--muted); transition: color .18s; }
.topnav a:hover { color: var(--text); text-decoration: none; }
.topnav a:hover::before { content: ""; }

/* ---------- Lang switcher ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
  overflow: hidden;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--dim);
  padding: 6px 12px;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all .15s;
}
.lang-switch button + button { border-left: 1px solid var(--line-strong); }
.lang-switch button.active {
  color: var(--void);
  background: var(--blue);
  text-shadow: none;
}
.lang-switch button:not(.active):hover { color: var(--text); }

/* lang content visibility */
[data-lang]:not(.active) { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.16em;
  padding: 16px 24px;
  background: var(--blue);
  color: var(--void);
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  box-shadow: 0 0 32px rgba(0,217,255,.45);
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--blue), 0 0 24px rgba(0,217,255,.25); }
.btn--pink   { background: var(--pink); color: var(--void); box-shadow: 0 0 32px rgba(255,73,192,.45); }
.btn--teal   { background: var(--teal); color: var(--void); box-shadow: 0 0 32px rgba(0,255,198,.45); }

.btn .arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Section primitives ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

h1, h2, h3 { font-family: var(--display); letter-spacing: 0.02em; line-height: 1.05; font-weight: 400; }
h2 { font-size: clamp(36px, 5.2vw, 64px); margin: 14px 0 24px; }
h3 { font-size: 22px; letter-spacing: 0.06em; }

p.lead {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Cards w/ cut corner ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(18,22,58,0.92), rgba(10,14,39,0.92));
  border: 1px solid var(--line);
  padding: 28px;
  clip-path: var(--cut-12);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,217,255,0.08);
  color: var(--blue);
  margin-bottom: 18px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.card .icon.pink { background: rgba(255,73,192,0.08); color: var(--pink); }
.card .icon.teal { background: rgba(0,255,198,0.08); color: var(--teal); }
.card h3 { color: var(--text); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 56px 24px 36px;
  font-size: 14px;
  color: var(--muted);
  background: linear-gradient(180deg, transparent, rgba(0,217,255,0.02));
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--blue); }
.foot .cols {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
}
.foot h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
.foot ul { list-style: none; }
.foot ul li { margin: 6px 0; }
.foot .legal {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Selection ---------- */
::selection { background: var(--blue); color: var(--void); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .section { padding: 72px 0; }
  .topnav a:not(.lang-switch a) { display: none; }
  .topbar { padding: 12px 18px; }
  .foot .cols { grid-template-columns: 1fr; gap: 28px; }
  .foot .legal { flex-direction: column; gap: 10px; text-align: center; }
}
