/* ─── FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@300..700&display=swap');

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

/* ─── TOKENS ─── */
:root {
  --red:        #DB2F1F;
  --red-bright: #F40F00;
  --red-glow:   rgba(232, 48, 42, 0.45);
  --red-dim:    rgba(232, 48, 42, 0.15);
  --bg:         #101014;
  --bg2:        #131313;
  --card:       #18181C;
  --card2:      #1e1e1e;
  --border:     #303034;
  --text:       #ffffff;
  --muted:      #aaaaaa;

  /* Easing library */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:    cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.home {
  background-image: url(../images/hero-bg.svg);
  background-repeat: no-repeat;
  background-position: center top;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Archivo Black", sans-serif;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  /* backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(2px); */
  /* background: rgba(16, 16, 20, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04); */
  transition: background 0.4s ease, border-color 0.4s ease;
}

nav.scrolled {
  background: rgba(16, 16, 20, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(2px); 
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  max-width: 200px;
  transition: opacity 0.2s ease;
}
.logo:hover img {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
  font-weight: 400;
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a.active,
.nav-links a:hover {
  color: #fff;
}

/* Nav underline active indicator */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -32px;
  left: -10px;
  right: 0;
  min-width: 80px;
  height: 80px;
  background-image: url(../images/menu-active-state.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  border-radius: 2px;
  margin: 0 auto;
  z-index: -1;
  opacity: 0;
  transform: scaleY(0.8);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out-quart);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  opacity: 1;
  transform: scaleY(1);
}

/* ─── HERO ─── */
section {
  position: relative;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 200px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  gap: 120px;
}

.rounded-hero-overlay {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background-image: url(../images/rounded-hero-overlay.svg);
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center top;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../images/hero-rectangle-shape.svg);
  background-repeat: no-repeat;
  background-position: center top;
  top: 300px;
  right: 0;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero h1 .red {
  background: linear-gradient(-45deg, #ffffff -1.83%, #F40F00 99.75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  max-width: 570px;
  margin: 0 auto;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding-top: 40px;
}

/* ─── BUTTONS ─── */
.btn-red {
  background: linear-gradient(278.7deg, #ffffff 0%, #F40F00 42.07%);
  background-size:120% 20%;
  background-position: right center;
  color: #fff;
  padding: 0 28px;
  border-radius: 50px;
  font-size: 16px;
  font-family: "Space Grotesk", sans-serif;
  border: none;
  cursor: pointer;
  min-height: 42px;
  font-weight: 500;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--red-glow);
  text-decoration: none;
  transition:
    background-position 0.5s var(--ease-out-expo),
    transform 0.25s var(--ease-spring),
    box-shadow 0.35s ease;
  will-change: transform;
}

.btn-red:hover {
  background-position: left center;
  transform: scale(1.06) translateY(-1px);
  box-shadow: 0 4px 36px rgba(244, 15, 0, 0.65);
}

.btn-red:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
  box-shadow: 0 0 16px rgba(244, 15, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  font-family: "Space Grotesk", sans-serif;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    transform 0.25s var(--ease-spring),
    color 0.35s ease;
  z-index: 0;
  will-change: transform;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(278.7deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.6) 100%);
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out-expo);
  z-index: -1;
}

.btn-outline:hover::before {
  transform: scaleX(1);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.06) translateY(-1px);
}

.btn-outline:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* ─── HERO CHIP / VISUAL ─── */
.chip {
  position: relative;
  top: 0;
}

.flag-card {
  position: absolute;
  top: -32px;
  left: 0;
  right: 0;
  z-index: 9;
}

.chip-img {
  position: relative;
  z-index: 1;
  will-change: filter;
  animation: imgGlow 3s ease-in-out infinite;
}

.chip-wrap {
  position: relative;
  display: inline-block;
}

.chip-wrap::before {
  content: "";
  position: absolute;
  inset: -40px;
  border-radius: 100%;
  background: radial-gradient(circle,
    rgba(255, 79, 74, 0.5) 0%,
    rgba(255, 79, 74, 0.2) 40%,
    rgba(255, 79, 74, 0) 70%);
  z-index: 0;
  animation: glowPulseRound 3s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero-flip-text {
  max-width: 1180px;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: 180px;
  justify-content: space-between;
  display: flex;
}

/* ─── SECTION: WHAT WE MAKE ─── */
.section-what {
  padding: 120px 0 80px;
  max-width: 1180px;
  margin: 0 auto;
}

.section-what h2, #control-heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  margin-bottom: 14px;
}

