:root {
  --primary: #5b4cf0;
  --secondary: #a24cf0;
  --accent: #22c1c3;
  --grad: linear-gradient(135deg, var(--primary), var(--secondary));
  --text: #1b1b2f;
  --muted: #5f6280;
  --bg: #ffffff;
  --bg-alt: #f6f5ff;
  --border: #e7e5f7;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 40, 160, 0.10);
  --shadow-lg: 0 20px 50px rgba(60, 40, 160, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(91, 76, 240, 0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(91, 76, 240, 0.45); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; background: var(--bg-alt); }
.btn-block { width: 100%; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 500; }
.logo strong { font-weight: 800; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 30px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: radial-gradient(ellipse at top left, #efeaff 0%, #fff 60%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; }
.blob-1 { width: 420px; height: 420px; background: #b9a8ff; top: -80px; right: -100px; animation: drift 12s ease-in-out infinite; }
.blob-2 { width: 320px; height: 320px; background: #8ff0f1; bottom: -60px; left: -80px; animation: drift 14s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(40px, 30px) scale(1.08); } }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); font-size: .85rem; font-weight: 600;
  color: var(--primary); margin-bottom: 20px; box-shadow: var(--shadow);
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 22px 0 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual { position: relative; }
.browser {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--border);
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform .5s;
}
.hero-visual:hover .browser { transform: perspective(1000px) rotateY(0) rotateX(0); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f4f3fb; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; }
.browser-bar i:nth-child(2) { background: #ffd166; }
.browser-bar i:nth-child(3) { background: #06d6a0; }
.browser-bar span { margin-left: 12px; font-size: .8rem; color: var(--muted); background: #fff; padding: 3px 12px; border-radius: 6px; }
.browser-body { padding: 28px; }
.sk { border-radius: 8px; background: linear-gradient(90deg, #eeeafd 25%, #f8f6ff 50%, #eeeafd 75%); background-size: 200% 100%; animation: shimmer 2s infinite; }
.sk-title { height: 26px; width: 60%; margin-bottom: 14px; background: var(--grad); opacity: .85; animation: none; }
.sk-line { height: 12px; width: 90%; margin-bottom: 10px; }
.sk-line.short { width: 65%; margin-bottom: 24px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sk-card { height: 90px; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.float-card {
  position: absolute; background: #fff; padding: 10px 16px; border-radius: 12px;
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem;
  animation: float 4s ease-in-out infinite;
}
.fc-1 { top: -18px; left: -20px; }
.fc-2 { bottom: -18px; right: -10px; animation-delay: 2s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.eyebrow.light { color: #d7d1ff; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card {
  background: #fff; padding: 40px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card.featured { background: var(--grad); color: #fff; border: none; }
.service-card.featured p, .service-card.featured li { color: rgba(255, 255, 255, .9); }
.service-card .icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.8rem; background: var(--bg-alt); margin-bottom: 22px;
}
.service-card.featured .icon { background: rgba(255, 255, 255, .18); }
.service-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); margin-bottom: 20px; }
.service-card ul { list-style: none; }
.service-card li { padding: 6px 0 6px 28px; position: relative; color: var(--muted); }
.service-card li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px; border-radius: 50%; font-size: .7rem; font-weight: 800;
  display: grid; place-items: center; background: var(--bg-alt); color: var(--primary);
}
.service-card.featured li::before { background: rgba(255, 255, 255, .25); color: #fff; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: #fff; padding: 30px 26px; border-radius: var(--radius);
  border: 1px solid var(--border); position: relative; transition: transform .3s;
}
.step:hover { transform: translateY(-4px); }
.step .num { font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h4 { font-size: 1.15rem; margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--muted); margin-top: 18px; }
.about-points { display: grid; gap: 18px; }
.point {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-alt); padding: 22px; border-radius: var(--radius);
  transition: transform .3s;
}
.point:hover { transform: translateX(6px); }
.point > span { font-size: 1.6rem; }
.point h4 { margin-bottom: 2px; }
.point p { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-section { padding-top: 40px; }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: linear-gradient(135deg, #2d2378, #5b4cf0 55%, #a24cf0);
  color: #fff; padding: 56px; border-radius: 28px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); top: -100px; right: -80px;
}
.contact-info p { color: rgba(255, 255, 255, .85); margin: 14px 0 26px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-list span {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .15);
}
.contact-list a:hover { text-decoration: underline; }
.contact-form {
  position: relative; z-index: 1;
  background: #fff; color: var(--text); padding: 30px; border-radius: var(--radius);
  display: grid; gap: 14px;
}
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fbfbff; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91, 76, 240, .12);
}
.contact-form .invalid { border-color: #e5484d; }
.form-note { font-size: .88rem; min-height: 1.2em; text-align: center; }
.form-note.error { color: #e5484d; }
.form-note.ok { color: #12a150; }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.footer-inner a:last-child:hover { color: var(--primary); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .about, .contact-card { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin: 20px auto 0; width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 10px 16px 20px;
    background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; width: 100%; text-align: center; }
  .nav-links .btn { margin-top: 8px; }
  .services, .steps { grid-template-columns: 1fr; }
  .service-card, .contact-card { padding: 28px; }
  .contact-form { padding: 22px; }
  .section { padding: 72px 0; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
