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

:root {
  --primary: #111111;
  --primary-light: #1a1a2e;
  --accent: #7b2d8e;
  --accent-dark: #5e1f6e;
  --accent-glow: rgba(123, 45, 142, 0.2);
  --bg: #0d0d0d;
  --bg-alt: #141414;
  --bg-dark: #080808;
  --bg-card: #1a1a1a;
  --text: #e8e8e8;
  --text-light: #a0a0a0;
  --text-muted: #666666;
  --border: #2a2a2a;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

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

ul {
  list-style: none;
}

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

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

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #a347b9 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  gap: 8px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 45, 142, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ========== SECTION COMMON ========== */
.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo-img {
  height: 28px;
  width: auto;
  filter: invert(1);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

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

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

.nav__link--cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(123, 45, 142, 0.08) 0%, transparent 40%);
  z-index: 0;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border-radius: 50px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
}

.hero__description {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

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

/* Phone Mockup */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: #222;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.08) inset;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #1a1a2e;
  border-radius: 28px;
  overflow: hidden;
}

.phone-app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-header {
  height: 60px;
  background: linear-gradient(135deg, var(--accent), #a347b9);
  flex-shrink: 0;
}

.app-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card {
  height: 80px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  animation: pulse-card 3s ease-in-out infinite;
}

.app-card.short {
  height: 50px;
  width: 60%;
}

.app-card:nth-child(2) {
  animation-delay: 0.5s;
}

.app-card:nth-child(3) {
  animation-delay: 1s;
}

.app-nav {
  height: 56px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 20px;
  flex-shrink: 0;
}

.app-nav-item {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
}

.app-nav-item.active {
  background: var(--accent);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-card {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ========== SERVICES ========== */
.services {
  padding: 120px 0;
  text-align: center;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ========== ABOUT ========== */
.about {
  padding: 120px 0;
  background: var(--bg-alt);
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Grid art */
.about__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__grid-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 320px;
  height: 320px;
}

.grid-block {
  border-radius: var(--radius);
  animation: morph 8s ease-in-out infinite;
}

.grid-block.b1 {
  background: var(--accent);
  border-radius: var(--radius) var(--radius) var(--radius) 60px;
  animation-delay: 0s;
}

.grid-block.b2 {
  background: #2a2a3e;
  border-radius: var(--radius) 60px var(--radius) var(--radius);
  animation-delay: 2s;
}

.grid-block.b3 {
  background: #3a3a4e;
  border-radius: 60px var(--radius) var(--radius) var(--radius);
  animation-delay: 4s;
}

.grid-block.b4 {
  background: linear-gradient(135deg, var(--accent), #a347b9);
  border-radius: var(--radius) var(--radius) 60px var(--radius);
  animation-delay: 6s;
}

@keyframes morph {
  0%, 100% { border-radius: 12px 12px 12px 60px; }
  25% { border-radius: 60px 12px 12px 12px; }
  50% { border-radius: 12px 60px 12px 12px; }
  75% { border-radius: 12px 12px 60px 12px; }
}

/* ========== TECH ========== */
.tech {
  padding: 120px 0;
  text-align: center;
}

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

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
}

.tech-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tech-item__icon {
  font-size: 2rem;
}

/* ========== PROCESS ========== */
.process {
  padding: 120px 0;
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
}

.process .section__tag {
  color: var(--accent);
}

.process .section__title {
  color: #fff;
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.process__step {
  text-align: center;
  position: relative;
}

.process__number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
  line-height: 1;
}

.process__step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.process__step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ========== CONTACT ========== */
.contact {
  padding: 120px 0;
  background: var(--bg-alt);
  text-align: center;
}

.contact__box {
  max-width: 640px;
  margin: 0 auto;
}

.contact__form {
  margin-top: 40px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
  height: 24px;
  margin-bottom: 16px;
  filter: invert(1);
}

/* ========== SECURITY ========== */
.security {
  padding: 120px 0;
  background: var(--bg-alt);
}

.security__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.security__content {
  position: sticky;
  top: 120px;
}

.security__text {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-top: 8px;
}

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

.security__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.security__item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.security__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.security__icon svg {
  stroke: var(--accent);
}

.security__item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

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

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer__links h4,
.footer__contact h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer__links ul li {
  margin-bottom: 10px;
}

.footer__links ul li a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer__links ul li a:hover {
  color: var(--accent);
}

.footer__contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer__contact ul li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
  stroke: var(--accent);
}

.footer__contact ul li a {
  transition: var(--transition);
}

.footer__contact ul li a:hover {
  color: var(--accent);
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
}

.footer__info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__description {
    margin: 0 auto 36px;
  }

  .hero__buttons {
    justify-content: center;
  }

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

  .about__container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    order: -1;
  }

  .security__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

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

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

  .about__stats {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .hero__title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .phone-mockup {
    width: 220px;
    height: 440px;
  }

  .about__grid-art {
    width: 240px;
    height: 240px;
  }

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