/* NoCODEscript — technical progressive landing */

:root {
  --bg: #eef3fb;
  --bg-soft: #f7f9fd;
  --surface: #ffffff;
  --ink: #101828;
  --muted: #5b6578;
  --line: rgba(16, 24, 40, 0.08);
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: #dbe7ff;
  --ok: #12b76a;
  --radius: 22px;
  --radius-sm: 14px;
  --pill: 999px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 18px 50px rgba(37, 99, 235, 0.08);
  --header-h: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

.grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(rgba(16, 24, 40, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 0 0;
}

.header__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(16px);
}

.header__end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.logo__img {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.logo--small .logo__img {
  width: 1.75rem;
  height: 1.75rem;
}

.logo__dot {
  color: #f5c518;
}

.nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--ink);
}

.lang-switch {
  display: flex;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  overflow: hidden;
  background: var(--bg-soft);
}

.lang-switch__btn {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.42rem 0.55rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch__btn.is-active {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: var(--pill);
  font-family: var(--font);
  font-weight: 650;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary,
.btn--header {
  background: var(--ink);
  color: #fff;
}

.btn--header {
  padding: 0.62rem 1rem;
  font-size: 0.82rem;
}

.btn--primary:hover,
.btn--header:hover {
  background: #000;
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(16, 24, 40, 0.04);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(3.2rem, 8vw, 6.5rem) 0 1.5rem;
}

.hero__content {
  max-width: 820px;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 1.2rem;
}

.accent-text {
  color: var(--accent);
}

.hero__lead {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.8rem;
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.marquee {
  margin-top: 3.2rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 0.7rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--muted);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Metrics */
.metrics {
  position: relative;
  z-index: 1;
  padding: 0 0 1rem;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.metric strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(3.4rem, 7vw, 5.6rem) 0;
}

.section--tint {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 18%, rgba(255, 255, 255, 0.55) 82%, transparent);
}

.kicker {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
}

.section__subtitle {
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 2.2rem;
}

.section__subtitle a,
.about__text a,
.review-card a {
  color: var(--accent);
  font-weight: 600;
}

.section__subtitle a:hover,
.about__text a:hover {
  text-decoration: underline;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.45rem 1.4rem 1.3rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.card__index {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card__tags span {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.5rem;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent-2);
}

/* Projects */
.project-tabs {
  margin-bottom: 2.5rem;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.tabs__tab {
  flex: 1 1 160px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  cursor: pointer;
}

.tabs__tab.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.tabs__panels {
  min-height: 0;
}

.tabs__panel {
  display: none;
}

.tabs__panel.is-active {
  display: block;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.project-card__shot {
  width: calc(100% + 2.3rem);
  margin: -1.15rem -1.15rem 1rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dce4f2;
  display: block;
}

.project-card__niche {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card__result {
  margin: 0 0 0.9rem !important;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--ink) !important;
  font-size: 0.86rem !important;
}

.project-card__result strong {
  display: inline;
  color: var(--accent-2);
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.55rem;
  border-radius: var(--pill);
  background: #d1fae5;
  color: #067647;
}

.tag--outline {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}

.project-card p {
  flex: 1;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.badge {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  padding: 0.26rem 0.5rem;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent-2);
}

.link-arrow {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-arrow--second {
  margin-top: 0.45rem;
}

.link-arrow::after {
  content: "→";
}

.fh-reviews-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 2.6rem 0 1rem;
  letter-spacing: -0.03em;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}

.review-card {
  margin: 0;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.review-card p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.review-card footer {
  font-size: 0.75rem;
  color: var(--muted);
}

.about__text {
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 1.8rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.steps span {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.faq__item {
  margin: 0;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.faq__item dt {
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.faq__item dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  padding: clamp(2.2rem, 5vw, 3.4rem);
  border-radius: 28px;
  background: linear-gradient(160deg, #16325e 0%, #1d4ed8 58%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(29, 78, 216, 0.22);
}

.kicker--on-dark,
.section__title--on-dark {
  color: #fff;
}

.kicker--on-dark {
  color: #bfdbfe;
}

.cta__lead {
  color: rgba(255, 255, 255, 0.86);
  max-width: 460px;
  margin: 0 0 1.4rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0 5rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.float-tg {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

@media (max-width: 900px) {
  .metrics__grid,
  .cards,
  .project-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .tabs__tab {
    flex: 1 1 45%;
  }

  .btn--header {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.75rem 2rem;
    background: #fff;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 60;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }
}
