:root {
  --ink: #14213d;
  --ink-soft: #33415c;
  --paper: #f8fafc;
  --panel: #ffffff;
  --line: #d8dee9;
  --teal: #0f766e;
  --blue: #1d4ed8;
  --amber: #b45309;
  --mint: #ccfbf1;
  --shadow: 0 18px 48px rgba(20, 33, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Aptos,
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img,
canvas {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid rgba(216, 222, 233, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand img {
  flex: 0 0 44px;
}

.brand span {
  display: grid;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  white-space: nowrap;
}

.site-nav a,
.header-action,
.button,
.language-toggle {
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover {
  color: var(--blue);
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-action,
.button,
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}

.header-action {
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
}

.language-toggle {
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.header-action:hover,
.button:hover,
.language-toggle:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 120px clamp(20px, 6vw, 84px) 96px;
  color: #fff;
  background: #0c1222;
}

#cloud-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 34, 0.94), rgba(12, 18, 34, 0.78) 48%, rgba(12, 18, 34, 0.48)),
    linear-gradient(180deg, rgba(12, 18, 34, 0.16), rgba(12, 18, 34, 0.84));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fbbf24;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 7vw, 4rem);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button.primary {
  color: #08111f;
  background: #fbbf24;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-status {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 6vw, 84px);
  bottom: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  width: min(780px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 17, 31, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-status div {
  min-height: 96px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-status div:last-child {
  border-right: 0;
}

.hero-status span {
  display: block;
  color: #99f6e4;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-status strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.section {
  padding: 92px clamp(20px, 6vw, 84px);
}

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

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 48px;
  background: #fff;
}

.intro-grid {
  display: grid;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.services-band {
  background: #f2f7f4;
}

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

.service-card,
.work-list article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
}

.service-card {
  display: grid;
  align-content: start;
  min-height: 260px;
  padding: 24px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-radius: 50%;
  color: var(--teal);
  background: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card p,
.work-list p,
.contact-copy p {
  color: var(--ink-soft);
}

.subpage-hero {
  padding: 112px clamp(20px, 6vw, 84px) 84px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 18, 34, 0.96), rgba(12, 18, 34, 0.78)),
    #0c1222;
}

.subpage-hero h1 {
  max-width: 960px;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.16rem;
}

.content-band {
  background: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.8fr);
  gap: 34px;
  max-width: 1080px;
}

.detail-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.page-action {
  margin-top: 12px;
  border: 0;
  color: #08111f;
  background: #fbbf24;
}

.work {
  background: #fff;
}

.work-list {
  display: grid;
  gap: 14px;
}

.work-list article {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(220px, 0.48fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
}

.work-list span {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-list p {
  margin-bottom: 0;
}

.stack-band {
  background: #111827;
  color: #f8fafc;
}

.stack-band .eyebrow {
  color: #fbbf24;
}

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

.stack-grid span {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.faq {
  background: #f8fafc;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.faq-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.05);
}

.faq-list p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  gap: 24px;
  background: #fff;
}

.contact-copy {
  align-self: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06);
}

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

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  min-height: 148px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--teal);
}

.form-submit {
  justify-self: start;
  border: 0;
  color: #fff;
  background: var(--teal);
  cursor: pointer;
}

.form-note {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.message-modal[hidden] {
  display: none;
}

.message-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 18, 34, 0.56);
}

.message-modal-panel {
  position: relative;
  width: min(560px, 100%);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.message-modal-panel h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.message-modal-panel p:not(.eyebrow) {
  color: var(--ink-soft);
}

.message-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-action {
  margin-top: 4px;
  border: 0;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
}

.contact-panel {
  padding: 26px;
}

dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

dd a {
  color: var(--blue);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(20px, 6vw, 84px);
  color: rgba(255, 255, 255, 0.78);
  background: #0c1222;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 32px;
    align-items: start;
  }

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

  .intro,
  .contact,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .work-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 56px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
    max-width: 100%;
  }

  .brand img {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .site-nav {
    gap: 10px;
    padding-bottom: 4px;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .header-tools {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .header-action,
  .language-toggle {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 64px 16px 28px;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 2.65rem);
    line-height: 1.04;
  }

  h2 {
    font-size: clamp(1.6rem, 9vw, 2rem);
  }

  .hero-copy {
    font-size: 1.03rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
  }

  .hero-status,
  .service-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .hero-status {
    margin-top: 40px;
  }

  .hero-status div {
    min-height: 74px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-status div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 16px;
  }

  .service-card,
  .work-list article,
  .contact-panel,
  .contact-form {
    padding: 20px;
  }

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

  .form-submit {
    width: 100%;
  }

  .service-card {
    min-height: auto;
  }

  .stack-grid span {
    min-height: 48px;
  }

  .site-footer {
    padding: 24px 16px;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 8px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }
}
