/*
Theme Name: DeNOx Block Theme
Theme URI: https://example.com/denox
Author: OpenAI
Description: Pixel-pontos block theme for the DeNOx landing page.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Text Domain: denox-block-theme
*/
@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,700;1,800&display=swap");

:root {
  --bg: #f5f7fa;
  --ink: #1a1a1a;
  --muted: #3a3a3a;
  --blue: #0e5fb6;
  --blue-soft: #8eb8e5;
  --gold: #f0d263;
  --white: #ffffff;
  --deep: #141414;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  --radius: 22px;
  --content: min(1180px, calc(100vw - 3rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-heading: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(14, 95, 182, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(240, 210, 99, 0.12), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  position: relative;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(14, 95, 182, 0.08), transparent 22%);
  opacity: 0.75;
  z-index: -1;
}

.site-nav,
.pill-nav {
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), filter 260ms var(--ease);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem;
}

.site-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem);
}

.nav-inner {
  width: var(--content);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.12));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.nav-frost {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 95, 182, 0.18), rgba(14, 95, 182, 0));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.pill-nav {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 1.4rem);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
}

.pill-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: rgba(14, 95, 182, 0.92);
  color: var(--white);
  border: 1px solid rgba(142, 184, 229, 0.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pill img {
  width: 78px;
  height: auto;
}

.pill-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill-links a {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.pill-links a:hover,
.pill-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.section {
  padding: 6.5rem 0;
}

.section--light {
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.98), rgba(245, 247, 250, 0.92));
}

.section--dark {
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(135deg, #0c5097 0%, #0e5fb6 52%, #123b6b 100%);
}

.section--ink {
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(142, 184, 229, 0.09), transparent 24%),
    linear-gradient(135deg, #111111 0%, #1a1a1a 55%, #262636 100%);
}

.section-inner {
  width: var(--content);
  margin: 0 auto;
  position: relative;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.section--dark .eyebrow,
.section--ink .eyebrow {
  color: rgba(240, 210, 99, 0.88);
}

.heading {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
}

.heading span {
  color: var(--blue);
}

.section--dark .heading span {
  color: var(--blue-soft);
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section--dark .lede,
.section--ink .lede {
  color: rgba(255, 255, 255, 0.74);
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: stretch;
  padding-top: 5.4rem;
  position: relative;
  overflow: clip;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.02);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(14, 95, 182, 0.9) 0%, rgba(14, 95, 182, 0.58) 42%, rgba(15, 20, 38, 0.84) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
  opacity: 0.8;
}

.hero-topline {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(240, 210, 99, 0.92), rgba(240, 210, 99, 0.28));
}

.hero-inner {
  width: var(--content);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  align-items: end;
  gap: 2rem;
  min-height: 100svh;
  padding: 7rem 0 5rem;
}

.hero-copy {
  max-width: 44rem;
  padding-bottom: 1rem;
}

.hero-copy .eyebrow {
  color: var(--gold);
}

.hero-heading {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-heading em {
  font-style: normal;
  color: var(--gold);
}

.hero-lede {
  max-width: 32rem;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.85rem 1.45rem;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 180ms var(--ease), filter 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--gold {
  background: var(--gold);
  color: var(--blue);
}

.button--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-stat {
  align-self: end;
  justify-self: end;
  max-width: 19rem;
  padding-bottom: 1.5rem;
  text-align: right;
}

.hero-stat .num {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.22);
}

.hero-stat .label {
  margin-top: 0.7rem;
  color: var(--blue-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
  color: rgba(240, 210, 99, 0.6);
}

.scroll-hint .line {
  width: 1px;
  height: 3.25rem;
  background: linear-gradient(180deg, rgba(240, 210, 99, 0), rgba(240, 210, 99, 0.6));
}

.scroll-hint span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
}

.panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(142, 184, 229, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 16px 60px rgba(10, 25, 40, 0.08);
  overflow: hidden;
}

.panel--dark {
  background: rgba(12, 18, 30, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.22);
}

.solution-layout {
  align-items: start;
}

.solution-copy {
  grid-column: span 5;
}

.solution-media {
  grid-column: span 7;
}

.divider-note {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.divider-note::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--gold);
}

.media-frame {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(35, 35, 50, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.tech-layout {
  grid-template-columns: 0.95fr 1.05fr;
}

.tech-visual {
  position: sticky;
  top: 6rem;
}

.tech-visual img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.tech-visual .caption {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(142, 184, 229, 0.86);
  line-height: 1.55;
}

.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  margin-top: 2rem;
}

.partner-card {
  display: grid;
  gap: 0.75rem;
}

.partner-card .mark {
  min-width: 160px;
  min-height: 80px;
  display: grid;
  place-items: center;
  background: var(--white);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}

.partner-card img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.benefits-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(142, 184, 229, 0.7);
  border-radius: 20px;
  overflow: hidden;
}

.benefit {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 19rem;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease);
}

