/* ============================================================
   BeyondCode — premium dark / gold
   ============================================================ */

:root {
  --bg: #0d0d0d;
  --bg-soft: #141414;
  --bg-card: #1a1a1a;
  --gold-dark: #a3844c;
  --gold-mid: #d4b870;
  --gold-light: #f4e990;
  --gold-gradient: linear-gradient(100deg, var(--gold-dark) 0%, var(--gold-mid) 50%, var(--gold-light) 100%);
  --text: #e9e6df;
  --text-muted: #a8a49b;
  --line: rgba(212, 184, 112, 0.18);
  --panicza-red: #f22721;
  --panicza-red-soft: rgba(242, 39, 33, 0.12);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- shared type & accents ---------- */

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  padding: 104px 0;
}

.section-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-mid);
}

.section-title {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.section-lead {
  max-width: 620px;
  margin: 0 0 48px;
  color: var(--text-muted);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #141005;
}

.btn-gold:hover {
  box-shadow: 0 8px 28px rgba(212, 184, 112, 0.28);
}

.btn-ghost {
  color: var(--gold-mid);
  border-color: var(--line);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold-mid);
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: var(--gold-light);
}

.nav-link.active {
  color: var(--gold-mid);
  border-bottom-color: var(--gold-mid);
}

.nav-link-cta {
  padding: 9px 22px;
  border: 1px solid var(--gold-dark);
  border-radius: 999px;
  color: var(--gold-mid);
}

.nav-link-cta:hover,
.nav-link-cta.active {
  border-color: var(--gold-mid);
  border-bottom-color: var(--gold-mid);
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-mid);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- hero ---------- */

.hero {
  padding: 130px 0 120px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(163, 132, 76, 0.14), transparent 70%),
    var(--bg);
}

.hero-inner {
  text-align: center;
}

.hero-kicker {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-title {
  margin: 0 0 28px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.5vw, 4.75rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.hero-title span {
  display: inline-block;
  padding: 0 0.12em;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------- services ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  padding: 34px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 184, 112, 0.4);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--gold-mid);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
}

.card-text {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

/* ---------- about ---------- */

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.about-copy p {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.about-btn {
  margin-top: 10px;
}

.about-panel {
  position: relative;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(160deg, var(--gold-dark), rgba(212, 184, 112, 0.08) 60%, var(--gold-mid));
}

.about-panel-inner {
  border-radius: 17px;
  background: var(--bg-soft);
  padding: 48px 40px;
  text-align: center;
}

.about-stat {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.3;
}

.about-panel-note {
  margin: 22px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- PanicZA case study ---------- */

.panicza {
  background:
    radial-gradient(ellipse 60% 45% at 85% 0%, rgba(242, 39, 33, 0.08), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid rgba(242, 39, 33, 0.25);
  border-bottom: 1px solid rgba(242, 39, 33, 0.25);
}

.panicza-kicker {
  color: var(--panicza-red);
}

.panicza-head {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 48px;
}

.panicza-logo {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border-radius: 24px;
  border: 1px solid rgba(242, 39, 33, 0.35);
}

.panicza-title {
  margin-bottom: 12px;
  color: var(--text);
}

.panicza-lead {
  margin-bottom: 0;
}

.panicza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.panicza-card {
  padding: 30px 28px;
  background: var(--bg-card);
  border: 1px solid rgba(242, 39, 33, 0.22);
  border-radius: 16px;
}

.panicza-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.panicza-card-title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--panicza-red);
}

.panicza-list {
  margin: 0;
  padding-left: 20px;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.panicza-list li {
  margin-bottom: 8px;
}

.panicza-list li::marker {
  color: var(--panicza-red);
}

.panicza-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-red {
  background: var(--panicza-red);
  color: #fff;
}

.btn-red:hover {
  box-shadow: 0 8px 28px rgba(242, 39, 33, 0.3);
}

.btn-red-ghost {
  color: var(--panicza-red);
  border-color: rgba(242, 39, 33, 0.45);
}

.btn-red-ghost:hover {
  border-color: var(--panicza-red);
  background: var(--panicza-red-soft);
}

/* ---------- contact ---------- */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.contact-copy p {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.contact-email-line {
  margin-top: 28px;
}

.contact-email,
.footer-email {
  color: var(--gold-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.contact-email:hover,
.footer-email:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

.contact-form {
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-mid);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.18s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-mid);
}

.form-field.invalid input,
.form-field.invalid textarea {
  border-color: #d64541;
}

.form-error {
  display: none;
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #e4736f;
}

.form-field.invalid .form-error {
  display: block;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-note {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-panel {
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 76px 0;
  }

  .hero {
    padding: 88px 0 84px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: rgba(13, 13, 13, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 0;
  }

  .nav-link.active {
    border-bottom: 0;
  }

  .nav-link-cta {
    margin-top: 10px;
    border-radius: 999px;
  }

  .panicza-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .panicza-logo {
    width: 88px;
    height: 88px;
  }

  .panicza-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .contact-form {
    padding: 30px 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
