/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #9acb56;
  --primary-hover: #86b445;
  --primary-light: #f3faf0;
  --dark: #111827;
  --dark-light: #374151;
  --text-muted: #6b7280;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --border-focus: #9acb56;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(17, 24, 39, 0.05), 0 4px 6px -2px rgba(17, 24, 39, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(17, 24, 39, 0.08), 0 10px 10px -5px rgba(17, 24, 39, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-headings: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

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

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Common Layout Elements */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-bg-white {
  background-color: var(--white);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: var(--primary-light);
  color: var(--dark-light);
  border: 1px solid rgba(154, 203, 86, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.badge-blue {
  background-color: #eff6ff;
  color: var(--accent-blue);
  border-color: #dbeafe;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--dark-light);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--light);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background-color: #1f2937;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* Cards */
.card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(154, 203, 86, 0.4);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-light);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--white);
  color: var(--dark);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(154, 203, 86, 0.15);
}

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

/* Navigation Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  grid-column: 2;
  justify-self: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  grid-column: 1;
  justify-content: flex-start;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark-light);
  position: relative;
}

.nav-link:hover {
  color: var(--dark);
}

.nav-link.active {
  color: var(--dark);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 3;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--dark);
}

/* Home Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  padding-right: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-title span {
  background: linear-gradient(135deg, var(--dark) 60%, var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

/* Hero Workflow Diagram */
.hero-visual {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
}

.workflow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
}

.workflow-sources {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.source-node {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  width: 140px;
  box-shadow: var(--shadow-sm);
}

.source-node img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.workflow-arrows {
  flex-grow: 1;
  height: 120px;
  position: relative;
}

.workflow-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.flow-path {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
}

.flow-path-active {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-dasharray: 8 4;
  animation: flowAnimation 20s linear infinite;
}

@keyframes flowAnimation {
  to {
    stroke-dashoffset: -200;
  }
}

.workflow-engine {
  background-color: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  width: 180px;
  z-index: 2;
  box-shadow: var(--shadow-md);
  position: relative;
}

.workflow-engine::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px dashed var(--primary);
  border-radius: 24px;
  animation: rotateBorder 30s linear infinite;
}

@keyframes rotateBorder {
  to {
    transform: rotate(360deg);
  }
}

.engine-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.engine-list {
  list-style: none;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.engine-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dark-light);
}

.engine-list i {
  color: var(--accent-green);
}

.workflow-destination {
  z-index: 2;
}

.dest-node {
  background-color: var(--dark);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  width: 140px;
  box-shadow: var(--shadow-md);
}

/* Hero Sticky Form Card */
.hero-form-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
}

.form-header {
  margin-bottom: 24px;
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Success Message styling */
.form-success-message {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

/* Trusted Strip */
.trusted-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--white);
  padding: 40px 0;
}

.trusted-title {
  text-align: center;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 600;
}

.logo-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo-marquee {
  display: flex;
  gap: 64px;
  align-items: center;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.logo-marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 800;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.marquee-item:hover {
  color: var(--dark);
}

.marquee-item svg, .marquee-item img {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  transition: var(--transition);
}

.marquee-item:hover svg, .marquee-item:hover img {
  opacity: 1;
}

/* Steps Section */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  position: relative;
  padding-top: 48px;
}

.step-number {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 32px;
  height: 32px;
  background-color: var(--primary-light);
  color: var(--dark);
  font-family: var(--font-headings);
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.step-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  margin-top: 16px;
}

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

