/* =============================================
   VYALA.TECH — COMPONENTS CSS
   ============================================= */

/* ─── GLOW ORBS (decorative hero background) ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27,61,122,0.18) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(38,79,160,0.12) 0%, transparent 70%);
  bottom: 10%;
  left: -120px;
}

/* ─── FEATURE ROW (alternating) ─── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-row-content h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-bottom: 16px;
}

.feature-row-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.feature-row-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-row-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── MOCK UI ELEMENTS ─── */
.mock-chat {
  width: 100%;
  max-width: 320px;
}

.mock-chat-header {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.mock-chat-avatar svg {
  width: 16px;
  height: 16px;
}

.mock-chat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mock-chat-status {
  font-size: 0.72rem;
  color: var(--success);
}

.mock-chat-body {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.5;
}

.mock-msg-ai {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

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

/* ─── MOCK ANALYTICS ─── */
.mock-analytics {
  width: 100%;
  max-width: 320px;
}

.mock-stat-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-stat-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.mock-stat-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mock-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.mock-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* ─── INTEGRATION LOGOS GRID ─── */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.integration-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: default;
}

.integration-chip:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ─── PRICING CARDS ─── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-3px);
}

.pricing-card.featured {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  box-shadow: var(--shadow-accent);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup {
  font-size: 1.4rem;
  vertical-align: top;
  margin-top: 6px;
  font-weight: 600;
}

.pricing-period {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.65;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-feature svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

/* ─── HERO PRODUCT VISUAL ─── */
.product-hero-visual {
  position: relative;
  z-index: 1;
}

.dashboard-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.dashboard-topbar {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-red { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dot-yellow { width: 10px; height: 10px; border-radius: 50%; background: #ffbd2e; }
.dot-green { width: 10px; height: 10px; border-radius: 50%; background: #28ca41; }

.dashboard-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.db-metric {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.db-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.db-metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.db-metric-delta {
  font-size: 0.78rem;
  color: var(--success);
  margin-top: 4px;
}

/* ─── PROCESS STEPS ─── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-accent), transparent);
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.process-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.process-step h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ─── PORTFOLIO NOTICE ─── */
.logo-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.portfolio-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.portfolio-notice svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.portfolio-notice p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.portfolio-notice p strong {
  color: var(--text-primary);
}

.portfolio-notice p a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── EXAMPLE PROJECT CARDS ─── */
.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.example-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.example-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.example-card h3 {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.example-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── AGENCY CALLOUT ─── */
.agency-callout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}

.agency-callout-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

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

.agency-callout h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.agency-callout p {
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .agency-callout { flex-direction: column; padding: 24px; }
  .portfolio-notice { flex-direction: column; padding: 20px; }
}

/* ─── RESPONSIVE COMPONENTS ─── */
@media (max-width: 1024px) {
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .dashboard-body { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .integrations-grid { grid-template-columns: 1fr 1fr; }
  .pricing-card { padding: 32px 24px; }
}
