@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
  --bg-color: #f2fcfb;
  --bg-color-alpha: rgba(250, 249, 247, 0.85);
  --text-strong: #1a1a1a;
  --text-soft: #666666;
  --text-faint: #a1a1aa;

  --brand-primary: #00c4c4;
  --brand-dark: #008888;
  --brand-light: rgba(0, 196, 196, 0.1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --border-light: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
}

body {
  background-color: var(--bg-color);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-strong);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.text-soft {
  color: var(--text-soft);
}

.text-faint {
  color: var(--text-faint);
}

.text-strong {
  color: var(--text-strong);
  font-weight: 500;
}

.font-serif {
  font-family: var(--font-serif);
}

.italic {
  font-style: italic;
}

.highlight-brand {
  color: var(--brand-dark);
}

/* Navbar */
.navbar-wrapper {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  height: 48px;
  padding: 0 8px 0 20px;
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  border: 1px solid var(--border-light);
}

.nav-brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-strong);
  background: rgba(0, 0, 0, 0.04);
}

.btn-nav-primary {
  background: var(--text-strong);
  color: #fff !important;
  font-weight: 500 !important;
  margin-left: 8px;
}

.btn-nav-primary:hover {
  background: #000;
}

@media (max-width: 600px) {
  .navbar-wrapper {
    padding: 0 16px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .navbar {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    height: 48px;
    flex-wrap: nowrap;
    justify-content: space-between;
    overflow: hidden;
  }

  .navbar::-webkit-scrollbar {
    display: none;
  }

  .nav-brand {
    font-size: 18px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .nav-links a:not(.btn-nav-primary) {
    display: none;
  }

  .btn-nav-primary {
    margin-right: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--border-medium);
}

/* Sections */
.section {
  padding: 90px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero */
.hero {
  padding-top: 180px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: fadeBlurIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeBlurIn {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-primary);
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 300;
  color: var(--text-strong);
  max-width: 800px;
  margin: 0 auto 24px;
  letter-spacing: -0.03em;
}

.hero-title strong {
  font-weight: 500;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-faint);
}

/* Bento Grid */
.bento-header {
  text-align: center;
  margin-bottom: 42px;
}

.bento-header h2 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 300;
  margin-bottom: 16px;
}

.bento-header p {
  font-size: 18px;
  color: var(--text-soft);
  font-weight: 300;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  width: 100%;
}

.bento-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

/* specific grid placements */
.bento-large {
  grid-column: span 8;
}

.bento-small {
  grid-column: span 4;
}

.bento-half {
  grid-column: span 6;
}

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

  .bento-large,
  .bento-small,
  .bento-half {
    grid-column: span 1;
  }
}

.bento-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.bento-desc {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 24px;
}

/* Mockup UI within Bento */
.mock-ui {
  margin-top: auto;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-color);
  overflow: hidden;
}

.mock-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-medium);
}

.mock-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-msg {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 85%;
  line-height: 1.4;
}

.msg-in {
  background: #fff;
  border: 1px solid var(--border-light);
  align-self: flex-start;
  color: var(--text-strong);
}

.msg-out {
  background: var(--brand-light);
  color: var(--brand-dark);
  align-self: flex-end;
}

.msg-cass {
  background: var(--text-strong);
  color: #fff;
  align-self: flex-start;
  border-radius: 10px 10px 10px 2px;
}

.msg-meta {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* Setup Section */
.setup-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: #ffffff;
}

.setup-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 300;
  margin-bottom: 40px;
}

.steps-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 0;
  text-align: left;
}

.step {
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-height: 126px;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 48px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

.step-line {
  width: 1px;
  flex: 1;
  margin: 8px 0;
  background: var(--border-medium);
}

.step-active .step-num {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.step-active .step-line {
  background: linear-gradient(var(--brand-primary), var(--border-medium));
}

.step-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 5px 0 28px;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: var(--brand-dark);
  background: var(--brand-light);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-strong);
  margin-top: 2px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
  margin-top: 6px;
}

/* Audience Section */
.audience-section {
  padding: 96px 24px;
  background: var(--bg-color);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.audience-intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-eyebrow {
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audience-intro h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.30;
}

.audience-intro > p:last-child {
  max-width: 630px;
  margin: 18px auto 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.65;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.audience-card {
  min-width: 0;
  padding: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.audience-card-featured {
  border-color: rgba(0, 196, 196, 0.3);
  background: #fff;
}

.audience-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 12px;
}

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

.audience-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
}

.audience-card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.audience-memory {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 680px;
  margin: 32px auto 0;
  color: var(--text-soft);
  font-size: 14px;
  text-align: center;
}

.audience-memory strong {
  color: var(--text-strong);
  font-weight: 500;
}

.audience-memory-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 0 0 5px var(--brand-light);
}

