/* ============================================
   AGILITY LLC — Design System
   Bold Gradient Theme
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --gradient-primary: linear-gradient(135deg, #6e3aff 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-hero: linear-gradient(135deg, #1a0533 0%, #2d1b69 25%, #3b2f80 50%, #1e3a8a 75%, #0f172a 100%);
  --gradient-cta: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  --gradient-card: linear-gradient(135deg, rgba(139,92,246,0.1) 0%, rgba(59,130,246,0.1) 100%);

  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f0a1a;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-white: #ffffff;
  --color-text-muted: #94a3b8;
  --color-purple: #8b5cf6;
  --color-blue: #3b82f6;
  --color-cyan: #06b6d4;
  --color-border: #e2e8f0;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(139,92,246,0.3);

  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.4s ease;
}

.nav--hero {
  background: transparent;
}

.nav--scrolled {
  background: rgba(15, 10, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139,92,246,0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text-white);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-cta);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-cta);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: var(--color-text-white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-text-white);
}

.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  padding: 10px 24px;
  background: var(--gradient-cta);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(139, 92, 246, 0.5);
  border-radius: 50%;
  animation: float-particle 8s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-60px) scale(1.5); opacity: 0.8; }
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.hero__glow--1 {
  top: -200px;
  right: -100px;
  background: #8b5cf6;
}

.hero__glow--2 {
  bottom: -200px;
  left: -100px;
  background: #3b82f6;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero__text {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  color: var(--color-text-white);
  margin-bottom: 20px;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease;
}

.hero__title span {
  background: linear-gradient(135deg, #c4b5fd 0%, #93c5fd 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.btn--outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.25);
}

.btn--outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  transform: translateY(-3px);
}

.btn--gradient {
  background: var(--gradient-cta);
  color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}

.btn--gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.hero__phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease 0.3s both;
}

.hero__phone {
  width: 240px;
  height: 480px;
  background: linear-gradient(145deg, #1e1b4b, #312e81);
  border-radius: 36px;
  border: 3px solid rgba(139,92,246,0.3);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero__phone--main {
  z-index: 2;
  transform: translateY(-20px);
}

.hero__phone--left {
  position: absolute;
  left: -100px;
  transform: rotate(-12deg) scale(0.85);
  opacity: 0.6;
}

.hero__phone--right {
  position: absolute;
  right: -100px;
  transform: rotate(12deg) scale(0.85);
  opacity: 0.6;
}

.hero__phone-screen {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.hero__phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__phone-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}

.hero__phone-app-name {
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero__phone-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* --- Stats Bar --- */
.stats {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stats__number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats__label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* --- Section Styles --- */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section__label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-purple);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: inherit;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.section--dark .section__subtitle {
  color: rgba(255,255,255,0.6);
}

/* --- App Cards (Portfolio) --- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.app-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139,92,246,0.3);
}

.app-card__image {
  height: 200px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.app-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.app-card:hover .app-card__icon {
  transform: scale(1.1);
}

.app-card__body {
  padding: 28px;
}

.app-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-card__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.app-card__platforms {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-purple);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}

.app-card__link:hover {
  gap: 10px;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(139,92,246,0.25);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card__text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.testimonial-card__name {
  font-weight: 600;
  color: white;
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* --- CTA Section --- */
.cta {
  padding: 100px 0;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
}

.cta__glow--1 {
  top: -100px;
  left: 20%;
  background: #8b5cf6;
}

.cta__glow--2 {
  bottom: -100px;
  right: 20%;
  background: #3b82f6;
}

.cta__content {
  position: relative;
  z-index: 2;
}

.cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background: #0a0612;
  color: rgba(255,255,255,0.6);
  padding: 72px 0 32px;
  border-top: 1px solid rgba(139,92,246,0.1);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  padding: 6px 0;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-purple);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer__social:hover {
  background: var(--gradient-cta);
  color: white;
  transform: translateY(-3px);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--gradient-hero);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
  top: -200px;
  right: -100px;
  background: #8b5cf6;
}

.page-hero__title {
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.page-hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.about-image__icon {
  font-size: 6rem;
  opacity: 0.8;
}

.about-text h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.value-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139,92,246,0.3);
}

.value-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.value-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.contact-info__value {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--color-text);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__phones {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15,10,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(139,92,246,0.15);
  }

  .nav__links.active {
    display: flex;
  }

  .nav__link {
    padding: 12px 0;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }

  .nav__cta {
    margin-top: 12px;
    text-align: center;
    width: 100%;
  }

  .nav__toggle {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stats__number {
    font-size: 1.8rem;
  }
}