/* Traditional vs OneGST Comparison Section */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.comparison-col {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.comparison-col.bad-process {
  border-left: 4px solid var(--accent-red);
}

.comparison-col.good-process {
  border-left: 4px solid var(--primary);
  background: linear-gradient(to bottom, var(--white), #fafdf7);
}

.comparison-col h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 1rem;
}

.bad-process .comparison-list li {
  color: var(--dark-light);
}

.bad-process .comparison-list li i {
  color: var(--accent-red);
  font-size: 1.25rem;
}

.good-process .comparison-list li {
  color: var(--dark);
  font-weight: 600;
}

.good-process .comparison-list li i {
  color: var(--accent-green);
  font-size: 1.25rem;
}

/* Core features workflow grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 36px;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--dark);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Copilot Chat UI Simulator */
.copilot-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.chat-simulator {
  background-color: var(--dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
  border: 1px solid #1f2937;
}

.chat-header {
  background-color: #1f2937;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #374151;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--dark);
}

.chat-title-info h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.chat-title-info p {
  color: #9ca3af;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: var(--radius-full);
}

.chat-body {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 85%;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg.ai {
  align-self: flex-start;
}

.chat-msg-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.95rem;
}

.chat-msg.user .chat-msg-bubble {
  background-color: #374151;
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-msg.ai .chat-msg-bubble {
  background-color: #1f2937;
  color: #e5e7eb;
  border-bottom-left-radius: 4px;
  border: 1px solid #374151;
  width: 100%;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-msg.user .chat-msg-avatar {
  background-color: #6b7280;
  color: var(--white);
}

.chat-msg.ai .chat-msg-avatar {
  background-color: var(--primary);
  color: var(--dark);
}

.copilot-card-response {
  background-color: #111827;
  border: 1px solid #374151;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
}

.copilot-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.copilot-stat-item {
  background-color: #1f2937;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.copilot-stat-item p {
  color: #9ca3af;
  font-size: 0.65rem;
  margin-bottom: 2px;
}

.copilot-stat-item h5 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}

.copilot-stat-item h5.danger {
  color: #f87171;
}

.copilot-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.copilot-action-btn {
  background-color: rgba(154, 203, 86, 0.1);
  border: 1px solid rgba(154, 203, 86, 0.2);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.copilot-action-btn:hover {
  background-color: rgba(154, 203, 86, 0.2);
  color: var(--white);
}

.chat-footer {
  padding: 16px 24px;
  border-top: 1px solid #374151;
  background-color: #1f2937;
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input-wrapper {
  flex-grow: 1;
  background-color: #111827;
  border: 1px solid #374151;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
}

.chat-input-placeholder {
  color: #6b7280;
  font-size: 0.875rem;
}

/* System Integrations Section */
.integrations-box {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.integrations-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.integration-cat h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--light);
  padding-bottom: 12px;
  color: var(--dark-light);
}

.integration-logos-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.integration-logo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--light);
  font-weight: 600;
  font-size: 0.95rem;
}

.integration-logo-item i {
  color: var(--primary-hover);
}

.integrations-text-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-weight: 500;
  color: var(--text-muted);
}

.integrations-text-footer span {
  color: var(--dark);
  font-weight: 700;
  margin: 0 8px;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.kpi-card {
  text-align: center;
  padding: 40px 24px;
}

.kpi-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-headings);
  background: linear-gradient(135deg, var(--dark), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kpi-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Business Type Segments */
.segment-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.segment-tab-btn {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-light);
  transition: var(--transition);
}

.segment-tab-btn:hover {
  border-color: #cbd5e1;
}

.segment-tab-btn.active {
  background-color: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.segment-content-wrapper {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 280px;
}

.segment-pane {
  display: none;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.segment-pane.active {
  display: grid;
  animation: fadeIn 0.4s ease-out;
}

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

.segment-pane h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.segment-pane p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.segment-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.segment-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--dark-light);
}

.segment-bullets li i {
  color: var(--primary-hover);
}

.segment-visual-box {
  background-color: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.segment-visual-box h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.segment-visual-box p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(154, 203, 86, 0.5);
}

.faq-question {
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  text-align: left;
  background: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

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

/* Final CTA Section */
.cta-banner {
  background-color: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(154, 203, 86, 0.12), transparent 50%);
  pointer-events: none;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: #9ca3af;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.cta-banner .btn {
  box-shadow: 0 4px 14px rgba(154, 203, 86, 0.3);
}

/* Footer styling */
.footer {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.social-link:hover {
  color: var(--dark);
  border-color: #cbd5e1;
  background-color: var(--light);
}

.footer-col h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--dark-light);
}

.footer-links a:hover {
  color: var(--dark);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

/* Product Page Specific Styles */
.product-nav-sticky {
  position: sticky;
  top: 81px;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.product-nav-list {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
}

.product-nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.product-nav-link:hover {
  color: var(--dark);
  background-color: var(--light);
}

.product-nav-link.active {
  color: var(--dark);
  background-color: var(--primary-light);
  border: 1px solid rgba(154, 203, 86, 0.3);
}

.feature-section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.feature-section-row:nth-child(even) {
  direction: rtl;
}

.feature-section-row:nth-child(even) .feature-desc-col {
  direction: ltr;
}

.feature-desc-col {
  padding-right: 32px;
}

.feature-visual-col {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.dashboard-mockup {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--light);
  overflow: hidden;
}

.mockup-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: #cbd5e1;
}

.mockup-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-light);
}

.mockup-body {
  padding: 20px;
}

/* Integrations Page Specific Styles */
.integrations-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.integration-card {
  padding: 32px;
}

.integration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.integration-icon {
  width: 56px;
  height: 56px;
  background-color: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.integration-status-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  background-color: var(--primary-light);
  color: var(--dark-light);
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Pricing Page Specific Styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: translateY(-4px) scale(1.03);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--dark);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.price-header {
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-val {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  font-family: var(--font-headings);
}

.price-val span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--dark-light);
}

.pricing-features li i {
  color: var(--accent-green);
}

/* Contact/Demo Page Specific Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info-col {
  padding-right: 32px;
}

.contact-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

/* Resource specific styles */
.resources-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.resource-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.resource-img {
  height: 200px;
  background-color: var(--light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  position: relative;
}

.resource-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--white);
  color: var(--dark);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.resource-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.resource-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.resource-footer {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Mobile Responsive Menu and Elements */
@media (max-width: 1024px) {
  .hero-grid, .comparison-grid, .integrations-category-grid, .contact-grid, .feature-section-row {
    grid-template-columns: 1fr !important;
  }
  .feature-section-row {
    direction: ltr !important;
  }
  .steps-grid, .feature-grid, .integrations-grid, .resources-grid {
    grid-template-columns: 1fr 1fr;
  }
  .copilot-section-grid {
    grid-template-columns: 1fr;
  }
  .segment-pane {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
  }
  .logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    grid-column: auto;
    justify-self: auto;
    order: unset;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.mobile-open {
    display: flex;
  }
  .menu-toggle {
    display: block;
    order: unset;
    z-index: 10;
  }
  .nav-cta {
    display: none;
  }
  .steps-grid, .feature-grid, .integrations-grid, .resources-grid {
    grid-template-columns: 1fr;
  }
  .section-header h2 {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-content {
    padding-right: 0;
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .segment-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cta-banner {
    padding: 48px 24px;
  }
  .cta-banner h2 {
    font-size: 1.8rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  /* Vertical stack for Workflow Visualization */
  .workflow-container {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    padding: 10px 0;
  }
  .workflow-sources {
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    width: 100%;
  }
  .source-node {
    width: 120px;
    font-size: 0.75rem;
    padding: 6px 12px;
    justify-content: center;
  }
  .workflow-arrows {
    display: none; /* Hide horizontal arrows */
  }
  .workflow-engine {
    width: 100%;
    max-width: 280px;
  }
  .dest-node {
    width: 140px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }
  .copilot-stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
