/* Attuned Labs — brand palette drawn from the logo */
:root {
  --bg: #0e192b;          /* exact logo background */
  --bg-deep: #0a1220;
  --bg-raise: #13223a;
  --line: rgba(56, 189, 248, 0.14);
  --text: #e8f1f8;
  --text-dim: #9db2c6;
  --blue: #2f7ff0;
  --cyan: #38bdf8;
  --teal: #2dd4bf;
  --grad: linear-gradient(100deg, var(--blue), var(--cyan) 55%, var(--teal));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav-name {
  font-family: "Montserrat", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

img { max-width: 100%; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(14, 25, 43, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.nav-mark { height: 34px; width: auto; border-radius: 8px; }

.nav-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
}
.nav-name .thin { font-weight: 600; color: var(--text-dim); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }

.nav-cta {
  padding: 8px 18px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  color: var(--cyan) !important;
}
.nav-cta:hover { background: rgba(56, 189, 248, 0.1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 8vh, 96px) 24px clamp(72px, 10vh, 120px);
}

.hero-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-waves svg { width: 100%; height: 100%; }

.hero-logo {
  position: relative;
  width: min(360px, 70vw);
  /* fade the square PNG edges into the page background */
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 71%);
  mask-image: radial-gradient(circle, #000 52%, transparent 71%);
  filter: drop-shadow(0 0 60px rgba(56, 189, 248, 0.18));
}

.hero-tagline {
  position: relative;
  font-size: clamp(30px, 5.4vw, 52px);
  font-weight: 800;
  margin-top: 8px;
}

.hero-sub {
  position: relative;
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--text-dim);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--grad);
  color: #06121f;
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(56, 189, 248, 0.38);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(157, 178, 198, 0.35);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ---------- Sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 110px) 24px;
  text-align: center;
}

.section-alt {
  max-width: none;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 18px;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 44px;
  text-align: left;
}

.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--cyan);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15.5px; }

/* ---------- Products ---------- */
.product {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 48px);
  margin-top: 44px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: left;
}

.product-icon {
  width: clamp(120px, 16vw, 170px);
  height: auto;
  border-radius: 22.5%;
  flex-shrink: 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.product-body h3 { font-size: 24px; margin-bottom: 10px; }

.product-sub {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--teal);
  margin-left: 10px;
  letter-spacing: 0.04em;
}

.product-body p { color: var(--text-dim); font-size: 16px; }

.product-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.product-links .btn { padding: 10px 22px; font-size: 15px; }

@media (max-width: 640px) {
  .product {
    flex-direction: column;
    text-align: center;
  }
  .product-links { justify-content: center; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-top: 48px;
  text-align: left;
}

.step-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 { font-size: 20px; margin: 10px 0 8px; }
.step p { color: var(--text-dim); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact-sub {
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 24px 44px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.footer-mark {
  height: 30px;
  width: auto;
  border-radius: 7px;
  opacity: 0.8;
  margin-bottom: 12px;
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .nav-name { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
}
