/* AgentifyMe.com - CSS Stylesheet */

/* Design System & Variables */
:root {
  --primary-navy: #0f172a;
  --navy-light: #1e293b;
  --navy-dark: #020617;
  --slate-gray: #475569;
  --slate-light: #f8fafc;
  --slate-medium: #e2e8f0;
  --slate-dark: #334155;
  --accent-blue: #2563eb;
  --accent-light: #3b82f6;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.15);
  
  --text-dark: #0f172a;
  --text-medium: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1200px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-medium);
  background-color: #ffffff;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--slate-medium);
  color: var(--primary-navy);
  border: 1px solid transparent;
}

.btn-secondary:hover {
  background-color: var(--slate-light);
  border-color: var(--slate-medium);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* Badge component */
.badge {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--accent-glow);
  color: var(--accent-blue);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.badge-dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

/* Navigation Menu */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-medium);
  z-index: 1000;
  transition: var(--transition-normal);
}

header.scrolled {
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-blue);
  border-radius: 50%;
  display: inline-block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-medium);
  font-size: 0.95rem;
}

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

.nav-cta {
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-navy);
}

/* Section Common Layouts */
section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  color: var(--primary-navy);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--primary-navy) 100%);
  color: var(--text-light);
  padding: 9.5rem 0 7rem 0;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: -15%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: var(--slate-medium);
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

/* Interactive Dashboard/Terminal Demo Mockup */
.hero-visual {
  position: relative;
  z-index: 2;
}

.demo-dashboard {
  background-color: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.dash-header {
  background-color: var(--navy-dark);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dots span:nth-child(1) { background-color: #ef4444; }
.dash-dots span:nth-child(2) { background-color: #f59e0b; }
.dash-dots span:nth-child(3) { background-color: #10b981; }

.dash-title {
  color: var(--slate-medium);
  font-size: 0.75rem;
  font-family: monospace;
  letter-spacing: 0.05em;
}

.dash-body {
  padding: 1.5rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--slate-light);
  min-height: 280px;
}

.dash-row {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.dash-prompt {
  color: var(--accent-light);
  font-weight: bold;
}

.dash-response {
  color: #10b981;
}

.dash-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: #ffffff;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Problem Section */
.problem {
  background-color: var(--slate-light);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.problem-card {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-medium);
  transition: var(--transition-normal);
}

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

.problem-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* Solution / Offer Section */
.solution {
  background-color: #ffffff;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.solution-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  background-color: var(--slate-light);
  border: 1px solid var(--slate-medium);
  transition: var(--transition-normal);
}

.solution-card:hover {
  background-color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.solution-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-glow);
  color: var(--accent-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* How It Works Section (Process Timeline) */
.process {
  background-color: var(--slate-light);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--slate-medium);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #ffffff;
  border: 4px solid var(--accent-blue);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 2rem;
  background-color: #ffffff;
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-medium);
}

.timeline-step {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* Use Cases Section */
.use-cases {
  background-color: #ffffff;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
  list-style: none;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  background-color: var(--slate-light);
  border: 1px solid var(--slate-medium);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
  color: var(--text-medium);
}

.tab-btn:hover {
  background-color: var(--slate-medium);
}

.tab-btn.active {
  background-color: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}

.tabs-content {
  max-width: 900px;
  margin: 0 auto;
  min-height: 350px;
  position: relative;
}

.tab-pane {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.tab-pane.active {
  display: grid;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.usecase-details h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.usecase-details ul {
  list-style: none;
  margin: 1.5rem 0;
}

.usecase-details li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.usecase-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* Use Case Preview Box (Mocking an Integration Flow) */
.usecase-preview {
  background-color: var(--slate-light);
  border: 1px solid var(--slate-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.flow-step {
  background-color: #ffffff;
  border: 1px solid var(--slate-medium);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-badge {
  background-color: var(--accent-glow);
  color: var(--accent-blue);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.75rem;
}

.flow-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* Security & Human-in-the-Loop Section */
.security {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--navy-dark) 100%);
  color: var(--text-light);
}

.security h2, .security h3 {
  color: #ffffff;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.sec-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.sec-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.sec-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.security p {
  color: var(--slate-medium);
}

/* Call to Action Section (Banner style) */
.cta-banner {
  background-color: var(--accent-blue);
  color: #ffffff;
  text-align: center;
  padding: 5rem 0;
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* Lead Form Section */
.contact-section {
  background-color: var(--slate-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

.info-list {
  list-style: none;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  background-color: var(--accent-glow);
  color: var(--accent-blue);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}

.info-text h4 {
  font-size: 1rem;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.info-text p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Modern Form Styles */
.lead-form-container {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-medium);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-dark);
  background-color: #ffffff;
  border: 1px solid var(--slate-medium);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Success notification message box */
.form-success-box {
  display: none;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  color: #065f46;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.form-success-box h3 {
  color: #065f46;
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
  background-color: #ffffff;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--slate-medium);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 0.5rem 0;
}

.faq-question:hover {
  color: var(--accent-blue);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform var(--transition-normal);
  color: var(--slate-gray);
  margin-left: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease;
}

.faq-answer p {
  padding-top: 1rem;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-blue);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* arbitrary height to slide down */
}

/* Footer styling */
footer {
  background-color: var(--primary-navy);
  color: var(--text-light);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--slate-medium);
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 4rem;
  justify-content: flex-end;
}

.footer-column h4 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--slate-medium);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--slate-gray);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 21px;
  }
  
  .right {
    left: 0%;
  }
  
  .right::after {
    left: 21px;
  }
  
  .tab-pane {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .security-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
