/* ─────────────────────────────────────────────────────────────────────────────
   SQUARK AI - CSS by Judah
    ─────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== Design Tokens ===== */
:root {
  /* Brand colors */
  --black: #000000;
  --white: #FFFFFF;
  --ecru: #F8F2E5;
  --charcoal: #1C1C1C;
  --taupe: #ABA69C;
  --taupe-dark: #8F8A80;
  --blue: #00AAFF;
  --green: #00CC66;
  --green-light: #66E699;
  --purple: #6600CC;
  --purple-light: #9966E6;
  --red: #E91E63;           /* keep red for pricing variant */
  --orange: #CC6600;

  /* Typography */
  --font-heading: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter',       -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii & layout */
  --border-radius: 16px;
  --pill-radius:   25px;
  --line-width:    3px;

  /* === Global hero centering under fixed navbar ===
     Default navbar height ≈ 72px (16 top + ~40 content + 16 bottom).
     Override per page by changing --hero-top-gap on the hero element. */
  --hero-top-gap: 72px;
}

/* ===== Reset / Base ===== */
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background: var(--ecru);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.navbar{
  background: var(--ecru);
  padding: 16px 0;
  position: fixed; inset: 0 0 auto 0;
  z-index: 1000;
}

.nav-container{
  max-width: 1200px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between;
}

.nav-logo{ display:flex; align-items:center; font-family:var(--font-heading); font-size:24px; font-weight:600; color:var(--black); text-decoration:none; letter-spacing:-.02em; }
.nav-logo-img{ height:32px; width:auto; display:block; }
.ai-text{ color:var(--blue); }

.nav-menu{ display:flex; list-style:none; gap:8px; }
.nav-link{ color:var(--black); text-decoration:none; font-weight:500; padding:12px 20px; border-radius:var(--pill-radius); font-size:16px; transition:background-color .2s; }
.nav-link:hover,.nav-link.active{ background:rgba(0,0,0,.08); }

.nav-cta{ display:flex; align-items:center; gap:16px; }
.search-icon{ font-size:20px; color:var(--taupe); cursor:pointer; }

.btn-demo{
  background:var(--black); color:var(--white);
  padding:12px 24px; border-radius:var(--pill-radius);
  text-decoration:none; font-weight:600; font-size:16px;
  border:2px solid var(--black); transition:all .2s; cursor:pointer;
}
.btn-demo:hover{ background:var(--charcoal); transform:translateY(-1px); }

/* ===== Hero (structure + centering) ===== */
.hero{
  /* unified centering: full viewport minus navbar gap */
  margin-top: var(--hero-top-gap) !important;
  min-height: calc(100vh - var(--hero-top-gap)) !important;
  display:flex; align-items:center;
  background: var(--ecru); /* default */
}

@media (max-width:960px){
  .hero{
    margin-top: calc(var(--hero-top-gap) + env(safe-area-inset-top)) !important;
    min-height: calc(100vh - (var(--hero-top-gap) + env(safe-area-inset-top))) !important;
  }
}

/* Home uses tighter 50px gap by default */
.hero.page-home{ --hero-top-gap: 50px; }

.hero-content{
  display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center;
}
.hero-title{ font-family:var(--font-heading); font-size:64px; font-weight:500; line-height:1.1; letter-spacing:-.02em; margin-bottom:24px; }
.hero-subtitle{ font-size:20px; color:var(--black); margin-bottom:32px; line-height:1.5; font-weight:400; }

.hero-buttons{ display:flex; gap:16px; align-items:center; }

/* CTA buttons (base) */
.btn-primary{
  background:var(--black); color:var(--white);
  padding:16px 32px; border-radius:var(--pill-radius);
  text-decoration:none; font-weight:600; font-size:16px;
  border:2px solid var(--black); transition:all .2s; cursor:pointer;
}
.btn-primary:hover{ background:var(--charcoal); transform:translateY(-1px); }

