:root {
  --bg: #020816;
  --bg-soft: #071327;
  --bg-soft-2: #0b1730;
  --card: rgba(20, 31, 54, 0.48);
  --card-border: rgba(111, 211, 255, 0.22);
  --text: #eef4ff;
  --muted: #9fb3d9;
  --line: rgba(140, 201, 255, 0.12);
  --blue: #63b7ff;
  --blue-strong: #2e78ff;
  --green: #4ff7c7;
  --glow-blue: 0 0 30px rgba(77, 164, 255, 0.35);
  --glow-green: 0 0 30px rgba(79, 247, 199, 0.25);
  --radius: 24px;
  --container: 1180px;
  --shadow-card:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 35px rgba(0, 0, 0, 0.26),
    0 0 30px rgba(79, 247, 199, 0.08),
    0 0 24px rgba(88, 154, 255, 0.08);
}

[data-theme="light"] {
  --bg: #edf4fb;
  --bg-soft: #ffffff;
  --bg-soft-2: #f6faff;
  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(46, 120, 255, 0.16);
  --text: #0f172a;
  --muted: #4b5d79;
  --line: rgba(15, 23, 42, 0.08);
  --blue: #2e78ff;
  --blue-strong: #1d4ed8;
  --green: #10b981;
  --glow-blue: 0 0 24px rgba(46, 120, 255, 0.18);
  --glow-green: 0 0 24px rgba(16, 185, 129, 0.14);
  --shadow-card:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 0 22px rgba(46, 120, 255, 0.06),
    0 0 18px rgba(16, 185, 129, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(32, 78, 172, 0.16), transparent 22%),
    radial-gradient(circle at 80% 65%, rgba(36, 187, 141, 0.14), transparent 18%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft-2) 50%, var(--bg) 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

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

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(46, 120, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 120, 255, 0.04) 1px, transparent 1px);
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.bg-orb--1 {
  width: 300px;
  height: 300px;
  left: -60px;
  top: 120px;
  background: rgba(47, 127, 255, 0.12);
}

.bg-orb--2 {
  width: 340px;
  height: 340px;
  right: -100px;
  bottom: 80px;
  background: rgba(79, 247, 199, 0.1);
}

.header,
main,
.footer {
  position: relative;
  z-index: 2;
}

.header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  z-index: 30;
}

.header__inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  align-items: center;
  padding: 8px;
  background: rgba(7, 19, 39, 0.8);
  border: 1px solid rgba(111, 211, 255, 0.16);
  box-shadow: var(--glow-blue);
}

[data-theme="light"] .brand__mark {
  background: rgba(255, 255, 255, 0.8);
}

.brand__mark span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.brand__mark span:nth-child(1) { height: 10px; }
.brand__mark span:nth-child(2) { height: 20px; }
.brand__mark span:nth-child(3) { height: 30px; }
.brand__mark span:nth-child(4) { height: 20px; }
.brand__mark span:nth-child(5) { height: 10px; }

.brand__text strong,
.brand__text span {
  display: block;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.brand__text strong {
  font-size: 1.3rem;
}

.brand__text span {
  font-size: 1.15rem;
}

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

.nav a {
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 12px;
  transition: 0.25s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

[data-theme="light"] .nav a:hover {
  background: rgba(15,23,42,0.04);
}

.nav__cta {
  border: 1px solid var(--card-border);
  box-shadow: var(--glow-blue);
}

.themeToggle,
.menuBtn {
  width: 50px;
  height: 50px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(8, 19, 37, 0.35);
  color: var(--text);
  cursor: pointer;
  transition: 0.25s ease;
}

[data-theme="light"] .themeToggle,
[data-theme="light"] .menuBtn {
  background: rgba(255,255,255,0.55);
}

.themeToggle {
  display: grid;
  place-items: center;
  position: relative;
}

.themeToggle:hover,
.menuBtn:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-blue);
}

.themeToggle__icon {
  position: absolute;
  font-size: 1.05rem;
  transition: 0.2s ease;
}

.themeToggle__icon--sun {
  opacity: 0;
  transform: scale(0.8);
}

[data-theme="light"] .themeToggle__icon--sun {
  opacity: 1;
  transform: scale(1);
}

[data-theme="light"] .themeToggle__icon--moon {
  opacity: 0;
  transform: scale(0.8);
}

.menuBtn {
  display: none;
  padding: 0;
}

.menuBtn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  padding: 72px 0 40px;
}

.hero__inner {
  display: grid;
  gap: 40px;
}

.hero__content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 500;
}

.hero p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(90deg, rgba(48, 111, 255, 0.95), rgba(55, 102, 234, 0.95));
  box-shadow: 0 0 20px rgba(70, 123, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(70, 123, 255, 0.45);
}

.btn--ghost {
  color: var(--text);
  background: rgba(14, 22, 40, 0.55);
  border-color: rgba(89, 223, 193, 0.35);
  box-shadow: var(--glow-green);
}

[data-theme="light"] .btn--ghost {
  background: rgba(255,255,255,0.6);
}

.btn--full {
  width: 100%;
}

.hero__visual {
  position: relative;
  min-height: 300px;
}

.landscape {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 26px;
}

