/* ============================================================
   cs/dev – shared stylesheet
   Palette:
     --purple  #6d0dfd  (brand accent)
     --purple2 #9b59f5  (lighter accent)
     --dark    #0d0d12  (page bg)
     --panel   #13131b  (card bg)
     --border  #22223a  (subtle border)
     --text    #e2e2f0  (body text)
     --muted   #8888aa  (secondary text)
     --green   #00e5a0  (ok / highlight)
============================================================ */

/* ── URBANIST – self-hosted ── */
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/urbanist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/urbanist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/urbanist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/urbanist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/urbanist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/urbanist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/urbanist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/urbanist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --purple:  #6d0dfd;
  --purple2: #9b59f5;
  --dark:    #0d0d12;
  --panel:   #13131b;
  --border:  #22223a;
  --text:    #e2e2f0;
  --muted:   #8888aa;
  --green:   #00e5a0;
  --radius:  12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Urbanist', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,13,18,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar-brand img { height: 28px; width: auto; }

.brand-text { color: var(--text); }
.brand-slash { color: var(--purple); }

.navbar-lang a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.navbar-lang a:hover {
  border-color: var(--purple2);
  color: var(--purple2);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.18) saturate(1.4);
  z-index: 0;
}

/* purple glow orb */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 60% 45%, rgba(109,13,253,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 20% 70%, rgba(0,229,160,0.07) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 4px 14px;
  background: rgba(109,13,253,0.15);
  border: 1px solid rgba(109,13,253,0.35);
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: var(--purple2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-stack {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-stack-item {
  padding: 5px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.hero-stack-item:hover {
  border-color: var(--purple2);
  color: var(--purple2);
  background: rgba(109,13,253,0.1);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.hero-logo {
  height: 54px;
  width: auto;
  margin: 0 auto 2rem;
  opacity: 0.9;
  filter: brightness(1.1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 2.2rem;
  background: var(--purple);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(109,13,253,0);
}
.btn-primary:hover {
  background: var(--purple2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109,13,253,0.4);
}
.btn-primary svg { flex-shrink: 0; }

/* ── SECTION SHELL ── */
.section {
  padding: 6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--purple2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 3rem;
}

/* ── SERVICES ── */
#services { border-top: 1px solid var(--border); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
.service-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(109,13,253,0.18);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(109,13,253,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--purple2);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── ABOUT ── */
#about { border-top: 1px solid var(--border); }
.about-text {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── CONTACT ── */
#contact {
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109,13,253,0.18);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238888aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: #44445a; }

.form-submit { margin-top: 1.5rem; width: 100%; justify-content: center; }

#form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
#form-status.success {
  background: rgba(0,229,160,0.1);
  border: 1px solid rgba(0,229,160,0.3);
  color: var(--green);
  display: block;
}
#form-status.error {
  background: rgba(253,70,50,0.1);
  border: 1px solid rgba(253,70,50,0.3);
  color: #fd7060;
  display: block;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple2); }
.footer-links svg {
  width: 18px; height: 18px;
  fill: currentColor;
}

/* ── RECAPTCHA BADGE hide (legal note in form) ── */
.g-recaptcha-note {
  font-size: 0.72rem;
  color: #9999bb;
  margin-top: 0.75rem;
  text-align: center;
}
.g-recaptcha-note a { color: #aaaadd; text-decoration: underline; }
.grecaptcha-badge { visibility: hidden; }

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover {
  border-color: var(--purple2);
  color: var(--purple2);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --dark:   #f4f4f8;
  --panel:  #ffffff;
  --border: #dddde8;
  --text:   #1a1a2e;
  --muted:  #555570;
}
[data-theme="light"] body {
  background: var(--dark);
  color: var(--text);
}
[data-theme="light"] .navbar {
  background: rgba(244,244,248,0.9);
}
[data-theme="light"] .hero-bg {
  filter: brightness(0.45) saturate(1.2);
}
[data-theme="light"] .hero-title {
  color: #fff;
}
[data-theme="light"] .hero-desc {
  color: rgba(255,255,255,0.75);
}
[data-theme="light"] .hero-stack-item {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
}
[data-theme="light"] .section-title {
  color: var(--text);
}
[data-theme="light"] .service-card h3 {
  color: var(--text);
}
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--dark); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--border); }
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: #aaaabb; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
  .section { padding: 4rem 1.25rem; }
  .hero-content { padding: 3rem 1.25rem; }
}

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