.section-what h2 .red, #control-heading .red {
  background: linear-gradient(90deg, #ffffff -19.83%, #F40F00 93.75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-what .subtitle {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  max-width: 544px;
  margin-bottom: 50px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ─── PRODUCT CARDS ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 32px 48px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.35s ease,
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s ease;
  will-change: transform;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(232, 48, 42, 0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(232, 48, 42, 0.3);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(244, 15, 0, 0.18), 0 2px 8px rgba(0,0,0,0.3);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.card p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
}

.card-arrow {
  position: absolute;
  bottom: 12px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #FF4F4A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transition:
    background 0.25s ease,
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover .card-arrow {
  background: var(--red-bright);
  transform: scale(1.15) translateX(2px);
  box-shadow: 0 0 16px rgba(244, 15, 0, 0.5);
}

.inset-0 {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: transparent;
}

/* ─── SECTION: MORE CONTROL ─── */
.section-control-outer {
  background-image: url(../images/section-bg-pattern.svg);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-control {
  padding: 100px 0;
  display: flex;
  align-items: center;
  gap: 80px;
  margin: 0 auto;
  overflow: visible;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
}

.control-visual {
  flex: 0 0 340px;
  position: relative;
}

.control-visual img {
  width: 130%;
  position: relative;
  right: -50px;
}

.control-text {
  padding-bottom: 120px;
}

.control-text h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 22px;
}

.control-text h1 .red {
  background: linear-gradient(90deg, #ffffff -4.83%, #F40F00 93.75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.control-text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 560px;
}

/* ─── SECTION: PLUGINS ARE ─── */
.section-plugins-wrap {
  background: var(--bg);
  padding-top: 0;
  padding-bottom: 120px;
}

.section-plugins {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.plugins-left {
  flex: 0 0 282px;
  position: sticky;
  top: 120px;
  padding-bottom: 1rem;
}

.plugins-left h2 {
  font-size: clamp(36px, 5vw, 64px);
  padding-top: 20px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 80px;
  background: linear-gradient(90deg, #ffffff 4.83%, #F40F00 93.75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plugins-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.plugin-card {
  background: #18181C;
  border: 1px solid #303034;
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition:
    border-color 0.35s ease,
    transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s ease;
  will-change: transform;
}

.plugin-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(232, 48, 42, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.plugin-card:hover {
  border-color: rgba(232, 48, 42, 0.35);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(244, 15, 0, 0.15), 0 2px 8px rgba(0,0,0,0.3);
}

.plugin-card:hover::after {
  opacity: 1;
}

.plugin-icon {
  width: 152px;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--red);
  transition: transform 0.4s var(--ease-spring);
}

.plugin-card:hover .plugin-icon {
  transform: scale(1.05) translateY(-4px);
}

.plugin-card p {
  font-size: 20px;
  line-height: 1.5;
  color: #fff;
  font-family: "Archivo Black", sans-serif;
  font-weight: normal;
  text-align: center;
}

/* ─── FOOTER ─── */
footer {
  background: #0A0A0D;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 524px;
  z-index: 1;
}

footer::before {
  background-image: url(../images/footer-pattern\ 1.svg);
  background-repeat: no-repeat;
  background-position: left bottom;
  min-height: 524px;
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}

footer::after {
  background-image: url(../images/footer-pattern.svg);
  background-repeat: no-repeat;
  background-position: right bottom;
  min-height: 524px;
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin-bottom: 72px;
}

.footer-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-nav a {
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.25s ease;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -32px;
  left: -10px;
  right: 0;
  min-width: 80px;
  height: 80px;
  background-image: url(../images/menu-active-state.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  border-radius: 2px;
  margin: 0 auto;
  z-index: -1;
  opacity: 0;
  transform: scaleY(0.8);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out-quart);
}

.footer-nav a:hover::after,
.footer-nav a.active::after {
  opacity: 1;
  transform: scaleY(1);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 20px;
  text-decoration: none;
  border-radius: 50%;
  transition:
    color 0.25s ease,
    transform 0.3s var(--ease-spring);
  will-change: transform;
}

.social-icon:hover {
  color: var(--red);
  transform: scale(1.2) translateY(-2px);
}

/* Hero content animates in via CSS — no JS dependency, never flashes invisible */
.hero-content--animate {
  animation: heroFadeUp 0.8s var(--ease-out-expo) both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }

/* ─── HERO GLOW COLUMNS ─── */
.hero-col {
  position: absolute;
  width: 30px;
  background: linear-gradient(to bottom, transparent, var(--red), transparent);
  opacity: 0.55;
  filter: blur(8px);
  border-radius: 50%;
  animation: colPulse 3s ease-in-out infinite alternate;
}

@keyframes colPulse {
  from { opacity: 0.35; }
  to   { opacity: 0.7;  }
}

.hero-col-1 { left: 12%; top: 15%; height: 280px; animation-delay: 0s; }
.hero-col-2 { right: 12%; top: 15%; height: 280px; animation-delay: 1.5s; }

/* ─── FLAME ANIMATIONS ─── */
.flame-group {
  transform-origin: center bottom;
}

@keyframes flicker-a {
  0%   { transform: scaleX(1)    scaleY(1)    translateY(0px);  opacity: 1;   }
  15%  { transform: scaleX(.97)  scaleY(1.02) translateY(-2px); opacity: .93; }
  30%  { transform: scaleX(1.02) scaleY(.98)  translateY(1px);  opacity: .97; }
  50%  { transform: scaleX(.98)  scaleY(1.03) translateY(-3px); opacity: .88; }
  65%  { transform: scaleX(1.01) scaleY(.97)  translateY(1px);  opacity: .94; }
  80%  { transform: scaleX(.99)  scaleY(1.01) translateY(-1px); opacity: .98; }
  100% { transform: scaleX(1)    scaleY(1)    translateY(0px);  opacity: 1;   }
}
@keyframes flicker-b {
  0%   { transform: scaleX(1)    scaleY(1)    translateY(0px);  opacity: .93; }
  20%  { transform: scaleX(1.02) scaleY(.97)  translateY(2px);  opacity: 1;   }
  40%  { transform: scaleX(.96)  scaleY(1.04) translateY(-4px); opacity: .86; }
  60%  { transform: scaleX(1.01) scaleY(.98)  translateY(1px);  opacity: .95; }
  75%  { transform: scaleX(.98)  scaleY(1.02) translateY(-2px); opacity: .90; }
  100% { transform: scaleX(1)    scaleY(1)    translateY(0px);  opacity: .93; }
}
@keyframes flicker-c {
  0%   { transform: scaleX(.99)  scaleY(1)    translateY(0px);  opacity: .96; }
  25%  { transform: scaleX(1.03) scaleY(.96)  translateY(2px);  opacity: .88; }
  45%  { transform: scaleX(.97)  scaleY(1.04) translateY(-4px); opacity: 1;   }
  70%  { transform: scaleX(1.01) scaleY(.98)  translateY(1px);  opacity: .92; }
  90%  { transform: scaleX(.98)  scaleY(1.02) translateY(-2px); opacity: .90; }
  100% { transform: scaleX(.99)  scaleY(1)    translateY(0px);  opacity: .96; }
}

.f-a { animation: flicker-a 4.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.f-b { animation: flicker-b 5.0s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.7s; }
.f-c { animation: flicker-c 3.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.4s; }
.f-d { animation: flicker-a 5.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 1.2s; }
.f-e { animation: flicker-b 4.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 1.8s; }
.f-f { animation: flicker-c 4.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.3s; }
.f-g { animation: flicker-a 4.0s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 1.0s; }
.f-h { animation: flicker-b 5.3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 1.5s; }
.f-i { animation: flicker-c 4.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.6s; }

@keyframes hue-shift {
  0%, 100% { filter: hue-rotate(0deg)   brightness(1);    }
  25%       { filter: hue-rotate(-10deg) brightness(1.08); }
  50%       { filter: hue-rotate(6deg)   brightness(.94);  }
  75%       { filter: hue-rotate(-5deg)  brightness(1.04); }
}

.whole-svg { animation: hue-shift 7s ease-in-out infinite; }

/* ─── FLOAT ANIMATION ─── */
.float {
  animation: floatUpDown 3.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatUpDown {
  0%   { transform: translateY(0px);   }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0px);   }
}

/* ─── CHIP GLOW ANIMATIONS ─── */
@keyframes imgGlow {
  0%   { filter: drop-shadow(0 0 4px rgba(255, 79, 74, 0.2)); }
  50%  { filter: drop-shadow(0 0 20px rgba(255, 79, 74, 0.65)); }
  100% { filter: drop-shadow(0 0 4px rgba(255, 79, 74, 0.2)); }
}

@keyframes glowPulseRound {
  0%   { transform: scale(0.7); opacity: 0.4; }
  50%  { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(0.7); opacity: 0.4; }
}

/* ─── PRODUCTS PAGE ─── */
.our-products {
  padding-top: 200px;
  background-position: right center;
  background-image: url(../images/ourproduct-triangle-shape.svg);
  background-repeat: no-repeat;
  background-size: contain;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.our-products .section-control {
  align-items: start;
  position: relative;
}

.our-products .control-text {
  min-width: 468px;
}

.our-products .hero-btns {
  justify-content: flex-start;
}

.products_list {
  background: transparent;
  padding-bottom: 200px;
}

.products_list p.text-desc {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 560px;
  font-family: "Space Grotesk", sans-serif;
}

.products_list h2 {
  font-size: clamp(24px, 2vw, 38px);
  font-family: "Archivo Black", sans-serif;
  line-height: 1.2;
  margin-bottom: 0;
  text-align: center;
  background: linear-gradient(90deg, #F40F00 0%, #ffffff 61.54%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding-left: 32px;
  padding-right: 32px;
}

.products_list .plugins-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 80px;
}

.products_list .plugins-grid .plugin-card {
  max-width: 480px;
  background-color: #18181C;
  padding-top: 72px;
  padding-bottom: 72px;
  gap: 56px;
  position: relative;
}

.products_list .plugins-grid .plugin-card::before {
  background: radial-gradient(122.52% 114.37% at -22.55% -14.32%, #FF4F4A 4.32%, rgba(255, 79, 74, 0.4) 19.23%, rgba(255, 79, 74, 0.05) 43.75%, rgba(255, 79, 74, 0) 65.87%);
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  z-index: 0;
}

.products_list .btn-red {
  position: absolute;
  bottom: -22px;
}

/* ─── BINARY GRID ─── */
.binary-grid {
  width: 748.83px;
  height: 1050.14px;
  position: fixed;
  top: 0;
  right: -60px;
  z-index: -1;
  pointer-events: none;
}

.binary-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ─── INNER PAGE FRAME ─── */
.inner-page-bg-frame {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(../images/inner-page-bg-frame.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
  z-index: -1;
}

/* ─── CONTACT PAGE ─── */
.contact-page-hero {
  position: relative;
  overflow: hidden;
  background-image: none;
}

.contact-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../images/contact-wave-pattern.svg);
  background-size: contain;
  background-position: top -200px right -200px;
  background-repeat: no-repeat;
  opacity: 0.4;
  animation: bgFade 6s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes bgFade {
  0%   { opacity: 0.4; }
  100% { opacity: 1;   }
}

.contact-card {
  max-width: 700px;
  margin: 50px auto;
  padding: 40px;
  border-radius: 20px;
  background: radial-gradient(circle at top right, rgba(255, 70, 70, 0.25), transparent 40%), #11131a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  width: 582px;
}

.contact-card .row {
  display: flex;
  gap: 20px;
}

.contact-card .field {
  flex: 1;
  margin-bottom: 20px;
}

.contact-card label {
  display: block;
  color: #fff;
  font-size: 16px;
  margin-bottom: 8px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #6F6F72;
  background: #232327;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: rgba(244, 15, 0, 0.75);
  box-shadow: 0 0 0 3px rgba(244, 15, 0, 0.1);
}

.contact-card .btn-red {
  min-width: 166px;
}

.field-error {
  display: block;
  font-size: 12px;
  color: #ff6b6b;
  margin-top: 5px;
  min-height: 16px;
  font-family: "Space Grotesk", sans-serif;
}

.input-invalid {
  border-color: rgba(244, 15, 0, 0.8) !important;
  box-shadow: 0 0 0 2px rgba(244, 15, 0, 0.15) !important;
}

.form-success {
  font-size: 14px;
  color: #6ee87a;
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  min-height: 20px;
}

.control-visual-contact {
  text-align: right;
  padding-top: 180px;
}

.control-visual-contact img {
  width: 90%;
}

/* ─── ACCESSIBILITY UTILITIES ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-content--animate {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1440px) {
  .hero::before {
    background-image: url(../images/hero-rectangle-shape.svg);
    background-repeat: no-repeat;
    background-position: center;
    top: 400px;
    background-size: 1600px;
    z-index: -1;
  }
  .control-visual-product img {
    max-width: 90%;
  }
  .section-what,
  .section-control,
  .section-plugins-wrap,
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero-visual {
    transform: scale(0.9);
  }
}

@media (max-width: 1439px) {
  .contact-card {
    max-width: none;
    width: 480px;
  }

  .our-products.contact-page-hero .section-control {
    gap: 40px;
  }
}

@media (max-width: 1280px) {
  .hero-visual {
    transform: scale(0.8);
  }

  .control-visual img {
    width: 110%;
  }

  .section-control-outer {
    min-height: 600px;
    background-position: left top -44px;
  }

  .section-control-outer.our-products {
    background-position: right center;
  }

  .control-visual {
    flex: 0 0 280px;
  }

  .section-control {
    padding: 64px 40px;
  }

  footer::after,
  footer::before {
    background-size: 30%;
    min-height: auto;
  }

  footer {
    height: auto;
    padding: 80px 40px;
  }

  .binary-grid {
    display: none;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }

  .section-what,
  .section-control,
  .section-plugins-wrap {
    padding: 70px 40px;
  }

  .section-plugins {
    flex-direction: column;
    gap: 40px;
  }

  .section-control {
    flex-direction: column;
    gap: 0;
  }

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

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

  .hero {
    padding-top: 100px;
    padding-left: 40px;
    padding-right: 40px;
    gap: 0;
  }

  .logo img {
    max-width: 150px;
  }

  html {
    overflow-x: hidden;
  }

  .hero-visual {
    transform: scale(0.7);
  }

  .footer-logo img {
    max-width: 160px;
  }

  footer {
    height: auto;
    padding: 64px 40px;
  }

  .plugins-left {
    flex: inherit;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
  }

  .plugins-left h2 br {
    display: none;
  }

  .plugins-left h2 {
    text-align: center;
    margin: 0;
    padding: 0;
  }

  .plugins-grid {
    width: 100%;
  }

  .control-visual {
    flex: inherit;
    width: 100%;
  }

  .control-visual img {
    width: 70%;
  }

  .section-control {
    padding-top: 100px !important;
  }

  .our-products {
    padding-top: 100px;
  }

  .our-products .section-control {
    align-items: center;
    position: relative;
  }

  .our-products .control-text h2,
  .our-products .control-text p {
    text-align: center;
  }

  .our-products .hero-btns {
    justify-content: center;
    align-self: center;
  }

  .control-visual-product img {
    max-width: 84%;
  }

  .control-visual-product {
    text-align: center;
  }

  .products_list .plugins-grid {
    gap: 32px;
    flex-direction: column;
  }

  .products_list .plugins-grid .plugin-card {
    max-width: 100%;
    padding: 40px 24px;
    gap: 40px;
  }

  .products_list .btn-red {
    position: relative;
    bottom: 0;
  }

  .products_list .plugin-icon img {
    width: 100%;
  }

  .our-products .control-text {
    padding-bottom: 0;
  }

  .control-visual-contact {
    padding-top: 40px;
  }

  .inner-page-bg-frame {
    opacity: 0.5;
  }
    .control-visual-product img {
    max-width: 90%;
    margin-top:100px;
  }
  .control-text h1{
    text-align: center;
  }
  .our-products .section-control{
    padding-bottom:0;
  }
}

@media (max-width: 600px) {
  .plugins-grid {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    gap: 24px;
  }

  .nav-links a {
    font-size: 15px;
  }

  .hero,
  .section-what,
  .section-control,
  .section-plugins-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero,
  .our-products .section-control {
    padding-top: 180px !important;
  }

  .hero-visual {
    transform: scale(0.4);
    z-index: 9;
    height: 400px;
  }

  .hero::before {
    display: none;
  }

  footer {
    height: auto;
    padding: 48px 20px;
  }

  .footer-nav a {
    font-size: 15px;
  }

  .footer-nav {
    margin-bottom: 32px;
  }

  .plugin-card p {
    font-size: 18px;
  }

  .section-what,
  .section-control,
  .section-plugins-wrap {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .control-text {
    padding-bottom: 40px;
    text-align: center;
  }

  .card h3 {
    font-size: 18px;
  }

  .card {
    padding: 24px 32px 40px 24px;
  }

  .section-what h2, #control-heading, 
  .section-what .subtitle {
    text-align: center;
  }

  .plugin-icon {
    width: 100px;
    height: 100px;
  }

  .plugin-icon img {
    width: 100%;
  }

  .our-products .control-text {
    min-width: 100%;
    padding-bottom: 0;
  }

  .our-products {
    padding-top: 0;
  }

  .contact-card {
    width: 100%;
    padding: 24px;
  }

  .contact-card .row {
    flex-direction: column;
  }

  .control-visual-contact {
    text-align: center;
    padding-top: 40px;
  }

  .contact-card label {
    text-align: left;
  }

  .contact-page-hero .control-text {
    padding-bottom: 0;
  }

  .hero-btns {
    flex-direction: column;
  }
  .product-info{
    padding-left: 0;
    padding-right: 0;
  }
  nav {
    padding: 12px 16px;
}
nav.scrolled {
    background: transparent;
    border-bottom-color:inherit;
    /* backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(2px); */
}

.scrolled ul.nav-links {
    display: none;
}
.logo img {
    max-width: 120px;
}
}

@media (max-width: 480px) {
  .hero-visual {
    transform: scale(0.35);
  }
}
