/* ═══════════════════════════════════════════════════
   PRYM-SOFT — Premium Software House
   Brand: #cd1f36 (red) + #320f32 (dark purple)
   Fonts: Montserrat (display) + Comfortaa (body)
   v2.0 — Enhanced animations & micro-interactions
   ═══════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Comfortaa:wght@300;400;500;600;700&display=swap");

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

:root {
  --red: #cd1f36;
  --red-light: #e8435a;
  --red-glow: rgba(205, 31, 54, 0.35);
  --purple: #320f32;
  --purple-deep: #1a0520;
  --bg: #08050d;
  --bg-card: #110d18;
  --bg-card-hover: #1a1424;
  --text: #ede9f4;
  --text-dim: #9b93a8;
  --text-muted: #6b6278;
  --border: rgba(205, 31, 54, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --gradient: linear-gradient(135deg, #320f32, #cd1f36);
  --gradient-soft: linear-gradient(135deg, rgba(50,15,50,0.4), rgba(205,31,54,0.3));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Comfortaa', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

/* ─── NOISE OVERLAY ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── AURORA BLOBS ─── */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform;
}
.aurora-blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #cd1f36, transparent 70%);
  top: -10%; right: -5%;
  animation: auroraMove1 12s ease-in-out infinite;
}
.aurora-blob--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c1a8e, transparent 70%);
  bottom: -15%; left: 10%;
  animation: auroraMove2 15s ease-in-out infinite;
}
.aurora-blob--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #e8435a, transparent 70%);
  top: 30%; left: 50%;
  animation: auroraMove3 10s ease-in-out infinite;
}
@keyframes auroraMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 60px) scale(1.2); }
  66% { transform: translate(40px, -40px) scale(0.8); }
}
@keyframes auroraMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -80px) scale(1.3); }
  66% { transform: translate(-50px, 30px) scale(0.9); }
}
@keyframes auroraMove3 {
  0%, 100% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(-100px, 50px) scale(1.2); }
}

/* ─── HERO PARTICLES CANVAS ─── */
.hero-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  pointer-events: none;
}

/* ─── CHARACTER REVEAL ─── */
.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(-80deg);
  animation: charReveal 0.7s var(--ease-out) forwards;
}
@keyframes charReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title {
  perspective: 800px;
}

/* ─── 3D TILT CARDS ─── */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}
[data-tilt] > * {
  transform: translateZ(20px);
}
.tilt-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}
[data-tilt]:hover .tilt-glow {
  opacity: 1;
}

/* ─── MAGNETIC BUTTONS ─── */
.btn--magnetic {
  will-change: transform;
  transition: transform 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── GLOW CURSOR ─── */
.glow-cursor {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205,31,54,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  will-change: left, top;
}

/* ─── HEADER ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}
.header.scrolled {
  padding: 12px 0;
  background: rgba(8, 5, 13, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s, transform 0.3s var(--ease-spring);
}
.logo-img:hover { opacity: 0.8; transform: scale(1.05); }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: width 0.4s var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}
.lang-switch button {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}
.lang-switch button.active {
  background: var(--red);
  color: #fff;
}
.lang-switch button:hover:not(.active) { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.burger.active span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:last-child { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,5,13,0.95) 0%, rgba(8,5,13,0.55) 30%, transparent 55%),
    linear-gradient(135deg, rgba(8,5,13,0.92) 0%, rgba(50,15,50,0.75) 40%, rgba(205,31,54,0.25) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(205,31,54,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205,31,54,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

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

.hero-badge {
  animation: heroFadeUp 0.8s var(--ease-out) both;
  animation-delay: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-light);
  padding: 8px 16px;
  border: 1px solid rgba(205,31,54,0.25);
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(205,31,54,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(205,31,54,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(205,31,54,0); }
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .line:last-child .char {
  background: linear-gradient(
    135deg,
    #cd1f36 0%,
    #e8435a 25%,
    #ff6b81 50%,
    #e8435a 75%,
    #cd1f36 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: charReveal 0.7s var(--ease-out) forwards, shimmerText 4s ease-in-out infinite;
}
@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ─── BUTTONS ─── */
.btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(205,31,54,0.25);
}
/* Shine sweep */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s var(--ease-out);
}
.btn--primary:hover::after {
  left: 120%;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(205,31,54,0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  border-color: rgba(205,31,54,0.3);
  background: rgba(205,31,54,0.05);
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }
.btn--lg { padding: 18px 48px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ─── STATS BAR ─── */
.stats-bar {
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: rgba(17,13,24,0.6);
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
  opacity: 0.4;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s var(--ease-out);
}
.stat:hover {
  transform: translateY(-4px);
}
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  position: relative;
}
.stat-num::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: width 0.5s var(--ease-out);
}
.stat:hover .stat-num::after {
  width: 100%;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  transition: color 0.3s;
}
.stat:hover .stat-label {
  color: var(--text-dim);
}

/* ─── SECTIONS ─── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── PRODUCTS ─── */
.products {
  padding: 100px 0 120px;
  position: relative;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
/* Animated gradient top border */
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--red), var(--red-light), var(--red), var(--purple));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.5s;
  animation: borderGlow 3s linear infinite;
}
/* Corner glow on hover */
.product-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205,31,54,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}
.product-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(205,31,54,0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(205,31,54,0.06);
}
.product-card:hover::before { opacity: 1; }
.product-card:hover::after { opacity: 1; }

@keyframes borderGlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.product-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #fff;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}
.product-card:hover .product-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 4px 20px rgba(205,31,54,0.25);
}
.product-icon svg { width: 28px; height: 28px; }

