/* Cloud Crew — design system */
:root {
  color-scheme: light;
  --ink: #0b1f33;
  --ink-soft: #3a5168;
  --accent: #1697f6;
  --accent-deep: #1867c0;
  --accent-soft: #7bc6ff;
  --sky-1: #dcecf8;
  --sky-2: #f0f6fb;
  --sky-3: #f8fbfd;
  --surface: #ffffff;
  --line: rgba(11, 31, 51, 0.1);
  --shadow: 0 24px 60px rgba(11, 31, 51, 0.12);
  --nav-bg: rgba(248, 251, 253, 0.78);
  --nav-bg-solid: rgba(248, 251, 253, 0.92);
  --nav-bg-mobile: rgba(248, 251, 253, 0.97);
  --footer-bg: rgba(255, 255, 255, 0.45);
  --field-bg: var(--sky-3);
  --field-bg-focus: #ffffff;
  --glow-a: rgba(22, 151, 246, 0.16);
  --glow-b: rgba(24, 103, 192, 0.1);
  --btn-solid-bg: #0b1f33;
  --btn-solid-fg: #ffffff;
  --btn-solid-hover: #1867c0;
  --radius: 4px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8eef5;
  --ink-soft: #9ab4c8;
  --accent: #4eb0ff;
  --accent-deep: #7bc6ff;
  --accent-soft: #1697f6;
  --sky-1: #07131f;
  --sky-2: #0b1a2a;
  --sky-3: #0f2236;
  --surface: #132a40;
  --line: rgba(232, 238, 245, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(7, 19, 31, 0.78);
  --nav-bg-solid: rgba(7, 19, 31, 0.92);
  --nav-bg-mobile: rgba(7, 19, 31, 0.97);
  --footer-bg: rgba(11, 26, 42, 0.65);
  --field-bg: #0b1a2a;
  --field-bg-focus: #132a40;
  --glow-a: rgba(22, 151, 246, 0.18);
  --glow-b: rgba(123, 198, 255, 0.08);
  --btn-solid-bg: #1697f6;
  --btn-solid-fg: #061018;
  --btn-solid-hover: #4eb0ff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--glow-a), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, var(--glow-b), transparent 55%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 28%, var(--sky-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s var(--ease), color 0.25s var(--ease);
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px) saturate(1.2);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--nav-bg-solid);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 2.6rem;
  height: 1.85rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links .nav-cta {
  margin-left: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg) !important;
  text-decoration: none;
}

.nav-links .nav-cta:hover {
  background: var(--btn-solid-hover);
  color: var(--btn-solid-fg) !important;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s var(--ease), border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--surface);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 550;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown > button:hover,
.nav-dropdown.is-open > button {
  color: var(--ink);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 13rem;
  padding: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  list-style: none;
  margin: 0;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: var(--sky-2);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.35) 0%, rgba(11, 31, 51, 0.55) 45%, rgba(11, 31, 51, 0.88) 100%),
    linear-gradient(90deg, rgba(11, 31, 51, 0.45) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero-brand img {
  width: 4.35rem;
  height: 3.15rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.hero-brand span {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 550;
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.25s forwards;
}

.hero p {
  max-width: 38ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s, color 0.2s;
}

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

.btn-primary {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
}

.btn-primary:hover {
  background: var(--btn-solid-hover);
  color: var(--btn-solid-fg);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-dark {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
}

.btn-dark:hover {
  background: var(--btn-solid-hover);
  color: var(--btn-solid-fg);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.75rem;
}

/* Editorial feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin-bottom: 4.5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  grid-template-columns: 1fr 1.05fr;
}

.feature-row.reverse .feature-copy {
  order: -1;
}

.feature-media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.feature-row:hover .feature-media img {
  transform: scale(1.04);
}

.feature-copy h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.feature-copy .lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.feature-copy a.inline-link {
  font-weight: 650;
  text-decoration: none;
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(24, 103, 192, 0.35);
}

.feature-copy a.inline-link:hover {
  border-bottom-color: var(--accent);
}

/* Platform links (interactive) */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.platform {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
}

.platform img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  z-index: -2;
}

.platform::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(11, 31, 51, 0.85) 100%);
  z-index: -1;
}

.platform:hover img {
  transform: scale(1.06);
}

.platform-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
}

.platform-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.platform-body p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

/* Band / CTA */
.band {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(123, 198, 255, 0.35), transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, #123556 55%, var(--accent-deep) 140%);
  color: #fff;
  box-shadow: var(--shadow);
}

.band h2 {
  max-width: 16ch;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.band p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.page-hero.has-image {
  min-height: 48vh;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after,
.page-hero.no-image {
  background:
    radial-gradient(700px 320px at 80% 0%, rgba(22, 151, 246, 0.35), transparent 60%),
    linear-gradient(135deg, #0b1f33 0%, #123556 55%, #1867c0 130%);
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.25), rgba(11, 31, 51, 0.82));
}

.page-hero.no-image .page-hero-media::after {
  display: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
}

/* Content */
.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 2rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
}

.prose ol,
.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.55rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  margin: 2rem 0 2.5rem;
}

.prose .service-grid {
  max-width: none;
}

.service-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.service-item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.service-item .inline-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.values h3 {
  font-size: 1.2rem;
}

.values p {
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Contact form */
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.form-panel h2 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: var(--field-bg);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 151, 246, 0.2);
  background: var(--field-bg-focus);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.check input {
  margin-top: 0.3rem;
  accent-color: var(--accent-deep);
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 2.05rem;
  height: 1.48rem;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer p,
.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--accent-deep);
}

.footer-col h4 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row.reverse,
  .platforms,
  .values,
  .split,
  .footer-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

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

  .platform {
    min-height: 220px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions .theme-toggle {
    margin-right: 0.15rem;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--nav-bg-mobile);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }

  body.nav-open .nav-links {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-links a,
  .nav-dropdown > button {
    padding: 0.85rem 0.25rem;
    width: 100%;
    text-align: left;
  }

  .nav-links .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0.5rem 0.75rem;
    display: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-content,
  .page-hero-content {
    padding-bottom: 3rem;
  }

  .section {
    padding: 3.75rem 0;
  }
}
