/* =========
   Base
========= */
:root {
  --bg: #0b0c10;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted-2: rgba(255, 255, 255, 0.55);
  --stroke: rgba(255, 255, 255, 0.12);

  --brand-1: #8b5cf6;
  --brand-2: #ec4899;
  --brand-3: #22c55e;

  --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 14px;

  --container: 1120px;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --panel: rgba(0, 0, 0, 0.04);
  --panel-2: rgba(0, 0, 0, 0.06);
  --text: rgba(8, 10, 16, 0.92);
  --muted: rgba(8, 10, 16, 0.72);
  --muted-2: rgba(8, 10, 16, 0.55);
  --stroke: rgba(8, 10, 16, 0.12);
  --shadow: 0 18px 55px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 600px at 15% 5%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(900px 650px at 85% 18%, rgba(236, 72, 153, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Ensure hidden attribute ALWAYS hides elements (modal/menu/toast) */
[hidden] {
  display: none !important;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  transform: translateY(-160%);
  transition: transform 180ms ease;
  z-index: 1000;
}
.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* =========
   Buttons
========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--panel-2);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  border: 0;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.22);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--brand-1), #ff4bb2);
}
.btn--ghost {
  background: transparent;
}
.btn--sm {
  padding: 10px 14px;
  font-size: 14px;
}
.btn--block {
  width: 100%;
}

/* =========
   Icon button
========= */
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
}
.icon-btn:hover {
  background: var(--panel-2);
  transform: translateY(-1px);
}
.icon-btn:active {
  transform: translateY(0);
}
.icon {
  font-size: 18px;
}

/* =========
   Header
========= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 10, 16, 0.52);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
:root[data-theme="light"] .header {
  background: rgba(246, 247, 251, 0.65);
  border-bottom: 1px solid rgba(8, 10, 16, 0.08);
}

.header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 12px 26px rgba(139, 92, 246, 0.25);
}
.brand__text {
  font-size: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 16px;
}
.nav__link {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease;
}
.nav__link:hover {
  background: var(--panel);
  color: var(--text);
}
.nav__link.is-active {
  background: var(--panel-2);
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: inline-flex;
}

@media (min-width: 860px) {
  .nav__links {
    display: inline-flex;
  }
  .nav__toggle {
    display: none;
  }
}

/* =========
   Mobile menu
========= */
.mobile {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.72);
}
:root[data-theme="light"] .mobile {
  background: rgba(246, 247, 251, 0.9);
  border-bottom: 1px solid rgba(8, 10, 16, 0.08);
}
.mobile__inner {
  padding: 12px 0 18px;
  display: grid;
  gap: 10px;
}
.mobile__link {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--text);
}

/* =========
   Hero
========= */
.hero {
  position: relative;
  padding: 64px 0 36px;
}
.hero__inner {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
  }
}

.hero__title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin: 12px 0 0;
  letter-spacing: -0.04em;
}
.hero__subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 56ch;
}
.hero__cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
}
.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-1));
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.18);
}

