:root {
  --bg-primary: #0a0814;
  --bg-secondary: #0f0c24;
  --card-bg: rgba(20, 17, 43, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-gold: #fbbf24;
  --accent-red: #ef4444;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --glow-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Gradients & Glows */
.glass-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background: radial-gradient(circle at 50% 50%, #151030 0%, #080611 100%);
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.35;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  top: 10%;
  left: -100px;
  animation: orbFloat 15s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  bottom: 10%;
  right: -150px;
  animation: orbFloat 18s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(50px) scale(1.1); }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.main-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  backdrop-filter: blur(8px);
  background-color: rgba(10, 8, 20, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.logo-area h1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.header-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-green);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--accent-green); }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* Grid Layout */
.simulator-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Cards */
.card {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

.card h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* Forms styling */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  opacity: 0.85;
}

.input-group input,
.input-group select,
.input-group textarea {
  background-color: rgba(10, 8, 20, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
  background-color: rgba(10, 8, 20, 0.7);
}

.input-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
}

.btn {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #6d28d9 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  box-shadow: var(--glow-shadow);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Automation Flow Visualizer */
.flow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
}

.flow-node {
  background: rgba(10, 8, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 18px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.flow-node.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.05);
}

.flow-node.completed {
  border-color: var(--accent-green);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.node-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.flow-node.active .node-icon {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.flow-node.completed .node-icon {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.node-details h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.node-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.flow-node.active .node-status {
  color: var(--accent-cyan);
}

.flow-node.completed .node-status {
  color: var(--accent-green);
}

/* Connectors */
.flow-line {
  width: 2px;
  height: 32px;
  background: var(--border-color);
  position: relative;
}

.flow-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  transition: height 0.5s linear;
}

.flow-pulse.animate {
  height: 100%;
  animation: pulseLine 0.5s forwards;
}

@keyframes pulseLine {
  0% { top: 0; height: 0; opacity: 1; }
  100% { top: 100%; height: 100%; opacity: 0; }
}

/* Terminal logs */
.terminal-container {
  border-radius: 10px;
  background: #050409;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  margin-top: auto;
}

.terminal-header {
  background: #0c0b11;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal-dot.red { background-color: var(--accent-red); }
.terminal-dot.yellow { background-color: var(--accent-gold); }
.terminal-dot.green { background-color: var(--accent-green); }

.terminal-title {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-left: 6px;
}

.terminal-body {
  padding: 12px;
  font-size: 0.75rem;
  line-height: 1.5;
  height: 130px;
  overflow-y: auto;
  color: #a7f3d0;
}

.log-line {
  margin-bottom: 6px;
}

.log-line.system { color: #818cf8; }
.log-line.running { color: var(--accent-cyan); }
.log-line.success { color: var(--accent-green); }
.log-line.warning { color: var(--accent-gold); }

/* Mock Devices */
.devices-tabs {
  display: flex;
  background: rgba(10, 8, 20, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.device-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.device-wrapper.hidden {
  display: none !important;
}

/* Phone Mockup */
.phone-mockup {
  width: 260px;
  height: 480px;
  border-radius: 36px;
  border: 8px solid #272535;
  background: #0f0e15;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 110px;
  height: 18px;
  background: #272535;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.phone-header {
  padding: 8px 16px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  z-index: 5;
}

.phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sms-app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sms-contact-header {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-arrow {
  color: var(--accent-purple);
  font-size: 0.75rem;
}

.contact-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: white;
}

.sms-chat-area {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.sms-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.75rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.system-bubble {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  align-self: center;
  text-align: center;
  max-width: 90%;
  font-size: 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.incoming-bubble {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
  animation: slideIn 0.3s ease-out;
}

.outgoing-bubble {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

/* Email Mockup */
.email-mockup {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  background: #111019;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.email-header {
  background: #0b0a11;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.e-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.email-browser-address {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 12px;
  font-size: 0.65rem;
  color: var(--text-muted);
  width: 60%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.email-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.email-sidebar {
  width: 90px;
  border-right: 1px solid var(--border-color);
  background: #0d0c15;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inbox-label {
  font-size: 0.65rem;
  padding: 6px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
}

.inbox-label.active {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
}

.email-content-pane {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 0.75rem;
  line-height: 1.5;
}

.empty-inbox-msg {
  color: var(--text-muted);
  text-align: center;
  margin-top: 80px;
  font-style: italic;
  font-size: 0.7rem;
}

.email-details {
  animation: fadeIn 0.4s ease-out;
}

.email-subject-line {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: white;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.email-meta {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin-bottom: 12px;
}

.email-text {
  color: var(--text-main);
  opacity: 0.9;
  white-space: pre-wrap;
  margin-bottom: 16px;
}

.email-cta-box {
  background: rgba(139, 92, 246, 0.1);
  border: 1px dashed var(--accent-purple);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 0.7rem;
}

.email-cta-box a {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: underline;
}

/* Animations */
@keyframes slideIn {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Bottom Metrics Section */
.value-metrics {
  margin-bottom: 40px;
}

.full-width-card {
  width: 100%;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.metrics-info h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, white 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metrics-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pricing-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 16px;
  display: inline-block;
}

.pricing-card h3 {
  font-size: 0.85rem;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2px;
}

.price-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Comparison Charts */
.charts-comparison {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric-bar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.font-accent {
  color: var(--accent-cyan);
  font-weight: 700;
}

.progress-bar-container {
  height: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease-out;
}

.red-bar {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.gold-bar {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.roi-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.roi-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.roi-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}

.roi-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Footer */
.main-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background-color: rgba(10, 8, 20, 0.4);
}

/* Responsiveness */
@media (max-width: 1100px) {
  .simulator-grid {
    grid-template-columns: 1fr 1.1fr;
  }
  .outcomes-section {
    grid-column: span 2;
  }
  .phone-mockup {
    width: 320px;
    height: 480px;
  }
}

@media (max-width: 768px) {
  .simulator-grid {
    grid-template-columns: 1fr;
  }
  .outcomes-section {
    grid-column: span 1;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .header-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
