/* ============================================================
   Prisma Technology — Shared Stylesheet
   Light theme · black + magenta accent (#cc00cc)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7fa;
  --bg-section: #fafafc;
  --surface: #ffffff;
  --surface-alt: #f4f4f7;
  --border: #ececf1;
  --border-strong: #d8d8e0;
  --text: #0a0a0f;
  --text-soft: #36363f;
  --text-dim: #5f5f6c;
  --text-muted: #8b8b97;
  --accent: #cc00cc;        /* magenta from the logo */
  --accent-deep: #9a009a;
  --accent-soft: #f9e6f9;
  --accent-glow: rgba(204, 0, 204, 0.18);
  --gradient: linear-gradient(135deg, #cc00cc 0%, #6b00b3 100%);
  --gradient-soft: linear-gradient(180deg, rgba(204, 0, 204, 0.08), rgba(204, 0, 204, 0));
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 15, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(10, 10, 15, 0.08);
  --shadow-lg: 0 24px 60px -20px rgba(10, 10, 15, 0.18);
  --max-w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

a { color: var(--accent-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

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

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

/* ===== NAVBAR ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  height: 36px;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

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

.nav-links a {
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover { color: var(--accent); }

.nav-links a.active {
  color: var(--text);
  font-weight: 600;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-cta.active::after { display: none; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background:
    radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 40px -12px var(--accent-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* ===== SECTION ===== */
section { padding: 80px 0; }

section.alt-bg {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}

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

/* ===== CARD GRID ===== */
.grid {
  display: grid;
  gap: 22px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 18px;
  color: #fff;
  font-weight: 800;
  position: relative;
}

.card-icon::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== FEATURE LIST ===== */
.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.feature-list li {
  padding-left: 26px;
  position: relative;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--text);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  padding: 36px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat:last-child { border-right: none; }

@media (max-width: 700px) {
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
}

.stat-num {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-num .accent { color: var(--accent); }

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 500;
}

/* ===== CTA BAND ===== */
.cta-band {
  margin: 60px auto;
  padding: 60px 36px;
  max-width: var(--max-w);
  border-radius: var(--radius-lg);
  background: var(--text);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}

.cta-band::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(40px);
}

.cta-band h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
  font-size: 17px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-band .btn-primary {
  background: var(--accent);
  color: #fff;
  position: relative;
}

.cta-band .btn-primary:hover {
  background: #fff;
  color: var(--text);
}

/* ===== ABOUT / TEXT BLOCK ===== */
.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

/* ===== CONTACT FORM ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-info h3 {
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--text);
}

.contact-info .row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info .row:last-child { border-bottom: none; }

.contact-info .label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-info .value { color: var(--text); font-size: 15px; }

.contact-info .value a { color: var(--text); }
.contact-info .value a:hover { color: var(--accent); }

form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 80px;
  background: var(--bg-section);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 32px; width: auto; }
.footer-brand .copy { color: var(--text-muted); }

.footer-inner a { color: var(--text-soft); }
.footer-inner a:hover { color: var(--accent); }

/* ===== UTILS ===== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 56px; }

/* ============================================================
   MOBILE / TABLET BREAKPOINTS
   ============================================================ */

/* Tablet — 900px and below already handled by .grid-3 / .grid-2 collapse */

/* Mobile — 768px and below: switch nav to hamburger */
@media (max-width: 768px) {
  .container { padding: 0 18px; }

  .nav-inner { padding: 12px 18px; }

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

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 18px 16px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav.is-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 15.5px;
  }

  .nav-links li:last-child a { border-bottom: none; }

  .nav-links a.active::after { display: none; }

  .nav-links a.active {
    color: var(--accent);
  }

  .nav-cta {
    margin-top: 10px;
    text-align: center;
    padding: 12px 18px;
    border-radius: 10px;
  }

  .nav-cta.active { color: #fff !important; }

  /* Hero */
  .hero { padding: 70px 0 60px; }

  h1 { font-size: clamp(32px, 8vw, 44px); line-height: 1.1; }

  .lede { font-size: 16px; }

  .cta-row { flex-direction: column; gap: 10px; }

  .cta-row .btn { width: 100%; justify-content: center; }

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

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

  .section-head h2 { font-size: clamp(26px, 6vw, 34px); }

  .section-head p { font-size: 15.5px; }

  /* Cards */
  .card { padding: 24px; }
  .card h3 { font-size: 17.5px; }

  /* Stats stack to 2 columns on tablet, 1 on phone */
  .stats { grid-template-columns: repeat(2, 1fr); }

  .stat { padding: 28px 18px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* CTA band */
  .cta-band { padding: 44px 22px; margin: 40px 0; border-radius: 16px; }
  .cta-band h2 { font-size: clamp(22px, 6vw, 30px); }
  .cta-band p { font-size: 15.5px; }
  .cta-band .btn { width: 100%; justify-content: center; }

  /* Contact */
  .contact-info, form { padding: 24px; }
  form button[type="submit"] { width: 100%; justify-content: center; }

  /* Footer */
  footer { padding: 28px 0; margin-top: 56px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
  .footer-brand img { height: 20px; }
}

/* Small phone — 420px and below: 1-column stats, smaller chrome */
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none !important; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .stat:last-child { border-bottom: none; }

  h1 { font-size: clamp(28px, 9vw, 38px); }
  .eyebrow { font-size: 11.5px; padding: 6px 12px; }

  .container { padding: 0 16px; }
  .nav-inner { padding: 12px 16px; }

  .card { padding: 22px; }
  .feature-list li { font-size: 14.5px; }
}