.hero__stats {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  min-width: 150px;
}
.stat__num {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat__label {
  color: var(--muted-2);
  font-size: 13px;
  margin-top: 4px;
}

/* hero card */
.hero__card {
  position: relative;
}
.glass {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.glass__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.dot--red {
  background: #ff4d4d;
}
.dot--yellow {
  background: #ffd966;
}
.dot--green {
  background: #39d98a;
}
.glass__label {
  margin-left: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.glass__bottom {
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.tag {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
:root[data-theme="light"] .tag {
  background: rgba(255, 255, 255, 0.7);
}

/* mock preview */
.mock {
  padding: 18px;
}
.mock__header {
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.mock__logo {
  width: 90px;
  height: 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.9));
}
.mock__nav {
  width: 150px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}
.mock__hero {
  margin-top: 14px;
  height: 140px;
  border-radius: 18px;
  background: radial-gradient(400px 180px at 30% 30%, rgba(139, 92, 246, 0.35), transparent 65%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.mock__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.mock__tile {
  height: 70px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* background glow */
.hero__bg {
  position: absolute;
  inset: -220px -120px auto -120px;
  height: 420px;
  background: radial-gradient(320px 220px at 20% 40%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(320px 240px at 70% 40%, rgba(236, 72, 153, 0.22), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

/* =========
   Sections / grid
========= */
.section {
  padding: 64px 0;
}
.section--alt {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
:root[data-theme="light"] .section--alt {
  background: rgba(0, 0, 0, 0.03);
  border-top: 1px solid rgba(8, 10, 16, 0.06);
  border-bottom: 1px solid rgba(8, 10, 16, 0.06);
}

.section__head {
  max-width: 760px;
}
.section__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}
.section__subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.grid {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
.grid--3 {
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  padding: 18px;
}
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 18px;
}
.card__title {
  margin: 12px 0 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.card__text {
  margin: 10px 0 0;
  color: var(--muted);
}

.checklist {
  margin: 12px 0 0;
  padding: 0 0 0 16px;
  color: var(--muted);
}
.checklist li {
  margin: 6px 0;
}
.checklist--tight li {
  margin: 4px 0;
}

/* =========
   Logos
========= */
.logos {
  padding: 22px 0 54px;
}
.logos__inner {
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: start;
}
.logos__text {
  color: var(--muted-2);
  margin: 0;
}
.logos__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.logo-chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

/* =========
   Work
========= */
.work-card {
  text-align: left;
  border: 1px solid var(--stroke);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.work-card:hover {
  transform: translateY(-2px);
  background: var(--panel-2);
  border-color: rgba(255, 255, 255, 0.18);
}
.work-card__thumb {
  height: 170px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.work-card__thumb--1 {
  background-image: radial-gradient(400px 200px at 20% 30%, rgba(34, 197, 94, 0.35), transparent 70%),
    radial-gradient(420px 220px at 70% 35%, rgba(139, 92, 246, 0.32), transparent 72%),
    rgba(255, 255, 255, 0.06);
}
.work-card__thumb--2 {
  background-image: radial-gradient(420px 220px at 30% 30%, rgba(236, 72, 153, 0.33), transparent 70%),
    radial-gradient(420px 240px at 70% 40%, rgba(139, 92, 246, 0.30), transparent 72%),
    rgba(255, 255, 255, 0.06);
}
.work-card__thumb--3 {
  background-image: radial-gradient(420px 220px at 30% 40%, rgba(59, 130, 246, 0.25), transparent 70%),
    radial-gradient(420px 220px at 70% 35%, rgba(34, 197, 94, 0.28), transparent 72%),
    rgba(255, 255, 255, 0.06);
}
.work-card__body {
  padding: 14px 16px 16px;
}
.work-card__title {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.work-card__meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.work-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========
   Slider
========= */
.slider {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slider__track {
  display: flex;
  transition: transform 320ms ease;
}
.quote {
  min-width: 100%;
  padding: 22px 18px;
}
@media (min-width: 760px) {
  .quote {
    padding: 26px 24px;
  }
}
.quote__text {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}
.quote__meta {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  color: var(--muted);
}
.quote__name {
  font-weight: 800;
  color: var(--text);
}
.quote__role {
  color: var(--muted);
}

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.slider__dots {
  display: inline-flex;
  gap: 8px;
}
.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: 1px solid var(--stroke);
  background: transparent;
  cursor: pointer;
}
.dot-btn.is-active {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border: 0;
}

/* =========
   Contact
========= */
.contact {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}
@media (min-width: 980px) {
  .contact {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
  }
}
.form__row {
  display: grid;
  gap: 12px;
}
@media (min-width: 760px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}
.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}
:root[data-theme="light"] .input {
  background: rgba(0, 0, 0, 0.03);
}
.input:focus {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(255, 255, 255, 0.08);
}
.input--textarea {
  min-height: 120px;
  resize: vertical;
}
.form__actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.form__hint {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
}

.contact__side {
  display: grid;
  gap: 14px;
}
.mini__title {
  margin: 0;
  font-size: 16px;
}
.mini__text {
  margin: 10px 0 0;
  color: var(--muted);
}

/* =========
   Footer
========= */
.footer {
  padding: 26px 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}
:root[data-theme="light"] .footer__inner {
  border-top: 1px solid rgba(8, 10, 16, 0.08);
}
.footer__text {
  margin: 0;
  color: var(--muted-2);
}
.footer__links {
  display: inline-flex;
  gap: 12px;
  color: var(--muted);
}
.footer__links a:hover {
  color: var(--text);
}

/* =========
   Modal
========= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.modal__panel {
  position: relative;
  width: min(720px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 17, 25, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}
:root[data-theme="light"] .modal__panel {
  background: rgba(246, 247, 251, 0.96);
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.modal__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.modal__desc {
  margin: 6px 0 0;
  color: var(--muted);
}
.modal__tags {
  padding: 12px 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal__body {
  padding: 14px 16px 18px;
}
.preview {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.preview__bar {
  height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.16), rgba(236, 72, 153, 0.14));
}
.preview__content {
  height: 220px;
  background: radial-gradient(420px 240px at 30% 30%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(420px 240px at 70% 35%, rgba(236, 72, 153, 0.18), transparent 72%),
    rgba(255, 255, 255, 0.06);
}
.modal__note {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

/* =========
   Toast
========= */
.toast {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 17, 25, 0.9);
  box-shadow: var(--shadow);
}
:root[data-theme="light"] .toast {
  background: rgba(246, 247, 251, 0.95);
}
.toast__dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-1));
}
.toast__text {
  font-weight: 650;
  color: var(--text);
}

/* =========
   Reveal animations
========= */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}