/* YujOS - Custom Styling */
:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  
  --primary-emerald: #10b981;
  --primary-emerald-glow: rgba(16, 185, 129, 0.4);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-emerald-glow) 0%, transparent 70%);
}

.glow-orb-2 {
  top: 30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
}

.glow-orb-3 {
  bottom: 10%;
  left: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
}

/* Containers & Typography */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-emerald) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px 0 var(--primary-emerald-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-emerald) 0%, var(--accent-cyan) 100%);
  color: #000;
  box-shadow: 0 4px 20px var(--primary-emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(8px);
}

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

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--primary-emerald);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-emerald);
  box-shadow: 0 0 10px var(--primary-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Header Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.logo svg {
  width: 32px;
  height: 32px;
  color: var(--primary-emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

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

.nav-links a:hover {
  color: var(--primary-emerald);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

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

.hero-subtitle strong {
  color: var(--primary-emerald);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Live Simulator Component */
.simulator-container {
  max-width: 960px;
  margin: 0 auto;
}

.chat-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.chat-header {
  background: rgba(30, 41, 59, 0.8);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-card-border);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-emerald), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: bold;
}

.chat-header-text h4 {
  font-size: 1rem;
  color: #fff;
}

.chat-header-text p {
  font-size: 0.75rem;
  color: var(--primary-emerald);
}

.chat-body {
  padding: 1.5rem;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(10, 15, 26, 0.95);
}

.msg {
  max-width: 80%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-out;
}

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

.msg-bot {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-user {
  background: linear-gradient(135deg, #059669, #0d9488);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg-source-tag {
  display: block;
  font-size: 0.725rem;
  color: var(--accent-cyan);
  margin-top: 0.4rem;
  font-weight: 500;
}

.prompt-chips {
  padding: 1rem 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  align-items: center;
}

.prompt-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.prompt-chip:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary-emerald);
  color: #fff;
}

/* Feature Grid & Section Header */
.section {
  padding: 5rem 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

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

/* Pricing Section - YujOS Plan Focus */
.pricing-section {
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.yujos-pricing-card {
  position: relative;
  background: linear-gradient(145deg, rgba(20, 29, 47, 0.9), rgba(13, 20, 33, 0.9));
  border: 2px solid var(--primary-emerald);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  overflow: hidden;
}

.yujos-badge-corner {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary-emerald);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.price-currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-emerald);
}

.price-amount {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
  line-height: 1;
}

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

.feature-list {
  list-style: none;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.05rem;
  color: var(--text-main);
}

.feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary-emerald);
  flex-shrink: 0;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* $100 Setup Box */
.setup-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.setup-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin: 1rem 0;
}

/* Template Showcase Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.template-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
  position: relative;
}

.template-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
}

.template-type-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.tag-utility {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
}

.tag-marketing {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.template-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.template-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ROI Calculator */
.calc-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.slider-container {
  margin: 2.5rem 0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

input[type=range] {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #1e293b;
  outline: none;
  accent-color: var(--primary-emerald);
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.res-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--bg-card-border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.res-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.res-val {
  font-size: 2.25rem;
  font-weight: 800;
}

.res-val-yujos {
  color: var(--primary-emerald);
}

.res-val-others {
  color: #ef4444;
  text-decoration: line-through;
  opacity: 0.7;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, 
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--bg-card-border);
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: rgba(15, 23, 42, 0.9);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.col-yujos {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #fff;
  font-weight: 600;
}

/* Lead Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #0f172a;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--bg-card-border);
  background: rgba(5, 7, 12, 0.9);
  margin-top: 5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.5;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary-emerald);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-bottom {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive queries */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .nav-links {
    display: none;
  }
  .calc-results {
    grid-template-columns: 1fr;
  }
}
