/* Raire Automations — shared styles */

:root {
  --bg: #070a12;
  --bg-elevated: #0d1220;
  --bg-elevated-2: #131a2c;
  --text: #f4f6fb;
  --text-muted: #9aa4bd;
  --text-faint: #6b7590;
  --accent: #3b82f6;
  --accent-bright: #5b9dff;
  --accent-cyan: #22d3ee;
  --accent-violet: #8b6ef6;
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.16);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% -10%, rgba(59, 130, 246, 0.16), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(139, 110, 246, 0.12), transparent 40%);
  pointer-events: none;
}

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

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

ul {
  margin: 0;
  padding: 0;
}

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

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2f6fe0);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(59, 130, 246, 0.7);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-bright);
}

.btn-secondary:hover {
  border-color: var(--accent-bright);
  background: var(--bg-elevated-2);
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* Hero */
.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 820px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ffffff 30%, #c9d6f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Page hero (interior pages) */
.page-hero {
  padding: 64px 0 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  max-width: 720px;
  margin: 0 auto 16px;
}

.page-hero p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Workflow diagram */
.workflow-wrap {
  padding: 20px 0 40px;
}

.workflow-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.workflow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 640px;
}

.wf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 128px;
  text-align: center;
  flex-shrink: 0;
}

.wf-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
}

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

.wf-node span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.wf-arrow {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.7;
}

.wf-arrow svg {
  width: 28px;
  height: 16px;
}

/* Trust strip */
.trust-strip {
  padding: 12px 0 64px;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Sections */
section {
  padding: 72px 0;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}

.section-header p {
  font-size: 1.02rem;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 12%, rgba(255, 255, 255, 0.02) 88%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Problem list */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.problem-item svg {
  width: 20px;
  height: 20px;
  color: #f5a35c;
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-item p {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}

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

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 110, 246, 0.18));
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-bright);
}

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

.card h3 {
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Steps (How it works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-bright);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
}

/* Who we help */
.who-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 760px;
  margin: 28px auto 0;
}

.who-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Why Raire */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-item {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.why-item h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}

.why-item p {
  margin: 0;
  font-size: 0.94rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 64px 0;
}

.cta-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 32px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--bg-elevated) 0%, var(--bg-elevated-2) 100%);
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow);
}

.cta-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-card p {
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}

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

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-bright);
  transition: transform 0.2s ease;
}

.faq-item[data-open="true"] .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer-inner {
  padding: 0 22px 20px;
}

.faq-answer-inner p {
  margin: 0;
  font-size: 0.95rem;
}

/* Forms */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-field .optional {
  color: var(--text-faint);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 18px;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(34, 211, 153, 0.12);
  border: 1px solid rgba(34, 211, 153, 0.3);
  color: #6ee7b7;
}

.form-status.error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

/* Contact info row */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 40px;
}

.contact-info-item {
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-info-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.contact-info-item a,
.contact-info-item p {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
}

/* Legal pages */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.legal-content ul {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.legal-note {
  background: var(--bg-elevated);
  border: 1px solid rgba(245, 163, 92, 0.35);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: #f5c896;
}

.legal-note strong {
  color: #f5a35c;
}

/* 404-ish empty states not needed */

/* Responsive */
@media (max-width: 880px) {
  .card-grid,
  .steps-grid,
  .why-grid,
  .problem-grid,
  .trust-grid,
  .contact-info-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    gap: 10px;
  }

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

  body.nav-open .nav-links a {
    padding: 12px 0;
    width: 100%;
  }

  body.nav-open .nav-cta .btn-primary {
    display: inline-flex;
  }

  .hero {
    padding: 56px 0 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}
