:root {
  --bg: #f8fbff;
  --surface: #f4f6ff;
  --surface-dark: rgba(255, 255, 255, 0.92);
  --text: #0f172a;
  --muted: #54618e;
  --accent: #5d6cf9;
  --accent-dark: #3f4ce3;
  --accent-soft: rgba(91, 108, 249, 0.16);
  --border: rgba(121, 132, 203, 0.18);
  --shadow: 0 30px 90px rgba(15, 23, 42, 0.07);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(93, 108, 249, 0.16), transparent 20%), radial-gradient(circle at 80% 10%, rgba(91, 108, 249, 0.06), transparent 12%), var(--bg);
  line-height: 1.7;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(121, 132, 203, 0.12);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-dark);
}

.header-btn {
  padding: 0.95rem 1.35rem;
}

.section {
  padding: 5.5rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.bg-alt {
  background: rgba(255, 255, 255, 0.92);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.25rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-header h2 {
  font-size: clamp(2rem, 2.6vw, 3rem);
  margin: 1rem 0 0.75rem;
  line-height: 1.05;
}

.section-header p {
  color: var(--muted);
  margin: 0;
  max-width: 40rem;
  margin-inline: auto;
}

.hero-section {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 12%;
  width: 22rem;
  height: 22rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(93, 108, 249, 0.12), transparent 55%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

.preview-card {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(121, 132, 203, 0.14);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.preview-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.preview-card .btn-secondary {
  width: fit-content;
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 4.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-text {
  margin: 1.75rem 0 2.25rem;
  max-width: 56rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(93, 108, 249, 0.16);
  border-radius: calc(var(--radius) + 6px);
  padding: 2.4rem;
  box-shadow: 0 40px 110px rgba(15, 23, 42, 0.08);
}

.hero-card::before {
  content: '';
  position: absolute;
  right: -4rem;
  top: -3rem;
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle, rgba(91, 108, 249, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-card::after {
  content: '';
  position: absolute;
  left: -4rem;
  bottom: -3rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(91, 108, 249, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-card-title {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-weight: 800;
}

.hero-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-list li {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.about-grid,
.services-grid,
.projects-grid,
.skills-grid,
.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.about-grid {
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
}

.about-copy h3 {
  margin-top: 0;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: 1rem;
}

.feature-list i {
  margin-top: 0.2rem;
  color: var(--accent);
}

.about-info {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  padding: 1.8rem;
  border: 1px solid rgba(121, 132, 203, 0.15);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.info-card span {
  display: block;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  border: 1px solid rgba(121, 132, 203, 0.16);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.08);
  border-color: rgba(93, 108, 249, 0.24);
}

.service-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(91, 108, 249, 0.14);
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.service-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
}

.service-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

.service-benefit {
  font-weight: 700;
  color: var(--text);
}

.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border: 1px solid rgba(121, 132, 203, 0.14);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.12);
  border-color: rgba(93, 108, 249, 0.2);
}

.project-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(91, 108, 249, 0.12);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.project-card h3 {
  margin: 0 0 0.85rem;
}

.skill-group {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(121, 132, 203, 0.14);
}

.skill-group h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.skill-tags span {
  display: inline-flex;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(91, 108, 249, 0.12);
  color: var(--text);
  font-size: 0.95rem;
}

.contact-grid {
  grid-template-columns: 1fr 1.2fr;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(121, 132, 203, 0.14);
  border-radius: 24px;
}

.contact-card i {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: rgba(91, 108, 249, 0.14);
  color: var(--accent);
  border-radius: 16px;
}

.contact-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.contact-card a {
  color: var(--text);
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.98);
  padding: 2.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(121, 132, 203, 0.14);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.06);
}

.contact-form label {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(121, 132, 203, 0.22);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(93, 108, 249, 0.4);
  box-shadow: 0 0 0 4px rgba(91, 108, 249, 0.08);
}

.form-feedback {
  margin: 0;
  min-height: 1.5rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.55rem;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 18px 40px rgba(93, 108, 249, 0.22);
}

.btn-secondary {
  background: rgba(91, 108, 249, 0.08);
  border: 1px solid rgba(91, 108, 249, 0.12);
  color: var(--accent-dark);
}

.site-footer {
  padding: 2.5rem 0;
  background: rgba(255, 255, 255, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .hero-grid,
  .about-grid,
  .services-grid,
  .projects-grid,
  .contact-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0.7rem 0;
  }

  .hero-section {
    padding-top: 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 7vw, 3.2rem);
  }

  .hero-card,
  .service-card,
  .project-card,
  .skill-group,
  .contact-form,
  .contact-card,
  .info-card {
    padding: 1.6rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
