/* ==========================================================================
   Refrain Collective — styles.css
   Design system: "Clear Signal" hybrid (v2, 2026-08-19)
   Type: IBM Plex Sans (body/display), IBM Plex Mono (labels)
   Palette: navy #0a103a · cobalt #2440ff · cyan #35e0d2 · white
   ========================================================================== */

:root {
  --white: #ffffff;
  --paper: #f8f9fb;
  --ink: #101418;
  --navy: #0a103a;
  --navy-2: #131c56;
  --slate: #4b5563;
  --cobalt: #2440ff;
  --cobalt-bright: #4d66ff;
  --cyan: #35e0d2;
  --cobalt-soft: #e8ebff;
  --line: #e4e7ec;
  --line-dark: #232c6b;
  --max: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 16, 58, 0.92);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  max-width: var(--max);
  margin: 0 auto;
}

.wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wordmark svg, .wordmark img { display: block; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a { text-decoration: none; color: #aab1d6; }
.nav-links a:hover { color: #fff; }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--cobalt);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--cobalt-bright); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle[hidden] { display: none; }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(77, 102, 255, 0.07) 39px, rgba(77, 102, 255, 0.07) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(77, 102, 255, 0.07) 39px, rgba(77, 102, 255, 0.07) 40px),
    radial-gradient(1100px 560px at 68% -12%, var(--navy-2) 0%, var(--navy) 60%);
  color: #fff;
  padding: 120px 40px 0;
  overflow: hidden;
}

.hero-inner { max-width: var(--max); margin: 0 auto; }

.hero .mono { display: inline-block; margin-bottom: 24px; color: var(--cyan); }

.hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin-bottom: 28px;
}

.hero h1 .accent { color: var(--cobalt-bright); }

.hero .lede {
  font-size: 19px;
  color: #b8bfe0;
  max-width: 780px;
  margin-bottom: 40px;
}

.lede-brand {
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 84px; }

.btn-primary {
  background: var(--cobalt);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  transition: background 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--cobalt-bright); }

.btn-ghost {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border: 1.5px solid var(--line-dark);
  border-radius: 6px;
  transition: border-color 0.15s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--cyan); }

.hero-wave { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   Audience strip
   -------------------------------------------------------------------------- */

.audience {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 26px 0;
}

.audience-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: var(--slate);
  letter-spacing: 0;
}

.audience-inner span::before { content: "\2192  "; color: var(--cobalt); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section { padding: 96px 0; }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head .mono { display: block; margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-head p { color: var(--slate); font-size: 17px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px 32px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service-card:hover {
  border-color: var(--cobalt);
  box-shadow: 0 4px 24px rgba(36, 64, 255, 0.07);
}
.service-card .mono { display: block; margin-bottom: 18px; }
.service-card h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.service-card p { font-size: 15.5px; color: var(--slate); }

/* Promise band */
.promise { background: var(--navy); color: #fff; }
.promise .section-head h2 { color: #fff; }
.promise .section-head p { color: #9aa3c8; }
.promise .mono { color: var(--cyan); }

.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.promise-item { border-top: 2px solid var(--cobalt-bright); padding-top: 22px; }
.promise-item h3 { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.promise-item p { font-size: 15px; color: #9aa3c8; }

/* Work */
.work-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.work-item:last-child { border-bottom: 1px solid var(--line); }
.work-item h3 { font-size: 22px; font-weight: 600; margin-top: 10px; letter-spacing: -0.01em; }
.work-item p { color: var(--slate); font-size: 15.5px; }

/* Contact */
.contact { background: var(--cobalt-soft); }

.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  max-width: 840px;
  margin: 0 auto;
  padding: 60px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  white-space: nowrap;
}
.contact-card p {
  color: #b8bfe0;
  margin-bottom: 30px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.contact-card .mono { color: var(--cyan); display: block; margin-bottom: 14px; }

/* Footer */
footer {
  padding: 30px 0;
  background: var(--navy);
  color: #8a91b8;
  font-size: 13.5px;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .services-grid,
  .promise-grid { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; gap: 10px; }
  .wrap, .nav { padding-left: 22px; padding-right: 22px; }
  section { padding: 64px 0; }
  .hero { padding: 76px 22px 0; }
  .contact-card { padding: 40px 24px; }
  .contact-card h2 { white-space: normal; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid var(--line-dark);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 14px 22px;
    color: #fff;
  }
}
