/* ==========================================================================
   bloompipe — Stylesheet
   Table of contents:
   1. Design tokens (CSS variables)
   2. Reset & base elements
   3. Layout helpers
   4. Buttons
   5. Header & navigation
   6. Hero section
   7. Methodology section
   8. Services section
   9. Culture / about section
   10. Contact section
   11. Footer
   12. Responsive breakpoints
   13. Accessibility & motion preferences
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Palette */
  --purple: #A275F0;
  --purple-hover: #8e5de0;
  --purple-light: #f4efff;
  --purple-subtle: #e9ddff;

  --lime: #C3F075;
  --lime-dark: #3a5010;
  --lime-light: #f7fde8;

  --coral: #F08B75;
  --coral-hover: #e0755f;
  --coral-light: #fff3f0;

  /* Backgrounds & neutrals */
  --bg: #FAF8FC;
  --surface: #ffffff;
  --dark: #121019;
  --dark-card: #1c1827;
  --slate-800: #2d2838;
  --slate-600: #585168;
  --slate-400: #938ba0;
  --border: #ece6f5;

  /* UI tokens */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-soft: 0 10px 30px -10px rgba(162, 117, 240, 0.12);
  --shadow-hover: 0 20px 40px -15px rgba(162, 117, 240, 0.2);

  --maxw: 1140px;

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- 2. Reset & base elements ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--dark);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.025em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* ---------- 3. Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; background: var(--bg); }

.section-head { max-width: 680px; margin-bottom: 56px; }

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 { font-size: clamp(30px, 3.5vw, 42px); }

.section-head .lead {
  margin-top: 16px;
  color: var(--slate-600);
  font-size: 18px;
}

.badge-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  background: var(--lime);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(195, 240, 117, 0.35);
}

.badge-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dark);
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  font-family: inherit;
}

.btn-cta {
  background: var(--coral);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(240, 139, 117, 0.4);
}

.btn-cta:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(240, 139, 117, 0.55);
}

.btn-secondary {
  background: var(--surface);
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple-hover);
  transform: translateY(-2px);
}

.btn-nav-cta {
  padding: 10px 22px;
  font-size: 14px;
}

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 252, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  color: var(--dark);
  letter-spacing: -0.03em;
}

.brand-logo .logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo .logo-icon img {
  width: 32px;
  height: 32px;
}

.footer-brand .logo-icon {
  width: 30px;
  height: 30px;
}

.footer-brand .logo-icon img {
  width: 30px;
  height: 30px;
}

.footer-brand { font-size: 20px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.primary-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-600);
  transition: color 0.2s;
}

nav.primary-nav a:hover {
  color: var(--purple);
}

/* ---------- 6. Hero section ---------- */
.hero {
  padding: 80px 0 96px;
  background: var(--bg);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 4.5vw, 54px);
  color: var(--dark);
}

.hero h1 span.purple-text {
  color: var(--purple);
}

.hero .lead {
  margin-top: 20px;
  font-size: 19px;
  color: var(--slate-600);
  line-height: 1.6;
  max-width: 54ch;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-vibe-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.vibe-tag {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--dark);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.vibe-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--dark);
}

.vibe-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vibe-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-800);
  border: 1px solid var(--border);
}

.vibe-icon {
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
  color: var(--purple);
}

/* ---------- 7. Methodology section ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--purple-subtle);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: 16px;
}

.process-card h3 { font-size: 18px; margin-bottom: 10px; }

.process-card p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.5;
}

/* ---------- 8. Services section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.service-icon-box {
  font-size: 15px;
  margin-bottom: 20px;
  background: var(--purple-light);
  color: var(--purple);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: var(--font-mono);
}

.service-card h3 { font-size: 20px; margin-bottom: 12px; }

.service-card p {
  color: var(--slate-600);
  font-size: 14.5px;
  line-height: 1.6;
  flex-grow: 1;
}

.service-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--purple);
}

/* ---------- 9. Culture / about section ---------- */
.culture-box {
  background: var(--dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  box-shadow: 0 20px 40px rgba(18, 16, 25, 0.12);
}

.culture-box h2 {
  color: #ffffff;
  font-size: 34px;
  margin-bottom: 20px;
}

.culture-box p {
  color: var(--slate-400);
  font-size: 16.5px;
  line-height: 1.7;
}

.culture-pills {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pill-item {
  background: var(--dark-card);
  border: 1px solid var(--slate-800);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-item .check {
  color: var(--lime);
  font-weight: 800;
}

/* ---------- 10. Contact section ---------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}

.contact-lead { margin-top: 16px; }

.btn-block {
  width: 100%;
  margin-top: 10px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--surface);
}

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

.form-note {
  font-size: 13px;
  color: var(--slate-400);
  margin-top: 14px;
  text-align: center;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--lime-light);
  border: 1px solid var(--lime);
  color: var(--lime-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.form-success.is-visible {
  display: flex;
}

/* ---------- 11. Footer ---------- */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  font-size: 14px;
  color: var(--slate-600);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--slate-600);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--purple); }

.footer-copy {
  font-size: 13px;
  color: var(--slate-400);
}

/* ---------- 12. Responsive breakpoints ---------- */
@media (max-width: 992px) {
  .hero .wrap,
  .contact-wrapper,
  .culture-box {
    grid-template-columns: 1fr;
  }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .culture-box { padding: 36px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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

  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
  }

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

  nav.primary-nav a {
    width: 100%;
    padding: 10px 0;
  }

  .nav-cta-desktop { display: none; }
}

@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .section { padding: 64px 0; }
  .culture-box { padding: 28px; }
  .contact-card { padding: 28px 22px; }
}

/* ---------- 13. Accessibility & motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
