:root {
  --bg: #f5f3ff;
  --bg-2: #faf8ff;
  --ink: #1e1b4b;
  --ink-soft: #4b4a6a;
  --muted: #6b7280;
  --line: #e8e5f7;
  --card: #ffffff;
  --primary: #1e1b4b;
  --primary-hover: #2d2a6b;
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --shadow-sm: 0 1px 2px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 6px 24px rgba(99, 102, 241, 0.10);
  --shadow-lg: 0 20px 50px rgba(99, 102, 241, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0; color: var(--ink-soft); }

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

/* background blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.blob-1 { width: 480px; height: 480px; background: #e0d7ff; top: -120px; left: -100px; }
.blob-2 { width: 420px; height: 420px; background: #d6e0ff; top: 30%; right: -120px; }
.blob-3 { width: 380px; height: 380px; background: #ede9fe; bottom: 10%; left: -80px; }
.blob-4 { width: 360px; height: 360px; background: #ddd6fe; bottom: -100px; right: 10%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(245, 243, 255, 0.75);
  border-bottom: 1px solid rgba(232, 229, 247, 0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-name { letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  padding: 8px 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--ink-soft);
}
.hero-art {
  display: flex;
  justify-content: center;
}
.hero-orb {
  width: min(420px, 90%);
  filter: drop-shadow(0 30px 60px rgba(99, 102, 241, 0.35));
  animation: float 8s ease-in-out infinite;
}
.hero-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(99, 102, 241, 0.25));
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Sections */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-lede {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 16px;
  color: var(--ink-soft);
}
.services .section-title,
.about .section-title {
  margin-bottom: 48px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #d6cffb;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  color: var(--accent-2);
}
.service-icon svg { width: 26px; height: 26px; }
.service-icon.ai { color: #7c3aed; }
.service-icon.backend { color: #4f46e5; }
.service-icon.saas { color: #6366f1; }
.service-icon.cloud { color: #2563eb; }
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
  color: var(--muted);
}

/* Tech Stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.tech-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.tech-card svg,
.tech-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.tech-card span {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #ede9fe;
  aspect-ratio: 4 / 3;
}
.about-image-frame svg,
.about-image-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.about-copy h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  margin-bottom: 18px;
}
.about-copy p + p { margin-top: 14px; }
.about-copy p { font-size: 16px; }

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 700;
  margin-bottom: 14px;
}
.contact-copy p { font-size: 16px; margin-bottom: 22px; }
.contact-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-meta li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}
.contact-meta svg { width: 18px; height: 18px; color: var(--accent-2); }
.contact-meta a:hover { color: var(--ink); text-decoration: underline; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: #faf9ff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status {
  font-size: 14px;
  margin: 0;
  min-height: 20px;
}
.form-status.success { color: #047857; }
.form-status.error { color: #b91c1c; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 28px 0;
  background: rgba(245, 243, 255, 0.6);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 14px; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero { padding: 56px 0 36px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(245, 243, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .btn { margin-top: 10px; align-self: flex-start; }

  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { justify-content: center; text-align: center; }
}
