/* ==========================================
   AntiMini Landing Page Style Sheet
   ========================================== */

/* Theme Variables */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette (HSL Tailored) */
  --background: 240, 25%, 4%;
  --foreground: 0, 0%, 98%;
  
  --primary: 260, 85%, 60%;
  --primary-foreground: 0, 0%, 100%;
  --primary-glow: hsla(260, 85%, 60%, 0.15);
  
  --secondary: 240, 5%, 15%;
  --secondary-foreground: 0, 0%, 98%;
  
  --muted: 240, 5%, 10%;
  --muted-foreground: 240, 5%, 65%;
  
  --card: 240, 6%, 7%;
  --card-border: 240, 5%, 15%;
  --card-hover-border: 260, 60%, 40%;
  
  --success: 150, 80%, 40%;
  --destructive: 0, 84%, 50%;
  --warning: 35, 90%, 50%;
  --cyan: 190, 90%, 45%;
  --purple: 280, 80%, 60%;
  --orange: 20, 90%, 55%;
  
  --glow-color-1: rgba(90, 32, 203, 0.25);
  --glow-color-2: rgba(0, 168, 204, 0.15);
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utilities */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: hsl(var(--primary)); }
.text-success { color: hsl(var(--success)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-warning { color: hsl(var(--warning)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-white { color: #fff; }

.font-bold { font-weight: 700; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }

.section-padding {
  padding: 80px 0;
}

/* Gradients & Glows */
.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(290, 85%, 65%), hsl(190, 90%, 55%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.bg-glow-1 {
  top: -100px;
  right: -100px;
  background-color: var(--glow-color-1);
}

.bg-glow-2 {
  top: 600px;
  left: -200px;
  background-color: var(--glow-color-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-icon {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: #fff;
}

.btn-primary:hover {
  background-color: hsl(260 85% 55%);
  box-shadow: 0 0 20px hsla(260, 85%, 60%, 0.4);
}

.btn-gradient {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(280, 80%, 55%));
  color: #fff;
  border: none;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(260, 85%, 55%, 0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: hsl(var(--card-border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--muted-foreground));
}

.btn-white {
  background-color: #fff;
  color: #000;
}

.btn-white:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 6px 12px;
}

.btn-lg {
  font-size: 1rem;
  padding: 12px 24px;
}

.btn-xl {
  font-size: 1.1rem;
  padding: 16px 32px;
  border-radius: var(--border-radius-md);
}

/* Header Navbar */
.navbar {
  backdrop-filter: blur(12px);
  background-color: hsla(240, 25%, 4%, 0.7);
  border-bottom: 1px solid hsl(var(--card-border));
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
  display: flex;
  align-items: center;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.logo-area:hover {
  color: inherit;
  text-decoration: none;
}

.nav-logo {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-badge {
  font-size: 0.65rem;
  background-color: hsl(var(--primary));
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
}

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

.nav-links a:hover {
  color: hsl(var(--foreground));
}

/* Hero Section */
.hero-section {
  padding: 100px 0 60px 0;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  background-color: hsla(260, 85%, 60%, 0.1);
  border: 1px solid hsla(260, 85%, 60%, 0.2);
  color: hsl(260, 90%, 75%);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  max-width: 50rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: hsl(var(--muted-foreground));
  margin-top: 24px;
  max-width: 44rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

/* Dashboard Mockup in Hero */
.hero-visual {
  width: 100%;
  max-width: 1000px;
  margin-top: 80px;
  perspective: 1000px;
}

.dashboard-mockup {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--border-radius-md);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform: rotateX(4deg);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.dashboard-mockup:hover {
  transform: rotateX(0deg) scale(1.01);
}

.mockup-header {
  background-color: hsl(var(--muted));
  padding: 12px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid hsl(var(--card-border));
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.mockup-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 380px;
}

.mockup-sidebar {
  background-color: hsla(240, 5%, 8%, 0.5);
  border-right: 1px solid hsl(var(--card-border));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.mockup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  border-radius: var(--border-radius-sm);
}

.mockup-item svg {
  width: 16px;
  height: 16px;
}

.mockup-item.active {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-weight: 600;
}

.mockup-main {
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mockup-table-header .title {
  font-size: 1rem;
  font-weight: 600;
}

.badge-running {
  background-color: hsla(150, 80%, 40%, 0.15);
  color: hsl(var(--success));
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid hsla(150, 80%, 40%, 0.2);
}

.mockup-row {
  display: grid;
  grid-template-columns: 30px 1.5fr 2fr 100px;
  align-items: center;
  padding: 12px 16px;
  background-color: hsla(240, 5%, 12%, 0.3);
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
}

.checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid hsl(var(--muted-foreground));
  border-radius: 3px;
  display: inline-block;
}

.checkbox.checked {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  position: relative;
}

.checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 10px;
  position: absolute;
  top: -1px;
  left: 2px;
}

.chrome-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 6px;
  color: #3b82f6;
}

.proxy-tag {
  color: hsl(var(--muted-foreground));
}

.status-btn {
  background-color: hsl(var(--secondary));
  border: 1px solid hsl(var(--card-border));
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.status-btn svg {
  width: 10px;
  height: 10px;
}

.status-btn.running {
  background-color: hsla(0, 84%, 50%, 0.1);
  border-color: hsla(0, 84%, 50%, 0.2);
  color: hsl(var(--destructive));
}

/* Features Grid */
.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.section-subtitle {
  color: hsl(var(--muted-foreground));
  font-size: 1.1rem;
  margin-top: 16px;
  font-weight: 400;
}

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

.feature-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--border-radius-md);
  padding: 32px;
  transition: all var(--transition-normal);
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--card-hover-border));
  box-shadow: 0 10px 30px var(--primary-glow);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: hsl(var(--primary));
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-glow);
  border-radius: var(--border-radius-sm);
}

.feature-icon.text-green {
  color: hsl(var(--success));
  background-color: rgba(16, 185, 129, 0.1);
}

.feature-icon.text-blue {
  color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

.feature-icon.text-cyan {
  color: hsl(var(--cyan));
  background-color: rgba(6, 182, 212, 0.1);
}

.feature-icon.text-purple {
  color: hsl(var(--purple));
  background-color: rgba(168, 85, 247, 0.1);
}

.feature-icon.text-orange {
  color: hsl(var(--orange));
  background-color: rgba(249, 115, 22, 0.1);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Interactive Simulator Section */
.bg-dark-accent {
  background-color: hsla(240, 5%, 8%, 0.4);
}

.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
}

.simulator-info {
  text-align: left;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: hsla(260, 85%, 60%, 0.1);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.simulator-console {
  background-color: #0d0c15;
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.console-header {
  background-color: #151421;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid hsl(var(--card-border));
}

.console-title {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.console-status {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-blink {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.console-body {
  padding: 24px;
  text-align: left;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
}

.console-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.c-key { color: #f43f5e; }
.c-val { color: #94a3b8; }
.c-val.text-yellow { color: #fbbf24; }
.c-val.text-blue { color: #60a5fa; }
.c-val.text-purple { color: #c084fc; }
.c-val.text-green { color: #34d399; }
.c-val.text-cyan { color: #22d3ee; }
.c-val.text-orange { color: #fb923c; }

/* CloudMini.net Integration Card */
.border-glow {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--card-border));
}

.border-glow::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: linear-gradient(135deg, hsl(var(--primary)), transparent, hsl(190, 90%, 45%));
  z-index: -1;
  border-radius: inherit;
  opacity: 0.3;
}

.cloudmini-card {
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--border-radius-md);
  padding: 32px;
}

.cloudmini-logo {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 8px;
  font-weight: 500;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 1/2;
  transform: translateY(12px);
  width: 16px;
  height: 16px;
  color: hsl(var(--muted-foreground));
}

.input-field {
  width: 100%;
  background-color: hsl(var(--muted));
  border: 1px solid hsl(var(--card-border));
  border-radius: var(--border-radius-sm);
  padding: 10px 12px 10px 40px;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
}

.cloudmini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-box {
  background-color: hsla(240, 5%, 10%, 0.6);
  border: 1px solid hsl(var(--card-border));
  padding: 16px;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-box .value {
  font-size: 1.15rem;
  font-weight: 700;
}

.stat-box .label {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
}

/* Comparison Table */
.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius-md);
  border: 1px solid hsl(var(--card-border));
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background-color: hsl(var(--card));
}

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid hsl(var(--card-border));
}

.comparison-table th {
  background-color: hsl(var(--muted));
  font-weight: 700;
  color: hsl(var(--foreground));
}

.comparison-table th.highlight {
  background-color: hsla(260, 85%, 60%, 0.15);
  color: hsl(260, 95%, 85%);
  border-bottom: 2px solid hsl(var(--primary));
}

.comparison-table td.high-val {
  background-color: hsla(150, 80%, 40%, 0.03);
  color: hsl(var(--foreground));
  font-weight: 500;
}

.comparison-table td.high-val svg {
  vertical-align: middle;
  margin-right: 8px;
}

.comparison-table td.low-val {
  color: hsl(var(--muted-foreground));
}

.comparison-table td.low-val svg {
  vertical-align: middle;
  margin-right: 8px;
}

.feature-name {
  font-weight: 600;
}

/* Self Host Block */
.self-host-layout {
  padding: 40px;
  border-radius: var(--border-radius-md);
  background-color: hsl(var(--card));
  text-align: left;
}

.self-host-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.self-host-desc {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  margin-bottom: 24px;
}

.code-block {
  background-color: #0d0c15;
  border: 1px solid hsl(var(--card-border));
  padding: 20px;
  border-radius: var(--border-radius-sm);
  color: #a855f7;
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
}

/* Download / CTA Section */
.bg-gradient-cta {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(280, 80% 40%));
  position: relative;
  overflow: hidden;
}

.bg-gradient-cta::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -200px;
  left: -200px;
  filter: blur(80px);
}

.download-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.download-desc {
  font-size: 1.15rem;
  margin-top: 16px;
}

/* Footer */
.footer {
  background-color: hsl(var(--muted));
  border-top: 1px solid hsl(var(--card-border));
  padding: 40px 0;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

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

.footer-logo {
  font-weight: 700;
  color: hsl(var(--foreground));
  font-size: 1rem;
}

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

.footer-link {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #fff;
}

/* Responsive CSS */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .simulator-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .navbar-container {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.3rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  .nav-links {
    display: none; /* Hide on mobile */
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .mockup-sidebar {
    display: none;
  }
  .mockup-content {
    grid-template-columns: 1fr;
  }
}

/* Rotating Text Animation */
.rotate-text-fade {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.rotate-text-fade.fade-out {
  opacity: 0;
  transform: translateY(10px);
}
.rotate-text-fade.fade-in {
  opacity: 1;
  transform: translateY(0);
}
