:root {
  --indigo: #4338CA;
  --sky: #0EA5E9;
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --accent: #A78BFA;
  --border: #E5E7EB;
  --shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fafb 0%, #fefefe 35%, #f3f6fb 100%);
  line-height: 1.6;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

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

main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section {
  width: 100%;
  margin: 0;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-header {
  display: grid;
  gap: 0.75rem;
  margin: 0 auto 2rem;
  max-width: 1100px;
}

.section-header h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.section-header h2::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--indigo), var(--sky));
  box-shadow: 0 6px 12px rgba(67, 56, 202, 0.25);
}

.section-subtitle {
  color: var(--muted);
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
  word-break: break-word;
}

h1 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 2.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.5rem 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, color 0.3s ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.25), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn.is-hovering::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--sky));
  color: #fff;
  box-shadow: 0 10px 30px rgba(67, 56, 202, 0.25);
}

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

.btn-text {
  color: var(--indigo);
  padding: 0.5rem 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
}

.btn-outline:hover {
  background: rgba(67, 56, 202, 0.08);
}

.header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  backdrop-filter: saturate(180%) blur(18px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  overflow: visible;
}

.header--scrolled {
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.98);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: clamp(0.95rem, 1.25vw, 1.1rem) clamp(1rem, 3.5vw, 2.25rem);
}

.brand {
  flex-shrink: 0;
  max-width: 240px;
}

.brand__logo {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  flex: 1 1 0;
  display: none;
  justify-content: center;
}

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
}

.nav__link {
  color: var(--muted);
  font-weight: 600;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--indigo), var(--sky));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav__link.active::after,
.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cta-btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.menu-btn span:nth-child(2) {
  width: 16px;
}

.menu-btn[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.15);
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.is-open {
  max-height: 360px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu__links {
  list-style: none;
  margin: 0;
  padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-menu__link {
  display: block;
  font-weight: 600;
  color: var(--text);
  padding: 0.8rem 0.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu__link:last-child {
  border-bottom: none;
}

.mobile-menu__link.active,
.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  color: var(--indigo);
}

@media (max-width: 1024px) {
  .header__inner {
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
  }

  .header__actions {
    gap: 0.6rem;
  }

  .menu-btn {
    border-color: rgba(15, 23, 42, 0.2);
  }
}

@media (max-width: 768px) {
  .brand {
    max-width: 180px;
  }

  .header__actions {
    gap: 0.5rem;
  }

  .cta-btn {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(67, 56, 202, 0.12), rgba(14, 165, 233, 0.18));
  border: 1px solid rgba(67, 56, 202, 0.08);
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  width: min(1200px, 100% - 2.5rem);
  margin: 0 auto;
  min-height: 520px;
}

.hero-content,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(67, 56, 202, 0.16);
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.metric {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(14, 165, 233, 0.16);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(6px);
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  color: var(--indigo);
}

.metric span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
}

.hero::before {
  width: 280px;
  height: 280px;
  background: rgba(167, 139, 250, 0.16);
  top: -70px;
  left: -50px;
}

.hero::after {
  width: 220px;
  height: 220px;
  background: rgba(14, 165, 233, 0.16);
  bottom: -70px;
  right: -30px;
}

.hero-media img {
  border-radius: 18px;
  height: 100%;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.glass-note {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.glass-note strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
}

.glass-note span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.header-cta {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header-cta {
    display: none;
  }
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.services-grid,
.tech-grid,
.why-grid,
.project-grid,
.solutions-grid,
.portfolio-grid,
.values-grid,
.contact-section .contact-grid,
.two-column,
.team-section {
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  border-color: rgba(67, 56, 202, 0.2);
}

.tech-experience {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.06), rgba(14, 165, 233, 0.08));
  border-radius: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.tech-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tech-block {
  background: #ffffff;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(67, 56, 202, 0.14);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.why-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.wide-card {
  padding: 1.75rem;
}

.projects {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.solutions-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-media img {
  border-radius: 12px;
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.project-content {
  margin-top: 1rem;
}

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

.final-cta {
  width: 100%;
}

.final-cta-card {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.12), rgba(14, 165, 233, 0.14));
  border-radius: 20px;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero {
  text-align: left;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.05), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero .lead {
  max-width: 640px;
}

.service-detail .detail-card,
.solution-card,
.values-grid .card {
  background: var(--surface);
}

.service-detail {
  display: flex;
  justify-content: center;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.service-detail .detail-card {
  max-width: 960px;
  width: 100%;
}

.detail-list {
  margin: 1rem 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.detail-list li { margin: 0.5rem 0; }
.benefit { color: var(--text); font-weight: 600; }

.solution-card {
  padding: 1.5rem;
}

.solution-card p { margin: 0.35rem 0; }
.solution-card .problem { color: var(--muted); }
.solution-card .approach { color: var(--text); font-weight: 600; }
.solution-card .outcome { color: var(--text); font-weight: 600; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.1), rgba(14, 165, 233, 0.12));
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.portfolio-media {
  position: relative;
  height: 240px;
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.65), rgba(14, 165, 233, 0.6));
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  padding: 1rem 1.25rem 1.25rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(67, 56, 202, 0.12);
  color: var(--indigo);
  font-weight: 700;
  font-size: 0.85rem;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.team-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.team-media img {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.team-media {
  min-height: 320px;
}

.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-section .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card,
.contact-info {
  background: var(--surface);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

label { font-weight: 600; }

input, textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}

textarea { min-height: 140px; resize: vertical; }

.form-status {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--indigo);
}

.contact-image img {
  border-radius: 12px;
  height: 240px;
  object-fit: cover;
}

.site-footer {
  width: 100%;
  margin: 0;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.footer-grid h4 { margin: 0 0 0.5rem 0; }
.footer-grid h5 { margin: 0 0 0.35rem 0; }
.footer-grid p { margin: 0.2rem 0; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--indigo); }

.footer-bottom {
  margin-top: 1.5rem;
  color: var(--muted);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-section { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .contact-section .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}

@media (min-width: 1280px) {
  h1 { font-size: 3.2rem; }
  .section { padding: 5.5rem 0; }
}
