:root {
  --bg: #05070b;
  --surface: #0b111d;
  --surface-soft: #101827;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f7fbff;
  --muted: #a8b3c7;
  --blue: #2f7dff;
  --blue-bright: #66a3ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --max-width: 1180px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 11, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 32px, var(--max-width));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  border-radius: var(--radius);
  transition: transform 340ms var(--ease-smooth), filter 340ms var(--ease-smooth);
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 20px rgba(47, 125, 255, 0.26));
  outline: none;
}

.brand img {
  display: block;
  width: clamp(105px, 11vw, 125px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  position: relative;
  overflow: hidden;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 600;
  transition: color 320ms var(--ease-smooth), background 320ms var(--ease-smooth),
    transform 320ms var(--ease-smooth), box-shadow 320ms var(--ease-smooth);
}

.nav-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.24), rgba(102, 163, 255, 0.04));
  opacity: 0;
  transition: opacity 320ms var(--ease-smooth);
  pointer-events: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(47, 125, 255, 0.12);
  box-shadow: 0 10px 28px rgba(47, 125, 255, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.nav-links a:hover::before,
.nav-links a:focus-visible::before {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 320ms var(--ease-smooth), border-color 320ms var(--ease-smooth),
    background 320ms var(--ease-smooth), box-shadow 320ms var(--ease-smooth);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(102, 163, 255, 0.78);
  background: rgba(47, 125, 255, 0.14);
  box-shadow: 0 14px 34px rgba(47, 125, 255, 0.18);
  outline: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  width: min(100% - 32px, var(--max-width));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 82px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-button {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  width: fit-content;
  padding: 0 14px;
  border: 1px solid rgba(102, 163, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(47, 125, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 340ms var(--ease-smooth), color 340ms var(--ease-smooth),
    border-color 340ms var(--ease-smooth), background 340ms var(--ease-smooth),
    box-shadow 340ms var(--ease-smooth);
}

.badge-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.32), rgba(102, 163, 255, 0.06));
  opacity: 0;
  transition: opacity 340ms var(--ease-smooth);
  pointer-events: none;
}

.badge-button:hover {
  color: #ffffff;
  transform: translateY(-4px);
  border-color: rgba(102, 163, 255, 0.82);
  background: rgba(47, 125, 255, 0.16);
  box-shadow: 0 18px 42px rgba(47, 125, 255, 0.18);
}

.badge-button:hover::before {
  opacity: 1;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(3rem, 8vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button,
.contact-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 340ms var(--ease-smooth), border-color 340ms var(--ease-smooth),
    background 340ms var(--ease-smooth), color 340ms var(--ease-smooth),
    box-shadow 340ms var(--ease-smooth);
}

.button::before,
.contact-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(102, 163, 255, 0.08));
  opacity: 0;
  transition: opacity 340ms var(--ease-smooth);
  pointer-events: none;
}

.button:hover::before,
.button:focus-visible::before,
.contact-button:hover::before,
.contact-button:focus-visible::before {
  opacity: 1;
}

.button {
  padding: 0 22px;
}

.button:hover,
.button:focus-visible,
.contact-button:hover,
.contact-button:focus-visible,
.price-card:hover,
.price-card:focus-within,
.feature-card:hover,
.feature-card:focus-within,
.portfolio-card:hover {
  transform: translateY(-5px);
}

.button-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 42px rgba(47, 125, 255, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #4590ff;
  box-shadow: 0 20px 52px rgba(47, 125, 255, 0.34);
  outline: none;
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(102, 163, 255, 0.75);
  background: rgba(47, 125, 255, 0.15);
  box-shadow: 0 18px 42px rgba(47, 125, 255, 0.16);
  outline: none;
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 24, 39, 0.96), rgba(7, 12, 22, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 360ms var(--ease-smooth), border-color 360ms var(--ease-smooth),
    box-shadow 360ms var(--ease-smooth);
}

.hero-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 163, 255, 0.65);
  box-shadow: 0 24px 70px rgba(47, 125, 255, 0.16);
}

.status-bar {
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.status-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue-bright);
  opacity: 0.72;
}

.dashboard-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  position: relative;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #091223;
  overflow: hidden;
  transition: transform 340ms var(--ease-smooth), border-color 340ms var(--ease-smooth),
    background 340ms var(--ease-smooth), box-shadow 340ms var(--ease-smooth);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.22), rgba(102, 163, 255, 0.04));
  opacity: 0;
  transition: opacity 340ms var(--ease-smooth);
  pointer-events: none;
}

.metric:hover {
  transform: translateY(-5px);
  border-color: rgba(102, 163, 255, 0.78);
  background: #0d1a2f;
  box-shadow: 0 18px 42px rgba(47, 125, 255, 0.14);
}

.metric:hover::before {
  opacity: 1;
}

.metric strong,
.metric span {
  position: relative;
  z-index: 1;
  display: block;
}

.metric strong {
  font-size: 1.18rem;
}

.metric span {
  margin-top: 10px;
  color: var(--muted);
}

.metric:hover strong {
  color: #ffffff;
}

.metric:hover span {
  color: #d8e6ff;
}

.metric.wide {
  grid-column: 1 / -1;
  min-height: 170px;
  background:
    linear-gradient(90deg, rgba(47, 125, 255, 0.2), transparent),
    #091223;
}

.section {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  padding: 88px 0;
}

.section-alt {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100% - var(--max-width)) / 2));
  background: #080d16;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--muted);
  font-size: 1.04rem;
}

.about-copy p {
  margin: 0;
}

