/* LazyunCrab Marketing Site — Shared Base Styles */
/* Mirrors the admin design system (midnight ocean premium theme) */

:root {
  --bg: #0a1628;
  --surface: rgba(13, 26, 54, 0.92);
  --card: rgba(15, 33, 60, 0.72);
  --card-solid: #0f213c;
  --border: rgba(56, 120, 192, 0.18);
  --border-glow: rgba(34, 211, 238, 0.30);
  --text: rgba(232, 242, 255, 0.96);
  --text2: rgba(140, 170, 210, 0.88);
  --primary: rgba(34, 211, 238, 0.92);
  --primary-h: rgba(103, 232, 249, 0.95);
  --primary-solid: #22d3ee;
  --accent: rgba(34, 211, 238, 0.30);
  --accent2: rgba(96, 165, 250, 0.20);
  --gold: rgba(251, 191, 36, 0.88);
  --gold-h: rgba(253, 224, 71, 0.92);
  --success: rgba(34, 197, 94, 0.95);
  --warn: #fbbf24;
  --error: #f87171;
  --radius: 12px;
  --glass-blur: blur(24px) saturate(1.5);
  --shadow-deep: 0 12px 40px rgba(0, 0, 0, 0.50);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.32), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  --glow-top: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.25) 20%, rgba(56, 189, 248, 0.18) 50%, rgba(96, 165, 250, 0.25) 80%, transparent);
  --glow-gold: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.18) 15%, rgba(56, 189, 248, 0.25) 40%, rgba(96, 165, 250, 0.18) 65%, rgba(251, 191, 36, 0.14) 85%, transparent);
  --font: "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(160deg, #0a1628 0%, #0d1f3c 20%, #0f2744 40%, #0a1e36 60%, #0d1528 80%, #080e1e 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: var(--primary-h); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--primary-solid); }

img { max-width: 100%; height: auto; }

/* Typography */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }

.text-gradient {
  background: linear-gradient(135deg, #22d3ee, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-muted { color: var(--text2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; border: none; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.25s ease;
  position: relative; overflow: hidden; font-family: var(--font);
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.btn:hover::before { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, rgba(34,211,238,0.88), rgba(56,189,248,0.82));
  color: rgba(10,22,40,0.98); border: 1px solid rgba(34,211,238,0.28);
  box-shadow: 0 4px 22px rgba(34,211,238,0.30);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 10px 32px rgba(34,211,238,0.42);
  background: linear-gradient(135deg, rgba(34,211,238,0.98), rgba(56,189,248,0.92));
}
.btn-outline {
  background: transparent; border: 1px solid var(--border); color: var(--text2);
}
.btn-outline:hover {
  border-color: rgba(148,163,184,0.35); color: var(--text);
  background: rgba(148,163,184,0.06);
}
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Cards */
.card {
  background: var(--card); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card);
  position: relative; overflow: hidden; transition: all 0.3s ease;
  -webkit-transform: translateZ(0); transform: translateZ(0);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--glow-top); z-index: 1;
}
.card:hover {
  border-color: rgba(34,211,238,0.32);
  box-shadow: var(--shadow-deep), 0 0 32px rgba(34,211,238,0.12), 0 1px 0 rgba(255,255,255,0.07) inset;
  transform: translateY(-3px);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.20);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--primary); stroke-width: 1.8; fill: none; }
.card h3 { font-size: 18px; margin-bottom: 8px; position: relative; z-index: 2; }
.card p { font-size: 14px; color: var(--text2); position: relative; z-index: 2; }

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Section */
.section { padding: 80px 24px; position: relative; z-index: 1; }
.section-title { font-size: 32px; margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: var(--text2); max-width: 600px; margin: 0 auto 48px; }
.container { max-width: 1200px; margin: 0 auto; }

/* Section divider */
.section-divider {
  height: 1px; max-width: 800px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.30), transparent);
}

/* Floating gradient orbs */
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0;
}
.orb-1 { width: 400px; height: 400px; background: rgba(34,211,238,0.08); animation: orbFloat1 20s ease-in-out infinite; }
.orb-2 { width: 300px; height: 300px; background: rgba(96,165,250,0.06); animation: orbFloat2 25s ease-in-out infinite; }
.orb-3 { width: 350px; height: 350px; background: rgba(56,189,248,0.05); animation: orbFloat3 30s ease-in-out infinite; }

@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(40px,-30px)} 66%{transform:translate(-20px,40px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-30px,40px)} 66%{transform:translate(50px,-20px)} }
@keyframes orbFloat3 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(30px,30px)} 66%{transform:translate(-40px,-30px)} }

/* Animated gradient border */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, #22d3ee, #60a5fa, #38bdf8, #22d3ee);
  background-size: 300% 300%; animation: gradientShift 4s ease infinite;
  z-index: -1; opacity: 0; transition: opacity 0.3s ease;
}
.gradient-border:hover::before { opacity: 1; }
@keyframes gradientShift {
  0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%}
}

/* Scroll Reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; transform: none !important; opacity: 1 !important; }
  .card, .btn-primary:hover { transition: none !important; transform: none !important; }
  .orb { animation: none !important; }
}

/* Badges */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-primary { background: rgba(34,211,238,0.15); color: var(--primary-h); }
.badge-success { background: rgba(52,211,153,0.18); color: var(--success); }
.badge-gold { background: rgba(251,191,36,0.18); color: var(--gold); }

/* Stats counter section */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.stat-value {
  font-size: 36px; font-weight: 700; color: var(--primary-h); margin-bottom: 4px;
}
.stat-label { font-size: 14px; color: var(--text2); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* Code / Terminal demo */
.terminal {
  background: rgba(8, 14, 30, 0.85); backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; max-width: 720px; margin: 0 auto;
}
.terminal-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dot.red { background: #f87171; }
.terminal-dot.yellow { background: #fbbf24; }
.terminal-dot.green { background: #34d399; }
.terminal-title { font-size: 12px; color: var(--text2); margin-left: 8px; font-family: 'SF Mono', Consolas, monospace; }
.terminal-body { padding: 20px; font-family: 'SF Mono', Consolas, monospace; font-size: 13px; line-height: 1.8; }
.terminal-body .comment { color: rgba(100,130,170,0.7); }
.terminal-body .key { color: #60a5fa; }
.terminal-body .string { color: #34d399; }
.terminal-body .prompt { color: var(--primary); }
.terminal-body .cursor-blink { display: inline-block; width: 8px; height: 16px; background: var(--primary); animation: blink 1s step-end infinite; vertical-align: text-bottom; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { padding: 24px; }
.testimonial-card blockquote { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; font-style: italic; position: relative; z-index: 2; }
.testimonial-author { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,211,238,0.5), rgba(96,165,250,0.5));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; }
.testimonial-role { font-size: 12px; color: var(--text2); }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* Changelog */
.changelog-list { max-width: 640px; margin: 0 auto; text-align: left; }
.changelog-item { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(56,120,192,0.10); }
.changelog-date { font-size: 13px; color: var(--text2); white-space: nowrap; min-width: 90px; font-family: 'SF Mono', Consolas, monospace; }
.changelog-content h4 { font-size: 15px; margin-bottom: 4px; }
.changelog-content p { font-size: 13px; color: var(--text2); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 16px; }
  .section-title { font-size: 24px; }
}
@media (max-width: 480px) {
  .btn-lg { padding: 12px 20px; font-size: 14px; }
  .stat-value { font-size: 28px; }
}