.btn-secondary{
  background:var(--white); color:var(--black);
  padding:16px 32px; border:2px solid var(--black);
  border-radius:var(--pill-radius); text-decoration:none;
  font-weight:600; font-size:16px;
  transition:all .2s; cursor:pointer;
}
.btn-secondary:hover{ background:var(--black); color:var(--white); transform:translateY(-1px); }

/* ===== Circular image with single blue divider line ===== */
.circular-image{ position:relative; width:400px; height:400px; margin:0 auto; }
.circular-img{ width:100%; height:100%; border-radius:50%; object-fit:cover; position:relative; }
.circular-image::after{
  content:''; position:absolute; top:0; left:50%;
  width:var(--line-width); height:100%;
  background:var(--blue); transform:translateX(-50%); z-index:2; border-radius:2px;
}

/* ===== Predictive cursor ===== */
.hero-predictions{ color:var(--taupe); font-weight:400; display:inline-block; position:relative; }
.cursor{
  display:inline-block; width:2px; height:1em; vertical-align:bottom;
  background-color: var(--blue);
  margin-left:1px; margin-right:2px;
  animation: blink 1s steps(2,start) infinite;
}
@keyframes blink{ to{ visibility:hidden; } }

/* Cursor visibility on blue hero */
.page-learn-more .cursor{ background:#fff; }

/* ===== Page background & hero color variants ===== */
.page-home .hero{ background:var(--ecru); color:var(--black); }
.page-product .hero{ background:var(--black); color:var(--white); }
.page-industries .hero{ background:var(--charcoal); color:var(--white); }
.page-resources .hero{ background:var(--taupe-dark); color:var(--white); }
.page-about .hero{ background:var(--black); color:var(--white); }
.page-demo .hero{ background:var(--orange); color:var(--white); }
.page-case-studies .hero{ background:var(--green); color:var(--white); }
.page-learn-more .hero{ background:var(--blue); color:var(--white); }
.page-pricing .hero{ background:var(--red); color:var(--white); }

/* Hero subtitles on dark/colored heroes */
.page-product  .hero-subtitle,
.page-industries .hero-subtitle,
.page-resources .hero-subtitle,
.page-about    .hero-subtitle,
.page-demo     .hero-subtitle,
.page-case-studies .hero-subtitle,
.page-learn-more  .hero-subtitle,
.page-pricing     .hero-subtitle{ color:var(--white); }

/* ===== Button contrast tweaks by page where needed ===== */
/* Homepage buttons: black + white pairing on ecru */
.page-home .btn-primary{ background:var(--black); color:var(--white); border-color:var(--black); }
.page-home .btn-secondary{ background:var(--white); color:var(--black); border-color:var(--black); }

/* Dark heroes: invert primary to white for contrast */
.page-product  .btn-primary,
.page-industries .btn-primary,
.page-resources .btn-primary,
.page-about    .btn-primary,
.page-demo     .btn-primary,
.page-case-studies .btn-primary,
.page-learn-more  .btn-primary,
.page-pricing     .btn-primary{
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Secondary on dark heroes stays outline white */
.page-product  .btn-secondary,
.page-industries .btn-secondary,
.page-resources .btn-secondary,
.page-about    .btn-secondary,
.page-demo     .btn-secondary,
.page-case-studies .btn-secondary,
.page-learn-more  .btn-secondary,
.page-pricing     .btn-secondary{
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.page-product  .btn-secondary:hover,
.page-industries .btn-secondary:hover,
.page-resources .btn-secondary:hover,
.page-about    .btn-secondary:hover,
.page-demo     .btn-secondary:hover,
.page-case-studies .btn-secondary:hover,
.page-learn-more  .btn-secondary:hover,
.page-pricing     .btn-secondary:hover{
  background: var(--white);
  color: var(--black);
}

/* ===== Features section ===== */
.features{ padding:80px 0; background:var(--white); }
.features-title{ font-family:var(--font-heading); font-size:48px; font-weight:600; text-align:center; margin-bottom:60px; letter-spacing:-.02em; line-height:1.2; }
.features-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }
.feature-card{ text-align:center; padding:32px 24px; border:2px solid var(--taupe); border-radius:var(--border-radius); background:var(--white); transition:all .3s; }
.feature-card:hover{ transform:translateY(-4px); box-shadow:0 8px 32px rgba(0,0,0,.1); }
.feature-icon{ font-size:48px; color:var(--blue); margin-bottom:24px; display:block; }
.feature-title{ font-family:var(--font-heading); font-size:20px; font-weight:600; margin-bottom:16px; letter-spacing:-.01em; }
.feature-description{ font-size:16px; color:var(--taupe-dark); line-height:1.5; margin-bottom:24px; }
.feature-cta{ color:var(--blue); text-decoration:none; font-weight:600; font-size:14px; transition:color .2s; }
.feature-cta:hover{ color:var(--black); }

/* ===== AI section ===== */
.ai-section{ padding:80px 0; background:var(--black); color:var(--white); }
.ai-content{ text-align:center; max-width:800px; margin:0 auto; }
.ai-badge{ display:inline-block; background:rgba(255,255,255,.1); padding:8px 16px; border-radius:20px; font-size:14px; font-weight:600; margin-bottom:24px; letter-spacing:.5px; }
.ai-title{ font-family:var(--font-heading); font-size:48px; font-weight:600; margin-bottom:24px; line-height:1.2; letter-spacing:-.02em; }
.ai-subtitle{ font-size:20px; margin-bottom:32px; line-height:1.5; opacity:.9; }

/* ===== Footer ===== */
.footer{ background:var(--black); color:var(--white); padding:60px 0 24px; }
.footer-content{ display:grid; grid-template-columns:1fr 2fr; gap:60px; margin-bottom:40px; }
.footer-logo .nav-logo{ color:var(--white); }
.footer-logo-img{ height:40px; width:auto; display:block; }
.footer-tagline{ margin-top:16px; color:rgba(255,255,255,.7); font-size:16px; line-height:1.5; }
.footer-links{ display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
.footer-column h4{ font-family:var(--font-heading); font-weight:600; margin-bottom:16px; font-size:18px; }
.footer-column ul{ list-style:none; }
.footer-column li{ margin-bottom:8px; }
.footer-column a{ color:rgba(255,255,255,.7); text-decoration:none; transition:color .2s; font-size:16px; }
.footer-column a:hover{ color:var(--white); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding-top:24px; display:flex; justify-content:space-between; align-items:center; }
.footer-legal{ display:flex; gap:24px; }
.footer-legal a{ color:rgba(255,255,255,.7); text-decoration:none; font-size:14px; transition:color .2s; }
.footer-legal a:hover{ color:var(--white); }

/* ===== Forms (generic + demo card) ===== */
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.form-group{ display:flex; flex-direction:column; }
.form-group label{ font-weight:600; margin-bottom:8px; color:var(--black); font-size:14px; }
.form-group input, .form-group select, .form-group textarea{
  padding:12px 16px; border:2px solid var(--taupe); border-radius:8px; font-size:16px; font-family:var(--font-body); transition:border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ outline:none; border-color:var(--blue); }
.form-group textarea{ min-height:100px; resize:vertical; }
.form-submit{ width:100%; padding:16px; background:var(--black); color:var(--white); border:none; border-radius:var(--pill-radius); font-size:16px; font-weight:600; cursor:pointer; transition:all .2s; margin-top:16px; }
.form-submit:hover{ background:var(--charcoal); transform:translateY(-1px); }

/* Demo layout helpers */
.demo-form-content{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.demo-form-container{ background:rgba(255,255,255,.95); padding:40px; border-radius:16px; box-shadow:0 8px 32px rgba(0,0,0,.1); }
.demo-form h3{ font-family:var(--font-heading); font-size:24px; font-weight:600; margin-bottom:24px; color:var(--black); text-align:center; }
.demo-benefits{ margin-top:32px; }
.demo-benefit{ display:flex; align-items:center; gap:12px; margin-bottom:16px; color:rgba(255,255,255,.9); }
.demo-benefit i{ font-size:20px; color:var(--white); }

/* ===== Dropdown (nav) ===== */
.nav-item{ position:relative; }
.dropdown-menu{
  position:absolute; top:100%; left:0; background:#fff; border-radius:12px;
  box-shadow:0 8px 32px rgba(0,0,0,.1); padding:16px 0; min-width:200px;
  opacity:0; visibility:hidden; transform:translateY(-10px); transition:all .3s; z-index:1000;
}
.nav-item:hover .dropdown-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown-item{ display:block; padding:12px 24px; color:#000; text-decoration:none; font-weight:500; transition:all .2s; }
.dropdown-item:hover{ background:#F8F2E5; color:#00AAFF; }

/* ===== Responsive ===== */
@media (max-width:1024px){
  .hero-content{ gap:60px; }
  .hero-title{ font-size:56px; }
  .features-grid{ grid-template-columns:repeat(2,1fr); gap:24px; }
}

@media (max-width:768px){
  .nav-menu{ display:none; }
  .nav-logo-img{ height:28px; }
  .footer-logo-img{ height:36px; }

  .hero-content{ grid-template-columns:1fr; text-align:center; gap:40px; }
  .hero-title{ font-size:48px; }
  .circular-image{ width:300px; height:300px; }

  .features-grid{ grid-template-columns:1fr; gap:24px; }
  .footer-content{ grid-template-columns:1fr; gap:40px; }
  .footer-links{ grid-template-columns:repeat(2,1fr); gap:32px; }
  .footer-bottom{ flex-direction:column; gap:16px; text-align:center; }

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

@media (max-width:480px){
  .nav-logo-img{ height:24px; }
  .footer-logo-img{ height:32px; }
  .hero-title{ font-size:36px; }
  .ai-title, .features-title{ font-size:36px; }
  .circular-image{ width:250px; height:250px; }
  .hero-buttons{ flex-direction:column; width:100%; }
  .btn-primary, .btn-secondary{ width:100%; text-align:center; }
}

/* ---- Hero after-cursor color (global) ---- */
/* Make ALL hero text that appears after the blinking cursor taupe */
.hero .predictions-after {
  color: var(--taupe, var(--taupe-dark, #9B968E)) !important; /* brand taupe fallback */
}

/* Keep “better” (before predictions) in normal color automatically
   since only the text after .cursor is inside .predictions-after. */

/* ---- Index (home) only: force the headline to 3 lines via width ---- */
/* No HTML change; we constrain line length so it wraps as:
   1) Better fundraising
   2) starts with
   3) better predictions… */
.hero.page-home .hero-title {
  max-width: 20.5ch;          /* desktop: fits "Better fundraising" on line 1 */
  word-break: normal;
  overflow-wrap: normal;
}
@media (max-width: 960px){
  .hero.page-home .hero-title {
    max-width: 18ch;          /* mobile tuning; adjust +/− 1ch if your wrap differs */
  }
}

/* ---- Cursor alignment polish (global) ---- */
.hero .cursor{
  vertical-align: -0.06em;    /* sits level with the text */
  margin-left: 2px;           /* slight breathing room before the next letter */
}

:root {
  /* Brand colors (core + extended excerpts) */
  --black: #000000;
  --white: #FFFFFF;
  --ecru: #F8F2E5;
  --charcoal: #1C1C1C;
  --taupe: #ABA69C;
  --taupe-dark: #8F8A80;
  --blue: #00AAFF;
  /* corrected */
  --green: #34D092;        /* was #00CC66 */
  --green-light: #85E3BE;  /* was #66E699 */
  --purple: #B983FF;       /* was #6600CC */
  --purple-light: #D5B4FF; /* was #9966E6 */
  --red: #FD5959;          /* was #E91E63 */
  --orange: #FD9656;       /* was #CC6600 */
}


/* ─────────────────────────────────────────────────────────────────────────── */