.service-block {
  padding: 28px 0 38px;
  border-top: 1px solid var(--border);
}

.service-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 22px;
}

.service-intro h3 {
  margin: 0;
  font-size: 1.5rem;
}

.service-intro p {
  margin: 0;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card,
.feature-card,
.portfolio-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 360ms var(--ease-smooth), border-color 360ms var(--ease-smooth),
    background 360ms var(--ease-smooth), box-shadow 360ms var(--ease-smooth);
}

.price-card::before,
.feature-card::before,
.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 125, 255, 0.24), rgba(102, 163, 255, 0.03));
  opacity: 0;
  transition: opacity 360ms var(--ease-smooth);
  pointer-events: none;
}

.price-card > *,
.feature-card > *,
.portfolio-card > * {
  position: relative;
  z-index: 1;
}

.price-card:hover,
.price-card:focus-within,
.feature-card:hover,
.feature-card:focus-within,
.portfolio-card:hover {
  border-color: rgba(102, 163, 255, 0.82);
  background: #0d1a2f;
  box-shadow: 0 18px 48px rgba(47, 125, 255, 0.18);
}

.price-card:hover::before,
.price-card:focus-within::before,
.feature-card:hover::before,
.feature-card:focus-within::before,
.portfolio-card:hover::before {
  opacity: 1;
}

.price-card {
  min-height: 100%;
  padding: 24px;
}

.price-card:hover h4,
.price-card:focus-within h4,
.price-card:hover .price,
.price-card:focus-within .price,
.feature-card:hover h3,
.feature-card:focus-within h3,
.portfolio-card:hover h3 {
  color: #ffffff;
}

.price-card:hover li,
.price-card:focus-within li,
.feature-card:hover p,
.feature-card:focus-within p,
.portfolio-card:hover p {
  color: #d8e6ff;
}

.price-card.featured {
  background: linear-gradient(180deg, rgba(47, 125, 255, 0.18), rgba(11, 17, 29, 1));
}

.price-card h4 {
  margin: 0;
  font-size: 1.1rem;
}

.price {
  margin: 10px 0 18px;
  color: var(--blue-bright);
  font-size: 2rem;
  font-weight: 800;
}

.price-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.price-card li + li {
  margin-top: 8px;
}

.feature-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 24px;
}

.icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(102, 163, 255, 0.45);
  border-radius: var(--radius);
  color: var(--blue-bright);
  font-weight: 800;
}

.feature-card h3,
.portfolio-card h3 {
  margin: 18px 0 8px;
  font-size: 1.13rem;
}

.feature-card p,
.portfolio-card p {
  margin: 0;
  color: var(--muted);
}

.portfolio-card {
  padding: 14px;
}

.project-preview {
  position: relative;
  min-height: 190px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
  overflow: hidden;
}

.project-preview::before,
.project-preview::after,
.project-preview span {
  content: "";
  position: absolute;
  display: block;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.page-preview::before {
  inset: 18px 18px auto;
  height: 44px;
  background: rgba(47, 125, 255, 0.5);
}

.page-preview span:nth-child(1) {
  left: 18px;
  right: 88px;
  top: 82px;
  height: 18px;
}

.page-preview span:nth-child(2) {
  left: 18px;
  right: 48px;
  top: 112px;
  height: 12px;
}

.page-preview span:nth-child(3) {
  left: 18px;
  width: 92px;
  bottom: 20px;
  height: 30px;
  background: var(--blue);
}

.chat-preview span {
  left: 20px;
  right: 58px;
  height: 34px;
}

.chat-preview span:nth-child(1) {
  top: 28px;
}

.chat-preview span:nth-child(2) {
  top: 78px;
  left: 58px;
  right: 20px;
  background: rgba(47, 125, 255, 0.5);
}

.chat-preview span:nth-child(3) {
  top: 128px;
}

.research-preview span {
  left: 22px;
  right: 22px;
  height: 14px;
}

.research-preview span:nth-child(1) {
  top: 34px;
  height: 30px;
  right: 70px;
  background: rgba(47, 125, 255, 0.5);
}

.research-preview span:nth-child(2) {
  top: 88px;
}

.research-preview span:nth-child(3) {
  top: 120px;
  right: 80px;
}

.checklist-preview span {
  left: 54px;
  right: 24px;
  height: 18px;
}

.checklist-preview span:nth-child(1) {
  top: 38px;
}

.checklist-preview span:nth-child(2) {
  top: 84px;
  background: rgba(47, 125, 255, 0.5);
}

.checklist-preview span:nth-child(3) {
  top: 130px;
}

.checklist-preview::before,
.checklist-preview::after {
  left: 22px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(102, 163, 255, 0.7);
  background: transparent;
}

.checklist-preview::before {
  top: 38px;
}

.checklist-preview::after {
  top: 84px;
}

.contact-section {
  text-align: center;
}

.contact-section .section-heading {
  margin-inline: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-button {
  min-width: 170px;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.contact-button:hover {
  border-color: rgba(102, 163, 255, 0.55);
  background: rgba(47, 125, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.site-footer {
  padding: 28px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 8px;
}

.site-footer a {
  color: var(--text);
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .hero,
  .service-intro,
  .about-copy {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 36px;
    min-height: auto;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 74px 16px auto 16px;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #070b13;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .brand img {
    width: min(36vw, 115px);
  }

  .hero {
    width: min(100% - 28px, var(--max-width));
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .dashboard-grid,
  .pricing-grid,
  .feature-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 28px, var(--max-width));
    padding: 64px 0;
  }

  .section-alt {
    width: 100%;
    padding-inline: 14px;
  }
}
