/* ==========================================================================
   BrainCrete — design system
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-soft: #1e293b;
  --body: #475569;
  --body-soft: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f6f8f7;
  --brand: #0ea472;
  --brand-dark: #0b7d58;
  --brand-light: #e4f6ee;
  --brand-ink: #063d2b;
  --accent: #f2b134;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 24px -8px rgba(15, 23, 42, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(6, 61, 43, 0.25);
  --container: 1180px;
  --nav-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
  font-size: 18px;
  color: var(--body-soft);
  margin: 0;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--surface-alt);
}

/* ---------- buttons ---------- */

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

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-accent {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-md);
}

.btn-block {
  width: 100%;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.nav-brand img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--brand-dark);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* simple sub-nav used on faq / contact-us */

.subnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.subnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.subnav-brand img {
  height: 30px;
  width: auto;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 100px;
  background:
    radial-gradient(720px 420px at 85% -10%, rgba(14, 164, 114, 0.16), transparent 65%),
    radial-gradient(600px 380px at -5% 20%, rgba(242, 177, 52, 0.12), transparent 60%);
  overflow: hidden;
}

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

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.hero-sub {
  font-size: 19px;
  color: var(--body-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink);
  aspect-ratio: 16 / 9;
}

.hero-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- feature rows (image + text alternating) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.feature-row.reverse .feature-media {
  order: 2;
}

.feature-media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.feature-copy .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-copy .icon-badge img {
  width: 22px;
  height: 22px;
}

.feature-copy h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.feature-copy p {
  font-size: 16px;
  color: var(--body-soft);
}

.feature-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- pill stat row ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-pill:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-pill img {
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
}

.stat-pill h3 {
  font-size: 15px;
  margin: 0;
  color: var(--ink);
}

/* ---------- solutions / service cards ---------- */

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

.solution-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.solution-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

.solution-card .emoji {
  font-size: 28px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  border-radius: 14px;
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 15px;
  margin: 0;
  color: var(--body-soft);
}

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: var(--ink);
  color: #cbd5e1;
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.price-card.featured h3,
.price-card.featured .price {
  color: #fff;
}

.price-card.featured p {
  color: #94a3b8;
}

.price-card.featured .btn-outline {
  color: #fff;
  border-color: #475569;
}

.price-card.featured .btn-outline:hover {
  border-color: #fff;
}

.price-card .plan-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
}

.price-card h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.price-card .price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.price-card > p {
  font-size: 14.5px;
  margin-bottom: 24px;
  min-height: 62px;
}

.price-card .btn {
  margin-bottom: 28px;
}

.price-card .includes-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--body-soft);
}

.price-card.featured .includes-label {
  color: #94a3b8;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
}

.price-list img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.about-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.about-card p {
  font-size: 15.5px;
  color: var(--body-soft);
}

/* team (kept ready, hidden until real bios are supplied) */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
}

.team-card .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  background: var(--surface-alt);
}

.team-card h4 {
  font-size: 16px;
  margin: 0 0 4px;
}

.team-card .role {
  font-size: 13.5px;
  color: var(--body-soft);
}

/* ---------- brand strip ---------- */

.brand-strip {
  padding: 48px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-strip img {
  height: 30px;
  width: auto;
  opacity: 0.75;
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 72px 0 0;
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.footer-tagline {
  margin-bottom: 20px;
  font-size: 15px;
}

.newsletter-form {
  max-width: 380px;
  margin-bottom: 20px;
}

.newsletter-fields {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #131c2e;
  color: #fff;
  font-size: 14px;
}

.newsletter-form input[type="email"]::placeholder {
  color: #64748b;
}

.newsletter-form button {
  border: none;
}

.form-note {
  font-size: 13px;
  margin: 0;
  min-height: 18px;
}

.form-note.success {
  color: #4ade80;
}

.form-note.error {
  color: #f87171;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #131c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.social-row a:hover {
  background: var(--brand-dark);
}

.social-row img {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  padding: 6px 0;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 22px 0;
  text-align: center;
  font-size: 13.5px;
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Sub-pages: FAQ + Contact
   ========================================================================== */

.page-hero {
  padding: 64px 0 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 44px);
}

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

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

.faq-plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.faq-plus::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.faq-plus::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

.faq-item.open .faq-plus::after {
  transform: rotate(90deg);
  opacity: 0;
}

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

.faq-answer-inner {
  padding: 0 26px 22px;
  font-size: 15.5px;
  color: var(--body-soft);
}

.faq-answer-inner a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: underline;
}

.contact-wrap {
  padding: 40px 0 100px;
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.contact-card .section-head {
  margin-bottom: 36px;
}

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

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-success {
  text-align: center;
  padding: 24px 0;
}

.contact-success .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero .wrap,
  .feature-row,
  .feature-row.reverse .feature-media,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }

  .stat-row,
  .card-grid,
  .pricing-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-card.featured {
    transform: none;
  }

  .footer .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:first-of-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
  }

  body.nav-open .nav-links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 64px 0;
  }

  .stat-row,
  .card-grid,
  .pricing-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .footer .wrap {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 32px 24px;
  }
}
