/* Crescendo Labs — shared styles */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-elevated: #ffffff;
  --text: #14161c;
  --text-soft: #565b68;
  --border: #e7e9f0;
  --brand: #5b4bff;
  --brand-2: #9d6bff;
  --brand-ink: #ffffff;
  --shadow: 0 10px 30px rgba(20, 22, 28, 0.08);
  --radius: 16px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d12;
    --bg-soft: #12141c;
    --bg-elevated: #14161f;
    --text: #f2f3f7;
    --text-soft: #a2a7b6;
    --border: #23262f;
    --brand: #8f80ff;
    --brand-2: #b78bff;
    --shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  box-shadow: var(--shadow);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-soft); }

/* Hero */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 14ch;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-head p { color: var(--text-soft); margin: 0; font-size: 1.05rem; }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-soft); font-size: 0.98rem; }

/* Apps list (names only) */
.apps {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}
.app-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 40px;
  min-width: 220px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.app-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.app-mark {
  width: 48px; height: 48px; flex: none;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
}
.app-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Product spotlight */
.spotlight {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.spotlight .badge {
  font-size: 0.8rem; font-weight: 600; color: var(--brand);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.spotlight h2 { font-size: 2rem; letter-spacing: -0.02em; margin: 10px 0 14px; }
.spotlight p { color: var(--text-soft); font-size: 1.05rem; margin: 0 0 20px; }
.spotlight ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.spotlight li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); }
.spotlight li::before {
  content: "";
  width: 18px; height: 18px; flex: none; margin-top: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.spotlight .visual {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 60%),
    linear-gradient(160deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow);
}
.spotlight .visual span { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.02em; }

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 24px;
  padding: 56px 32px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.cta-band p { margin: 0 0 26px; opacity: 0.92; font-size: 1.1rem; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); }
.cta-band .btn-light { background: #fff; color: var(--brand); }

/* Contact page */
.contact-hero { padding: 80px 0 24px; text-align: center; }
.contact-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; margin: 0 0 14px; }
.contact-hero p { color: var(--text-soft); font-size: 1.15rem; max-width: 52ch; margin: 0 auto; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 64px;
}
.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.contact-card p { color: var(--text-soft); margin: 0 0 20px; }
.contact-method {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.contact-method:first-of-type { border-top: none; }
.contact-method .m-icon {
  width: 42px; height: 42px; flex: none;
  border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
}
.contact-method .m-label { font-size: 0.85rem; color: var(--text-soft); }
.contact-method .m-value { font-weight: 600; }

/* Form */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--text-soft); margin-top: 4px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 780px) {
  .spotlight { grid-template-columns: 1fr; padding: 32px; }
  .spotlight .visual { max-width: 260px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .hero { padding: 64px 0 40px; }
}

@media (max-width: 520px) {
  .nav-links .nav-only { display: none; }
}
