/* Cluster Software Co. — Brand landing */

:root {
  --blue-50: #eef6ff;
  --blue-100: #d9ebff;
  --blue-400: #3b9eff;
  --blue-500: #0080ff;
  --blue-600: #0066ff;
  --blue-700: #0052cc;
  --blue-900: #0a1a3a;
  --ink: #0b1220;
  --ink-soft: #3d4a63;
  --ink-muted: #6b7a94;
  --surface: #f7faff;
  --surface-2: #ffffff;
  --line: rgba(10, 26, 58, 0.1);
  --shadow: 0 24px 60px rgba(0, 82, 204, 0.12);
  --radius: 18px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* —— Nav —— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 1rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.is-scrolled {
  background: rgba(247, 250, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 500;
}

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

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--blue-600);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding-top: 5.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(0, 128, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(59, 158, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #eef6ff 0%, var(--surface) 55%, #fff 100%);
}

.hero-glow {
  position: absolute;
  inset: auto -10% 35% 40%;
  height: 280px;
  background: radial-gradient(ellipse, rgba(0, 102, 255, 0.18), transparent 70%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero-layout {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
}

.hero-content {
  max-width: 40rem;
  animation: rise 0.9s ease both;
}

.hero-mark {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 24px rgba(0, 102, 255, 0.25));
  animation: rise 0.8s ease both;
}

.hero-eyebrow {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-size: 1.7rem;
  color: var(--blue-600);
  margin: 0 0 0.35rem;
  transform: rotate(-3deg);
  animation: float-in 1s 0.1s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.hero-tag {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--blue-600);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 1s 0.2s ease both;
}

.hero-bleed {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  width: 100%;
  animation: rise 1.1s 0.3s ease both;
}

.hero-bleed img {
  width: 100%;
  height: min(48vh, 520px);
  object-fit: cover;
  object-position: 72% 42%;
  display: block;
  border-radius: 0;
  box-shadow: 0 -1px 0 var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(0, 102, 255, 0.45);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(10, 26, 58, 0.06);
}

.btn-secondary:hover {
  border-color: rgba(0, 102, 255, 0.35);
  color: var(--blue-600);
}

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

.section-label {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.section-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 36rem;
}

.section-head {
  margin-bottom: 2.75rem;
}

/* —— Services —— */
.services {
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(0, 128, 255, 0.08), transparent 55%),
    var(--surface-2);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.75rem 1.25rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.service-list li:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}

.service-list li:nth-child(even) {
  padding-left: 2rem;
}

.service-list li.is-visible {
  opacity: 1;
  transform: none;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue-50), var(--blue-100));
  color: var(--blue-600);
  flex-shrink: 0;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-list h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.service-list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* —— About —— */
.about {
  background:
    linear-gradient(180deg, transparent, rgba(0, 128, 255, 0.04)),
    var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

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

.about-points {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.about-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}

/* —— Contact —— */
.contact {
  background: var(--surface-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-details li {
  display: grid;
  gap: 0.2rem;
}

.contact-details dt,
.contact-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-details a,
.contact-details span,
.contact-details address {
  font-style: normal;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}

.contact-form-wrap {
  background:
    radial-gradient(ellipse at top right, rgba(0, 128, 255, 0.08), transparent 50%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.75rem;
}

.contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.contact-form-wrap > p {
  margin: 0 0 1.35rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0.5rem 0 1.15rem;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.consent input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--blue-600);
}

.consent label {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.consent label a {
  font-weight: 600;
}

.sms-note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.form-status {
  display: none;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.form-status.is-success {
  display: block;
  background: #e8f8ef;
  color: #0d6b3a;
}

.form-status.is-error {
  display: block;
  background: #fdeeee;
  color: #9b1c1c;
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 102, 255, 0.28);
}

/* —— Footer —— */
.site-footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
}

.footer-brand:hover {
  text-decoration: none;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Legal pages —— */
.legal-page {
  padding: 7rem 0 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal-meta {
  color: var(--ink-muted);
  margin: 0 0 2.5rem;
  font-size: 0.95rem;
}

.legal-content {
  max-width: 42rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  font-size: 1rem;
}

.legal-content ul {
  padding-left: 1.2rem;
}

/* —— Animations —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: rotate(-3deg) translateY(10px);
  }
  to {
    opacity: 1;
    transform: rotate(-3deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
    max-height: 280px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list li:nth-child(odd),
  .service-list li:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

  .hero-bleed img {
    height: 36vh;
    object-position: 65% 38%;
  }
}

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

  .nav-links {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
  }

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

  .nav-links a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: var(--blue-50);
  }

  .nav-cta {
    justify-content: center;
    margin: 0.35rem;
  }

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

  .brand-text span {
    display: none;
  }

  section {
    padding: 4rem 0;
  }
}
