:root {
  --bg: #f4f2ea;
  --surface: #fffdf7;
  --ink: #10223f;
  --muted: #536a8f;
  --brand: #245fbe;
  --brand-soft: #dbe9ff;
  --accent: #d17a1d;
  --ring: rgba(36, 95, 190, 0.22);
  --radius: 18px;
  --shadow: 0 14px 30px rgba(16, 34, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, #dbe9ff 0, transparent 34%),
    radial-gradient(circle at 90% 18%, #f6ddbd 0, transparent 30%),
    var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header-nav {
  background: rgba(255, 253, 247, 0.95);
  border-bottom: 1px solid #d8e3f4;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  width: min(220px, 44vw);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  border-radius: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.mobile-backdrop {
  display: none;
}

.mobile-menu-button {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(38, 57, 91, 0.18);
  border-radius: 999px;
  background: #fffaf3;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 35, 55, 0.08);
  flex: 0 0 auto;
}

.mobile-menu-button span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-menu-button span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 8px));
}

.mobile-menu-button span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.mobile-menu-button span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 8px));
}

.mobile-menu {
  display: none;
}

.mobile-menu-button.open {
  background: #fff;
  border-color: rgba(18, 39, 84, 0.2);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.82;
  transition: opacity 0.2s;
}

.demo-link {
  background: var(--brand);
  color: #eff7f2 !important;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  opacity: 1;
  color: var(--brand);
}

.nav-links a.demo-link.active {
  color: #eff7f2 !important;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.main-content {
  min-height: calc(100vh - 200px);
}

.hero {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(215, 234, 223, 0.3) 0%, transparent 100%);
}

.hero-home .hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.25rem;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 4rem);
  margin: 0.9rem 0 0.75rem;
  max-width: 18ch;
}

.home-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-sparkle {
  position: relative;
  width: 56px;
  height: 56px;
  display: inline-block;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 18px rgba(70, 116, 220, 0.25));
}

.sparkle {
  position: relative;
  display: block;
  background: linear-gradient(145deg, #ff9b4a 2%, #f25f87 28%, #8c58d4 55%, #2f8fe9 78%, #52c6e5 100%);
  clip-path: polygon(50% 0%, 66% 34%, 100% 50%, 66% 66%, 50% 100%, 34% 66%, 0% 50%, 34% 34%);
  transform-origin: center;
}

.sparkle-main {
  width: 54px;
  height: 54px;
  animation: sparkle-float 2.8s ease-in-out infinite;
}

.sparkle-small {
  position: absolute;
  width: 22px;
  height: 22px;
  right: -6px;
  bottom: -4px;
  animation: sparkle-float 2.8s ease-in-out infinite reverse;
  animation-delay: 0.3s;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 70ch;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin: 0 0 0.9rem;
}

.meta-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.meta-card {
  background: var(--surface);
  border: 1px solid #d7dfd7;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 4.25rem 0;
}
.importance-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0;
}
.kpi-card {
  background: #edf3ff;
  border: 1px solid #d0def5;
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow);
  animation: kpi-rise 420ms ease both;
}

.kpi-card:nth-child(2) {
  animation-delay: 80ms;
}

.kpi-card:nth-child(3) {
  animation-delay: 160ms;
}

.kpi-card:nth-child(4) {
  animation-delay: 240ms;
}
.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.kpi-card strong {
  display: block;
  margin-top: 0.2rem;
  color: #123a78;
  font-size: 1.08rem;
}

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: opacity, transform;
}

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