@media (max-width: 600px) {
  .steps-wrapper {
    padding: 8px 0;
  }

  .step {
    gap: 16px;
    min-height: 118px;
  }

  .step-marker {
    flex-basis: 42px;
  }

  .step-num {
    width: 42px;
    height: 42px;
    font-size: 12px;
  }

  .step-content {
    gap: 12px;
    padding-bottom: 24px;
  }

  .step-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .audience-section {
    padding: 72px 20px;
  }

  .audience-intro {
    margin-bottom: 32px;
  }

  .audience-intro > p:last-child {
    font-size: 16px;
    text-align: center;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .audience-card {
    padding: 24px;
  }

  .audience-memory {
    align-items: center;
    text-align: center;
    font-size: 12px;
  }
}

/* Final CTA */
.final-cta {
  padding: 40px 24px 120px 24px;
  text-align: center;
  background: var(--bg-color);
}

.final-cta h2 {
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 300;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 32px;
}

.early-access-cta {
  padding: 88px 24px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.early-access-cta .section-eyebrow {
  margin-bottom: 16px;
}

.early-access-cta h2 {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.early-access-cta > p:not(.section-eyebrow) {
  max-width: 610px;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.6;
}

.early-access-note {
  display: block;
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 13px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

/* FAQ Accordion */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  cursor: pointer;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-strong);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--brand-dark);
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-soft);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon svg {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}

/* Forms */
.form-container {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

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

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text-strong);
  background: var(--bg-color);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-light);
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.founder-pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 16px 20px;
  color: var(--text-soft);
  background: rgba(0, 196, 196, 0.08);
  border: 1px solid rgba(0, 196, 196, 0.2);
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.founder-pricing-note strong {
  color: var(--brand-dark);
  font-weight: 600;
}

.founder-pricing-icon {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--brand-dark);
  background: #fff;
  border-radius: 10px;
}

.founder-pricing-icon svg {
  width: 20px;
  height: 20px;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--brand-primary);
  box-shadow: 0 12px 40px rgba(0, 196, 196, 0.06);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 48px;
  font-weight: 300;
  color: var(--text-strong);
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.pricing-price span {
  font-size: 16px;
  color: var(--text-soft);
}

.pricing-features {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand-primary);
}

/* Demo Chat Animation and Styles */
@keyframes blink { 50% { border-color: transparent; } }
.cursor-blink { animation: blink 1s step-end infinite; }

.demo-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeInDemo 0.4s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

@keyframes fadeInDemo {
  to { opacity: 1; transform: translateY(0); }
}

.demo-msg.user {
  background: var(--text-strong);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.demo-msg.cass {
  background: #fff;
  color: var(--text-strong);
  border: 1px solid var(--border-light);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Security cards */
.security-grid {
  width: 100%;
}

.security-card {
  min-width: 0;
  margin-bottom: 5em;
}

/* Scrollbar for demo chat */
#demo-chat-body::-webkit-scrollbar {
  width: 6px;
}
#demo-chat-body::-webkit-scrollbar-track {
  background: transparent;
}
#demo-chat-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
}

/* Mobile layout: keep every section inside the visual viewport and stack cards. */
@media (max-width: 900px) {
  .section,
  .setup-section,
  .final-cta,
  footer {
    width: 100%;
    max-width: 100%;
  }

  .bento-grid {
    display: flex;
    flex-direction: column;
  }

  .bento-item,
  .bento-large,
  .bento-small,
  .bento-half {
    width: 100%;
    min-width: 0;
  }

  .steps-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .step,
  .mock-ui,
  .mock-msg,
  .security-grid,
  .security-card {
    min-width: 0;
  }

  .security-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 20px;
  }

  .section.hero {
    padding-top: 112px;
  }

  .contact-hero {
    padding-top: 160px !important;
  }

  .bento-grid {
    gap: 16px;
  }

  .bento-item {
    padding: 28px;
    border-radius: 20px;
  }

  .setup-section {
    padding: 64px 20px;
  }

  .steps-wrapper {
    gap: 28px;
  }
}
