:root {
  --bg: #f4f6f8;
  --bg-soft: #e8edf3;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --text: #101727;
  --muted: #4d5b73;
  --line: rgba(16, 23, 39, 0.1);
  --primary: #0e5eff;
  --accent: #10b981;
  --shadow: 0 20px 50px rgba(18, 38, 76, 0.12);
  --radius: 18px;
}

body.dark {
  --bg: #090d16;
  --bg-soft: #11192a;
  --surface: #111827;
  --surface-2: #151d30;
  --text: #ecf2ff;
  --muted: #a8b4cd;
  --line: rgba(235, 243, 255, 0.14);
  --primary: #4f8dff;
  --accent: #2dd4bf;
  --shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 90% -10%, rgba(14, 94, 255, 0.14), transparent 50%), var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

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

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.6;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: -90px;
  left: -120px;
  background: rgba(14, 94, 255, 0.24);
}

.orb-2 {
  width: 300px;
  height: 300px;
  bottom: -140px;
  right: -100px;
  background: rgba(16, 185, 129, 0.2);
}

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

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #fff;
}

.brand-text {
  max-width: 320px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
}

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

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

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

.theme-toggle,
.menu-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.theme-icon {
  display: inline-grid;
}

body.dark .theme-icon.sun,
body:not(.dark) .theme-icon.moon {
  display: none;
}

.menu-btn {
  display: none;
  gap: 4px;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  display: block;
}

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

.hero-cover {
  width: min(1240px, 96vw);
  margin: 0 auto 46px;
  min-height: clamp(320px, 62vh, 620px);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 380px at 80% 0%, rgba(14, 94, 255, 0.36), transparent 60%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.06), rgba(5, 10, 20, 0.72));
}

.hero-cover-overlay {
  position: absolute;
  left: clamp(18px, 4vw, 42px);
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(20px, 6vw, 48px);
  z-index: 2;
  color: #f5f9ff;
  max-width: 720px;
}

.hero-cover-overlay p {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(244, 250, 255, 0.92);
}

.hero-cover-overlay h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4.5vw, 3.4rem);
  line-height: 1.02;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: color-mix(in srgb, var(--primary) 65%, var(--text));
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  margin-bottom: 18px;
}

.hero-sub {
  color: var(--muted);
  max-width: 60ch;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 28%, transparent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.hero-meta {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta li {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.87rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 410px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(140deg, color-mix(in srgb, var(--surface) 80%, var(--primary)), var(--surface-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.02);
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.4;
  mask-image: radial-gradient(circle at 35% 35%, black 20%, transparent 72%);
}

.visual-card {
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
}

.card-main {
  max-width: 82%;
}

.card-main h3 {
  font-size: 1.2rem;
}

.card-main p {
  color: var(--muted);
  margin-bottom: 14px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-row span {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--primary) 60%, var(--text));
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
}

.card-mini {
  position: absolute;
  min-width: 170px;
  text-align: left;
}

.card-mini strong {
  display: block;
  font-size: 1.7rem;
  font-family: "Space Grotesk", sans-serif;
}

.card-mini span {
  color: var(--muted);
  font-size: 0.85rem;
}

.mini-1 {
  right: 20px;
  top: 58%;
}

.mini-2 {
  left: 18%;
  bottom: 18px;
}

.section {
  padding: 78px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 680px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

.section-head p + h2 {
  margin-top: 0;
}

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

.service-card,
.exp-card,
.usecase,
.cta-box {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  padding: 20px;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.service-card:hover,
.usecase:hover,
.exp-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 60%, var(--line));
}

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 22%, var(--surface)), var(--surface-2));
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: color-mix(in srgb, var(--primary) 65%, var(--text));
}

.service-card h3 {
  font-size: 1.12rem;
}

.service-card p,
.exp-card p,
.usecase p,
.about p,
.cta-box p {
  color: var(--muted);
}

.expertise-grid {
  display: grid;
  gap: 18px;
}

.expertise-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.exp-card {
  padding: 20px;
}

.exp-card h3 {
  font-size: 1.05rem;
}

.usecase-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.usecase {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--surface) 45%, transparent), var(--surface-2));
}

.usecase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

.usecase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.08), rgba(7, 11, 20, 0.72));
  z-index: 1;
}

.usecase h3,
.usecase p {
  position: relative;
  z-index: 2;
  color: #f3f7ff;
}

.usecase:hover img {
  transform: scale(1.08);
}

.usecase:nth-child(1) {
  grid-column: span 3;
}

.usecase:nth-child(2),
.usecase:nth-child(3),
.usecase:nth-child(4) {
  grid-column: span 2;
}

.usecase:nth-child(5) {
  grid-column: span 6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.about h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.about p {
  max-width: 62ch;
}

.about-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-visual {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(10, 18, 34, 0.04), rgba(10, 18, 34, 0.62));
}

.about-visual .about-pillars {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.about-pillars span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(9, 18, 33, 0.52);
  color: #f4f7ff;
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.cta {
  padding-top: 42px;
}

.cta-box {
  padding: 36px;
  text-align: center;
  background: linear-gradient(130deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface));
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.cta-box p {
  max-width: 58ch;
  margin: 0 auto;
}

.site-footer {
  padding: 34px 0 24px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.footer-brand {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.footer-name {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-contact a {
  color: var(--muted);
  font-weight: 600;
  width: fit-content;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.87rem;
}

.quote-page {
  padding-bottom: 40px;
}

.quote-hero {
  padding: 64px 0 18px;
}

.quote-hero-inner {
  max-width: 760px;
}

.quote-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.quote-hero p {
  color: var(--muted);
}

.quote-section {
  padding-top: 24px;
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 18px;
  align-items: start;
}

.quote-info,
.quote-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-info {
  padding: 24px;
}

.quote-info h2 {
  font-size: 1.35rem;
}

.quote-info p {
  color: var(--muted);
  margin-bottom: 14px;
}

.quote-info ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.quote-form-wrap {
  padding: 22px;
}

.form-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.form-alert.success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.36);
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}

.quote-form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quote-form label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
  min-height: 130px;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 66%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120%);
  width: min(920px, 94vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 90%, var(--bg));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.cookie-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner p {
  color: var(--muted);
  margin: 0;
  font-size: 0.93rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

  .quote-layout {
    grid-template-columns: 1fr;
  }

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

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

  .card-main {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header {
    backdrop-filter: blur(10px);
  }

  .brand-text {
    max-width: 170px;
    font-size: 0.66rem;
  }

  .menu-btn {
    display: inline-grid;
  }

  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    padding: 14px 4vw 20px;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-cover {
    min-height: clamp(240px, 42vh, 360px);
    margin-bottom: 28px;
    border-radius: 18px;
  }

  .hero-visual {
    min-height: 350px;
  }

  .hero-photo {
    opacity: 0.45;
  }

  .card-mini {
    position: static;
    margin-top: 12px;
    width: fit-content;
  }

  .service-grid,
  .usecase-grid,
  .expertise-cards,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
    bottom: 10px;
  }

  .usecase:nth-child(n) {
    grid-column: span 1;
  }

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

  .cta-box {
    text-align: left;
  }

  .cta-box p {
    margin: 0;
  }

  .about-visual {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