.benefit:hover {
  transform: translateY(-3px);
}

.benefit:nth-child(2n) {
  margin-top: 3rem;
}

.benefit--accent {
  background: var(--blue);
  color: var(--white);
}

.benefit--light {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.benefit--light .benefit-icon {
  background: rgba(14, 95, 182, 0.08);
  color: var(--blue);
}

.benefit--accent .benefit-icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold);
}

.benefit-value {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.benefit-label {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.benefit-rule {
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}

.benefit h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.benefit p {
  margin: 0;
  line-height: 1.62;
  font-size: 0.94rem;
}

.about-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.about-copy {
  grid-column: span 5;
}

.about-mission {
  grid-column: span 7;
  padding-left: 1.5rem;
  border-left: 3px solid var(--blue);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 1.8rem;
}

.team-card {
  display: grid;
  gap: 0.7rem;
}

.team-card img {
  width: 100%;
  aspect-ratio: 292 / 338;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  filter: grayscale(1);
  transition: filter 240ms var(--ease), transform 240ms var(--ease);
}

.team-card:hover img {
  filter: grayscale(0);
  transform: translateY(-2px);
}

.team-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.team-role {
  margin: 0;
  color: var(--blue-soft);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.team-accent {
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 220ms var(--ease);
}

.team-card:hover .team-accent {
  width: 2.5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
}

.contact-copy {
  grid-column: span 5;
}

.contact-form-wrap {
  grid-column: 7 / span 6;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  padding: 1.5rem 0 0.85rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  outline: none;
  transition: border-color 180ms var(--ease);
}

.section--dark .field input,
.section--dark .field textarea {
  font-size: 1.02rem;
}

.field textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.field label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(240, 210, 99, 0.72);
  transition: transform 180ms var(--ease), font-size 180ms var(--ease), opacity 180ms var(--ease);
  pointer-events: none;
}

.field:focus-within input,
.field:focus-within textarea {
  border-bottom-color: var(--gold);
}

.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field:focus-within label {
  transform: translateY(-0.85rem);
  font-size: 0.62rem;
}

.contact-submit {
  justify-self: start;
  background: var(--gold);
  color: var(--blue);
}

.form-feedback {
  display: none;
  align-items: start;
  gap: 1rem;
  padding: 1.4rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(240, 210, 99, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.form-feedback.is-visible {
  display: flex;
}

.form-feedback strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

@media (max-width: 1080px) {
  .hero-inner,
  .grid-2,
  .solution-layout,
  .tech-layout,
  .contact-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .solution-copy,
  .solution-media,
  .contact-copy,
  .contact-form-wrap,
  .about-copy,
  .about-mission {
    grid-column: auto;
  }

  .hero-stat {
    justify-self: start;
    text-align: left;
  }

  .tech-visual {
    position: relative;
    top: auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit:nth-child(2n) {
    margin-top: 0;
  }

  .benefit {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .site-nav {
    padding-inline: 0.75rem;
  }

  .nav-links {
    display: none;
  }

  .logo {
    width: 110px;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-inner {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-heading {
    font-size: clamp(2.9rem, 14vw, 4.8rem);
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .section {
    padding: 4.8rem 0;
  }

  .benefits-title,
  .footer-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .pill-nav {
    left: 1rem;
    right: 1rem;
    transform: translateY(1.4rem);
  }

  .pill-nav.is-visible {
    transform: translateY(0);
  }

  .pill {
    justify-content: space-between;
    border-radius: 18px;
    padding: 0.85rem 0.95rem;
  }

  .pill img {
    width: 68px;
  }

  .pill-links {
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pill-links::-webkit-scrollbar {
    display: none;
  }
}