.landscape__layer {
  position: absolute;
  inset-inline: -2%;
  bottom: 0;
  background-repeat: no-repeat;
  background-size: cover;
  clip-path: polygon(0 70%, 8% 54%, 15% 64%, 22% 48%, 30% 60%, 38% 43%, 48% 58%, 56% 44%, 66% 63%, 76% 38%, 86% 55%, 94% 30%, 100% 50%, 100% 100%, 0 100%);
}

.landscape__layer--1 {
  height: 180px;
  background: linear-gradient(180deg, rgba(32, 82, 164, 0.25), rgba(16, 49, 95, 0.75));
}

.landscape__layer--2 {
  height: 150px;
  background: linear-gradient(180deg, rgba(47, 203, 168, 0.16), rgba(26, 120, 99, 0.82));
  clip-path: polygon(0 74%, 10% 50%, 20% 61%, 28% 42%, 36% 53%, 48% 37%, 58% 49%, 66% 31%, 78% 47%, 88% 26%, 100% 44%, 100% 100%, 0 100%);
  opacity: 0.9;
}

.landscape__layer--3 {
  height: 120px;
  background: linear-gradient(180deg, rgba(75, 231, 198, 0.18), rgba(16, 70, 60, 0.9));
  clip-path: polygon(0 76%, 12% 60%, 22% 73%, 34% 49%, 44% 63%, 56% 41%, 68% 55%, 78% 37%, 90% 52%, 100% 29%, 100% 100%, 0 100%);
}

.section {
  padding: 50px 0;
}

.sectionHead {
  text-align: center;
  margin-bottom: 34px;
}

.sectionHead--left {
  text-align: left;
}

.sectionHead h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 500;
}

.glass {
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--card) 82%, transparent));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.serviceCard {
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
}

.serviceIcon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  color: var(--blue);
  border: 1px solid rgba(79, 247, 199, 0.18);
  box-shadow: var(--glow-green);
}

.serviceCard h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.serviceCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section--flow {
  padding-top: 26px;
}

.flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 140px 1fr 140px 1fr;
  align-items: center;
  gap: 0;
}

.flowCard {
  min-height: 220px;
  border-radius: 24px;
  padding: 26px;
  position: relative;
}

.flowCard__icon {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 14px;
}

.flowCard h3 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.flowCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.flowConnector {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(87, 162, 255, 0.95), rgba(82, 241, 199, 0.95));
  box-shadow:
    0 0 18px rgba(87, 162, 255, 0.55),
    0 0 18px rgba(82, 241, 199, 0.35);
}

.bottomGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.portfolioCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 22px;
  padding: 26px;
  margin-bottom: 18px;
}

.portfolioCard h3 {
  margin: 0 0 8px;
  font-size: 2.1rem;
}

.portfolioCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.portfolioCard__arrow {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--green);
  border: 1px solid rgba(79, 247, 199, 0.2);
}

.contactBox {
  border-radius: 24px;
  padding: 24px;
}

.field {
  margin-bottom: 16px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
  color: var(--text);
  border-radius: 16px;
  padding: 16px 18px;
  font: inherit;
  outline: none;
  transition: 0.2s ease;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
textarea:focus {
  border-color: rgba(91, 179, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(76, 144, 255, 0.12);
}

.checkboxField {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 18px;
}

.checkboxField input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-strong);
}

.checkboxField label {
  color: var(--muted);
  line-height: 1.7;
}

.checkboxField a {
  color: var(--blue);
  text-decoration: underline;
}

.alert {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  font-weight: 600;
}

.alert.success {
  display: block;
  color: #d9ffe8;
  background: rgba(25, 106, 71, 0.28);
  border: 1px solid rgba(78, 226, 153, 0.25);
}

.alert.error {
  display: block;
  color: #ffd6d6;
  background: rgba(120, 33, 33, 0.28);
  border: 1px solid rgba(255, 108, 108, 0.22);
}

.alert.loading {
  display: block;
  color: #d9e8ff;
  background: rgba(38, 70, 140, 0.28);
  border: 1px solid rgba(110, 163, 255, 0.2);
}

.waButton {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: white;
  background: linear-gradient(180deg, #2fd17f, #1ba85f);
  box-shadow: 0 0 24px rgba(47, 209, 127, 0.35);
  z-index: 25;
}

.footer {
  padding: 26px 0 40px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 18, 0.72);
}

[data-theme="light"] .modal__overlay {
  background: rgba(15, 23, 42, 0.35);
}

.modal__content {
  position: relative;
  width: min(900px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 24px;
  padding: 28px;
  z-index: 1;
}

.modal__content h2 {
  margin-top: 0;
}

.modal__content h3 {
  margin-bottom: 8px;
}

.modal__content p,
.modal__content li {
  color: var(--muted);
  line-height: 1.7;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.hidden-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 980px) {
  .services {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .flowConnector {
    width: 6px;
    height: 60px;
    margin: 0 auto;
  }

  .bottomGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .menuBtn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 84px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--bg-soft) 94%, transparent);
    border: 1px solid var(--card-border);
  }

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

  .nav a {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .portfolioCard h3 {
    font-size: 1.7rem;
  }

  .container {
    width: min(var(--container), calc(100% - 28px));
  }
}