/* ROOT VARIABLES */
:root {
  --primary: #0066ff;
  --primary-rgb: 0, 102, 255;
  --secondary: #00d9ff;
  --secondary-rgb: 0, 217, 255;
  --dark: #0a0e27;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --error: #ef4444;
  --gradient: linear-gradient(135deg, #0066ff 0%, #00d9ff 100%);
  --shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
}

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 24px;
}

body {
  font-family:
    "DM Sans",
    -apple-system,
    sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: #ffffff;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

h1,
h2,
h3 {
  font-family: "Clash Display", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* SHARED: SECTION HEADER */
.common-header {
  text-align: center;
  margin-bottom: 60px;
}

.common-header span {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.1) 0%,
    rgba(0, 217, 255, 0.1) 100%
  );
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.common-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

.common-header p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* SHARED: CTA BUTTON */
.cta-button {
  background: var(--gradient);
  color: white;
  height: 40px;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
}

/* HEADER */
header {
  position: fixed;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 30px);
  max-width: 1150px;
  background: rgba(10, 14, 39, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50px;
  transition: all 0.3s ease;
  padding: 0 10px;
  box-shadow: 0 0px 20px rgba(107, 114, 128, 0.5);
  border: 1.5px solid var(--light-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-brand {
  font-family: "Clash Display", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px 0px;
}

.header-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.header-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* NAV */
nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
  margin: 0;
  padding: 0;
  position: relative;
}

nav li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 7px 15px;
  border-radius: 50px;
  transition: all 0.25s ease;
  position: relative;
  display: block;
  overflow: hidden;
}

nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #0066ff, #00d9ff);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.35s ease;
}

nav a:hover:not(.active)::after {
  width: 60%;
}

/* MOBILE NAV MENU */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-menu span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-menu .cta-button {
  display: none;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 102, 255, 0.1) 0%,
    transparent 70%
  );
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(0, 217, 255, 0.1) 0%,
    transparent 70%
  );
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite 4s;
}

.hero .cta-button {
  height: 50px;
}

.hero-content {
  max-width: 1200px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.1) 0%,
    rgba(0, 217, 255, 0.1) 100%
  );
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 30px;
  animation: fadeInDown 0.6s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.secondary-button {
  background: white;
  color: var(--dark);
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid #e5e7eb;
  transition: all 0.3s;
  display: inline-block;
}

.secondary-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* SERVICES SECTION */
.services-section {
  padding: 100px 20px;
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  border: 2px solid #f3f4f6;
  transition: all 0.3s;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.15);
}

.service-card:nth-child(2) {
  background: linear-gradient(135deg, #0066ff, #00d9ff) border-box;
  color: white;
}

.service-card:nth-child(2) h3,
.service-card:nth-child(2) p,
.service-card:nth-child(2) li {
  color: white;
}

.service-chip {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.25);
  z-index: 3;
  pointer-events: none;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-features li {
  color: #6b7280;
  font-size: 0.95rem;
}

.service-card:nth-child(2) .service-features li {
  color: rgba(255, 255, 255, 0.9);
}

/* APPS SECTION */
.apps-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.common-header.white h2 {
  color: white;
}

.common-header.white p {
  color: rgba(255, 255, 255, 0.7);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1260px;
  margin: 0 auto;
}

.app-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0066ff 0%, #ff3366 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 32px;
}

.app-card:hover::before {
  opacity: 0.1;
}

.app-card > * {
  position: relative;
  z-index: 1;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}

.app-card:hover .app-icon {
  transform: scale(1.1) rotate(5deg);
}

.app-info h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: white;
}

.app-category {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.app-description {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* TOOLS SECTION */
.tools-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 2px solid #f3f4f6;
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.12);
  transform: translateY(-4px);
}

.tool-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.08) 0%,
    rgba(0, 217, 255, 0.08) 100%
  );
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-info {
  flex: 1;
}

.tool-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.tool-info p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

.tool-arrow {
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

.tools-section .cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  height: 50px;
  padding: 0 30px;
  text-decoration: none;
}

/* CONTACTS SECTION */
.contacts-section {
  padding: 100px 20px;
  background: white;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contacts-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
}

.contacts-section p {
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 40px;
  line-height: 1.8;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.contact-card {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-radius: 24px;
  padding: 40px 30px;
  border: 2px solid #f3f4f6;
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.1);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.contact-card p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.contact-card a:hover {
  gap: 12px;
}

/* FOOTER */
.footer {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  position: relative;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0;
}

.footer-brand p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 350px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links-list a {
  text-align: left;
  width: auto;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

.footer-links a::before {
  content: "→";
  opacity: 1;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  margin-right: 0.4rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-links a:hover::before {
  color: var(--secondary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}
.footer-social a:hover {
  background: var(--gradient);
}

.scroll-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scroll-top:hover {
  background: var(--gradient);
}

/* ANIMATIONS */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

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

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

/* RESPONSIVE: hover-capable devices */
@media (hover: hover) and (pointer: fine) {
  .app-card:hover,
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
  }
}

/* RESPONSIVE: max-width 1024px */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

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

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

/* RESPONSIVE: max-width 968px */
@media (max-width: 968px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }

  .footer-brand-header {
    justify-content: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-links {
    align-items: center;
    text-align: center;
  }
}

/* RESPONSIVE: max-width 768px */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 120px 20px 60px;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand-header {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 12px;
    display: none;
    flex-direction: column;
    width: calc(100% - 40px);
    margin-top: 15px;
    box-shadow: 0 0px 40px rgba(0, 0, 0, 0.4);
    isolation: isolate;
  }

  .nav-menu.active {
    display: flex;
  }
}

/* RESPONSIVE: max-width 640px */
@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 4rem 2rem 2rem;
  }

  .footer-links {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* RESPONSIVE: max-width 480px */
@media (max-width: 480px) {
  .nav-menu .cta-button {
    display: block;
    margin-top: 10px;
  }

  .header-mobile .cta-button {
    display: none;
  }
}

/* ─────────────────────────────
   SHARED HERO LEFT
───────────────────────────── */

.hero-left {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 0;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: heroFade 0.6s ease both;
}

.hero-label::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 24px;
  animation: heroFade 0.7s 0.1s ease both;
}

.hero-num {
  font-size: clamp(4rem, 8vw, 7rem);
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
}

.hero-desc {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 420px;
  line-height: 1.8;
  margin-bottom: 36px;
  animation: heroFade 0.7s 0.25s ease both;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroFade 0.7s 0.4s ease both;
}

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

@media (max-width: 960px) {
  .hero-left {
    width: 100%;
    max-width: 100%;
  }
}