/* ==========================================================================
   MOONKING LABS — SOFTWARE HOUSE & DIGITAL LABS LANDING PAGE STYLESHEET
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-dark: #060709;
  --bg-surface: #0c0e13;
  --bg-card: #12151d;
  --bg-card-hover: #191d29;
  --bg-glass: rgba(12, 14, 19, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.35);

  --accent-cyan: #38bdf8;
  --accent-purple: #a855f7;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
  --accent-glow: rgba(56, 189, 248, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-glow: 0 10px 30px -5px rgba(56, 189, 248, 0.3);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

/* Typography & Accent Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.margin-top { margin-top: 20px; }
.bold-text { font-weight: 700; }

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-primary-glow {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.btn-primary-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(168, 85, 247, 0.4);
}

.btn-outline-rounded {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline-rounded:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-block-lg {
  width: 100%;
  padding: 16px 28px;
  font-size: 1.05rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Header Navbar */
.header-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition-fast);
}

.header-navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-logo-img {
  height: 68px;
  max-height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.35));
  transition: all var(--transition-fast);
}

.header-navbar.scrolled .brand-logo-img {
  height: 54px;
}

.brand-logo-img-footer {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.3));
}

.logo-accent { color: var(--accent-cyan); }

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: rgba(56, 189, 248, 0.15);
}

.orb-2 {
  width: 400px;
  height: 400px;
  top: 300px;
  left: -100px;
  background: rgba(168, 85, 247, 0.12);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding: 160px 0 100px 0;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-size: 3.4rem;
  letter-spacing: -0.02em;
  margin: 20px 0;
}

.hero-subline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-stats-row {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 3D Tilt Card in Hero */
.hero-card-3d {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 50%, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-subtle);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero-logo-showcase {
  width: 100%;
  max-width: 440px;
  height: auto;
  padding: 20px;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(56, 189, 248, 0.45));
}

.hero-device-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.hero-glass-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(14, 16, 21, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.badge-top-right {
  top: 20px;
  right: -20px;
}

.badge-bottom-left {
  bottom: 20px;
  left: -20px;
}

/* Section Common Headers */
.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
}

.section-title {
  font-size: 2.5rem;
  margin: 10px 0;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Features & Portfolio Section */
.features-section, .portfolio-section {
  padding: 120px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.feature-tabs-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
  display: block;
}

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

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.tab-info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.tab-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

.tab-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
}

/* Specs & Solutions Cards */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: all var(--transition-fast);
}

.spec-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
}

.spec-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.spec-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.spec-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Process Section */
.process-section {
  padding: 120px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
}

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

.process-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  transition: all var(--transition-fast);
}

.process-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-5px);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 12px;
}

.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.process-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Contact / Newsletter Section */
.newsletter-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.contact-form-custom {
  max-width: 720px;
  margin: 30px auto 0 auto;
}

.form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-body);
}

.form-input:focus {
  border-color: var(--accent-cyan);
}

.text-area-custom {
  min-height: 120px;
  resize: vertical;
  border-radius: var(--radius-md);
}

.sub-alert {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.sub-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Back to top */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 90;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
}

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

.footer-copy-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer-links-group {
  display: flex;
  gap: 20px;
}

.footer-links-group a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links-group a:hover {
  color: var(--accent-cyan);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-container, .tab-grid, .form-grid-two {
    grid-template-columns: 1fr;
  }

  .hero-headline { font-size: 2.7rem; }
  .badge-top-right, .badge-bottom-left { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero-cta-group { flex-direction: column; }
  .footer-container { flex-direction: column; gap: 20px; text-align: center; }
}