.product-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.product-card:hover .product-name {
  color: #fff;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.7;
}
.product-features { list-style: none; margin-bottom: 24px; }
.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 5px 0;
  transition: transform 0.3s var(--ease-out), color 0.3s;
}
.product-card:hover .product-features li {
  color: var(--text);
}
.product-features li svg { color: var(--red); flex-shrink: 0; }

.product-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--red-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease-out), color 0.3s;
}
.product-link:hover { gap: 12px; color: #ff6b81; }

/* ─── SHOWCASE ─── */
.showcase {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}
.showcase-bg {
  position: absolute;
  inset: 0;
}
.showcase-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}
.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8,5,13,0.95) 0%,
    rgba(8,5,13,0.85) 50%,
    rgba(8,5,13,0.4) 100%
  );
}
.showcase-content {
  position: relative;
  z-index: 2;
}
.showcase-text {
  max-width: 560px;
}
.showcase-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.showcase-desc {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.75;
}
.showcase-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.showcase-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease-out);
}
.showcase-point:hover {
  transform: translateX(6px);
}
.showcase-point svg { color: var(--red-light); flex-shrink: 0; }

/* ─── TECHNOLOGY / AI ─── */
.tech {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.tech-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.15;
}
.tech-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 70%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tech-card {
  background: rgba(17,13,24,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
/* Subtle animated gradient border */
.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(205,31,54,0.3) 50%, transparent 70%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  animation: techBorderShift 6s ease-in-out infinite;
}
.tech-card:hover::before { opacity: 1; }

@keyframes techBorderShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.tech-card:hover {
  border-color: rgba(205,31,54,0.15);
  background: rgba(26,20,36,0.9);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.25);
}
.tech-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--red-light);
  transition: transform 0.4s var(--ease-spring), background 0.4s;
}
.tech-card:hover .tech-card-icon {
  transform: scale(1.12);
  background: var(--gradient);
  color: #fff;
}
.tech-card-icon svg { width: 22px; height: 22px; }
.tech-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.tech-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── PROCESS ─── */
.process {
  padding: 120px 0;
  position: relative;
}
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.process-image {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.process-image:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(205,31,54,0.1);
}
/* Red glow under image */
.process-image::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 20%;
  width: 60%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(205,31,54,0.2), transparent);
  filter: blur(20px);
  z-index: -1;
}
.process-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.process-image:hover img {
  transform: scale(1.05);
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
  position: relative;
}
/* Connecting vertical line */
.process-steps::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), rgba(205,31,54,0.1));
  border-radius: 1px;
  opacity: 0.3;
}
.process-step {
  display: flex;
  gap: 20px;
  position: relative;
  transition: transform 0.3s var(--ease-out);
}
.process-step:hover {
  transform: translateX(6px);
}
.step-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 36px;
  text-align: center;
}
.step-body h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}
.step-body p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  text-align: center;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
}
.cta-banner-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,15,50,0.92), rgba(205,31,54,0.5));
  animation: ctaGradientShift 10s ease-in-out infinite;
}
@keyframes ctaGradientShift {
  0%, 100% { background: linear-gradient(135deg, rgba(50,15,50,0.92), rgba(205,31,54,0.5)); }
  50% { background: linear-gradient(135deg, rgba(205,31,54,0.5), rgba(50,15,50,0.92)); }
}
.cta-banner-content {
  position: relative;
  z-index: 2;
}
.cta-banner-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.cta-banner-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ─── CONTACT ─── */
.contact {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-desc {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.7;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease-out), color 0.3s;
}
.contact-item:hover {
  transform: translateX(4px);
  color: var(--text);
}
.contact-item svg { color: var(--red); flex-shrink: 0; }
.contact-item a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}
.contact-item a:hover { color: var(--red-light); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  transition: border-color 0.5s, box-shadow 0.5s;
}
.contact-form:focus-within {
  border-color: rgba(205,31,54,0.15);
  box-shadow: 0 0 60px rgba(205,31,54,0.05);
}
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
  gap: 20px;
  animation: successFadeIn 0.6s ease;
}
.success-icon svg {
  animation: successCheck 0.8s ease 0.2s both;
}
.success-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #22c55e;
  margin: 0;
}
.success-msg {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 360px;
  line-height: 1.7;
  margin: 0;
}
@keyframes successFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes successCheck {
  0% { opacity: 0; transform: scale(0.5); }
  60% { transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: 'Comfortaa', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(205,31,54,0.4);
  background: rgba(205,31,54,0.03);
  box-shadow: 0 0 20px rgba(205,31,54,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── FOOTER ─── */
.footer {
  padding: 60px 0 24px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.3;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.7;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--red-light);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* ─── MOBILE ─── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .tech-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .glow-cursor { display: none; }
}

@media (max-width: 768px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8,5,13,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
    z-index: 99;
  }
  .nav.open { opacity: 1; pointer-events: all; }
  .nav a { font-size: 1.2rem; color: var(--text); }
  .nav a::after { display: none; }
  .lang-switch { margin-left: 0; margin-top: 16px; }

  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero-title { font-size: 2.2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-scroll-hint { display: none; }
  .hero::after { width: 250px; height: 250px; }

  .stats-grid { gap: 32px; }
  .stat-num { font-size: 1.8rem; }

  .products, .tech, .contact, .process { padding: 80px 0; }
  .showcase { padding: 80px 0; min-height: auto; }
  .showcase-overlay {
    background: linear-gradient(
      180deg,
      rgba(8,5,13,0.95) 0%,
      rgba(8,5,13,0.85) 60%,
      rgba(8,5,13,0.7) 100%
    );
  }
  .section-title { font-size: 1.8rem; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .contact::after { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner { padding: 70px 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .stats-grid { flex-direction: column; gap: 20px; }
  .product-card { padding: 28px 20px; }
}
