/* Reset & Base */
@font-face {
  font-family: "Courier Prime";
  src: url("../sitecursor/assets/CourierPrime-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../sitecursor/assets/CourierPrime-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../sitecursor/assets/CourierPrime-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../sitecursor/assets/CourierPrime-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

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

:root {
  --primary: #dc2626;
  --primary-light: rgba(220, 38, 38, 0.1);
  --primary-dark: #b91c1c;
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #171717;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius: 16px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Courier Prime", ui-monospace, "Cascadia Code", monospace;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.accent {
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title.light {
  color: var(--text-light);
}

.section-title.center {
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.pulse {
  animation: pulse 2s infinite;
}

.pulse:hover {
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 6rem 0 8rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at top right, var(--primary-light), var(--bg) 60%);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-content {
    flex-direction: row;
    gap: 5rem;
  }
}

.hero-text {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-text {
    text-align: left;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin-left: 0;
    font-size: 1.5rem;
  }
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image-glow {
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: 0.2;
  filter: blur(100px);
  border-radius: 50%;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.05); }
}

.logo-img {
  position: relative;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
  .logo-img {
    width: 450px;
    height: 450px;
  }
}

/* Problems Section */
.problems {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .problems-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.problem-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.problem-card:hover {
  box-shadow: var(--shadow);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.125rem;
}

/* Solution Section */
.solution {
  padding: 6rem 0;
}

.solution-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .solution-content {
    flex-direction: row;
  }
}

.chat-demo {
  flex: 1;
  background: #e8e5de;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  max-width: 400px;
  width: 100%;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-name {
  font-weight: 700;
  font-size: 0.875rem;
  display: block;
}

.chat-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
  max-width: 85%;
}

.message-user {
  background: #dcf8c6;
  align-self: flex-end;
  border-top-right-radius: 4px;
}

.message-bot {
  background: white;
  align-self: flex-start;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-calories {
  font-weight: 600;
  margin: 0.5rem 0;
}

.nutrition-table {
  background: #f9fafb;
  border-radius: 8px;
  padding: 0.75rem;
  font-family: "Courier Prime", ui-monospace, monospace;
  font-size: 0.75rem;
}

.nutrition-row {
  display: flex;
  justify-content: space-between;
  padding: 0.125rem 0;
}

.message-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
}

.message-total strong {
  color: var(--primary);
}

.solution-text {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .solution-text {
    text-align: left;
  }
}

.solution-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.checkmarks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .checkmark {
    justify-content: flex-start;
  }
}

.checkmark-icon {
  width: 40px;
  height: 40px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
}

.checkmark span {
  font-size: 1.125rem;
  font-weight: 600;
}

/* Capabilities Section */
.capabilities {
  padding: 6rem 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

.title-underline {
  width: 96px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 1.5rem auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: rgba(38, 38, 38, 0.5);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #404040;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(220, 38, 38, 0.5);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: #404040;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #9ca3af;
}

/* Personalization Section */
.personalization {
  padding: 6rem 0;
}

.personalization-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .personalization-content {
    flex-direction: row;
  }
}

.personalization-visual {
  flex: 1;
  background: linear-gradient(135deg, #f3f4f6, #f9fafb);
  padding: 3rem;
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
}

.visual-lines {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.visual-line {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.visual-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.visual-bar {
  height: 16px;
  background: #e5e7eb;
  border-radius: 4px;
}

.visual-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #f3f4f6;
  text-align: center;
}

.visual-card p {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
}

.personalization-text {
  flex: 1;
}

.personalization-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Social Proof Section */
.social-proof {
  padding: 6rem 0;
  background: var(--primary);
  color: var(--text-light);
  text-align: center;
}

.social-proof-content {
  max-width: 800px;
  margin: 0 auto;
}

.social-icon {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.social-proof h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
}

.social-proof p {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  opacity: 0.9;
  line-height: 1.6;
}

/* How to Start Section */
.how-to-start {
  padding: 6rem 0 8rem;
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0 4rem;
  position: relative;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    justify-content: center;
  }
}

.steps-line {
  display: none;
}

@media (min-width: 768px) {
  .steps-line {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 4px;
    background: #f3f4f6;
    z-index: 0;
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.3);
}

.step p {
  font-size: 1.125rem;
  font-weight: 700;
}

.cta-wrapper {
  text-align: center;
}

.cta-wrapper .btn {
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-wrapper .btn:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer p {
  color: var(--text-muted);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero {
    padding: 4rem 0 6rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .problems, .solution, .capabilities, .personalization, .how-to-start {
    padding: 4rem 0;
  }
}