.reveal-item.reveal-rise.is-visible {
  animation: reveal-rise-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes reveal-rise-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kpi-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ai-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes sparkle-float {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  50% {
    transform: translateY(-3px) scale(1.04) rotate(6deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.tech-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.74rem;
  border-radius: 999px;
  border: 1px solid #d7e0ee;
  background: #edf3ff;
  color: #214487;
  font-size: 0.88rem;
  font-weight: 700;
}

.tech-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 2px;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.demo-cta,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1rem;
}

.demo-cta {
  background: var(--brand);
  color: #eff7f2;
}

.text-link {
  color: var(--brand);
  background: var(--brand-soft);
}

.section-alt {
  background: rgba(255, 253, 247, 0.85);
  border-top: 1px solid #d8e3f4;
  border-bottom: 1px solid #d8e3f4;
}

.flow-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.flow-item {
  background: var(--surface);
  border: 1px solid #d7dfd7;
  border-radius: 14px;
  padding: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid #d7dfd7;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.second-row {
  margin-top: 1rem;
}

ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.timeline article {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
}

.timeline span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--brand);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.member {
  background: var(--surface);
  border: 1px solid #d7dfd7;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.member-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.member-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #123567;
  background: #c5dbff;
  border: 1px solid #a8c5f6;
  flex-shrink: 0;
}

.member-meta {
  min-width: 0;
}

.member h3 {
  margin: 0;
  font-size: 1.35rem;
  color: #123a78;
}

.member-specialty {
  margin: 0.2rem 0 0.95rem;
  color: #61779f;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}

.member-links {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.member-links a {
  text-decoration: none;
  padding: 0.43rem 0.72rem;
  border-radius: 999px;
  background: #edf3ff;
  border: 1px solid #d0def5;
  color: #2b4f88;
  font-weight: 600;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.member-links a:hover {
  background: #dfe9ff;
}

.member-links a svg {
  width: 14px;
  height: 14px;
}

#app {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

#app.page-leave {
  opacity: 0;
  transform: translateY(7px);
}

#app.page-enter {
  opacity: 0;
  transform: translateY(7px);
}

@media (prefers-reduced-motion: reduce) {
  #app,
  #app.page-leave,
  #app.page-enter {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.booking-package {
  min-height: 100%;
}

.architecture-flow {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.flow-node {
  background: #edf3ff;
  border: 1px solid #d0def5;
  color: #254c87;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.42rem 0.76rem;
  font-size: 0.9rem;
}

.flow-arrow {
  color: #2c67c6;
  font-size: 1rem;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
  margin-top: 1.15rem;
}

.contact-form,
.project-info {
  background: var(--surface);
  border: 1px solid #d7dfd7;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c6d5ea;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fbfefb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--ring);
  border-color: var(--brand);
}

.form-split {
  gap: 0.9rem;
  margin-top: 0.2rem;
}

.form-status {
  min-height: 1.2rem;
}

.status-message {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.success-panel,
.error-panel {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
}

.success-panel {
  background: #e9f1ff;
  border-color: #bfd3f7;
  color: #1f4d93;
}

.error-panel {
  background: #fdecec;
  border-color: #f2b6b6;
  color: #9d1f1f;
}

.contact-form button {
  width: fit-content;
  margin-top: 0.35rem;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  background: linear-gradient(120deg, #1f4f96, #2c69c9);
  color: #eef8f2;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s;
}

.contact-form button:hover {
  filter: brightness(1.06);
}

.project-info h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.info-item {
  margin-bottom: 0.75rem;
}

.info-item span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.links-title {
  margin-top: 1rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-links a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  transition: opacity 0.2s;
}

.quick-links a:hover {
  opacity: 0.8;
}

.footer {
  background: #10261d;
  color: #e6f3ec;
  padding: 1rem 0;
  margin-top: 3rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-home .hero-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .importance-kpis,
  .meta-grid,
  .cards,
  .three-col,
  .split,
  .timeline,
  .team-grid,
  .flow-grid,
  .contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .brand-logo {
    width: min(200px, 70vw);
    max-height: 52px;
  }

  .mobile-menu-button {
    display: inline-flex;
    margin-left: 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(16, 25, 49, 0.32);
    backdrop-filter: blur(2px);
    z-index: 110;
  }

  .mobile-menu {
    display: grid;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(82vw, 320px);
    padding: 1.2rem 1rem 1.35rem;
    background: #fffdf8;
    border-left: 1px solid rgba(18, 39, 84, 0.08);
    box-shadow: -12px 0 32px rgba(16, 25, 49, 0.14);
    z-index: 120;
    grid-auto-rows: min-content;
    grid-template-columns: 1fr;
    gap: 0.95rem;
    max-height: 100vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(102%);
    transition: transform 0.28s ease, opacity 0.2s ease;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 72px;
    padding: 0.95rem 1.1rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(38, 57, 91, 0.1);
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(23, 35, 55, 0.05);
  }

  .mobile-menu a:first-child {
    margin-top: 0.35rem;
  }

  .mobile-menu a.active {
    color: var(--brand);
    border-color: rgba(42, 95, 58, 0.18);
    background: rgba(215, 234, 223, 0.7);
  }

  .mobile-menu a.demo-link {
    background: var(--brand);
    color: #eff7f2 !important;
    border-color: transparent;
    justify-content: center;
  }

  .home-title {
    gap: 0.58rem;
  }

  .ai-sparkle {
    width: 46px;
    height: 46px;
  }

  .sparkle-main {
    width: 44px;
    height: 44px;
  }

  .sparkle-small {
    width: 18px;
    height: 18px;
    right: -5px;
    bottom: -2px;
  }

  .importance-kpis,
  .meta-grid,
  .cards,
  .three-col,
  .split,
  .timeline,
  .team-grid,
  .flow-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.3rem 0;
  }

  .architecture-flow {
    justify-content: flex-start;
  }

  .flow-arrow {
    display: none;
  }

  .contact-form button {
    width: 100%;
  }

  .cta-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle-main,
  .sparkle-small {
    animation: none;
  }
}
