/* CODENTRA LANDING PAGE — LUXURY TECH STYLESHEET */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Color Palette */
  --bg-dark: #090d16;
  --bg-card: rgba(18, 26, 43, 0.7);
  --bg-card-hover: rgba(28, 39, 64, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(255, 255, 255, 0.18);

  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);

  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

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

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* TYPOGRAPHY UTILS */
.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.font-bold {
  font-weight: 600;
}

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

.text-white {
  color: #ffffff;
}

/* GLASS CARD UTILITY */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glass-bright);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-glass);
}

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

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

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
  opacity: 1;
}

/* NAVBAR */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition-normal);
}

.navbar-header.scrolled {
  padding: 12px 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-link:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition-fast);
}

/* HERO SECTION */
.hero-section {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass-bright);
  font-size: 0.85rem;
  color: #c7d2fe;
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}

/* HERO MOCKUP CARD */
.hero-mockup-wrapper {
  width: 100%;
  max-width: 1040px;
}

.mockup-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10, 15, 26, 0.9);
  border-bottom: 1px solid var(--border-glass);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dots .red { background: #ff5f56; }
.window-dots .yellow { background: #ffbd2e; }
.window-dots .green { background: #27c93f; }

.window-title {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.status-badge.live {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.5px;
}

.mockup-body {
  padding: 24px;
  background: #0d1322;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

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

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);

}

.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.mockup-preview-table {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.85rem;
}

.table-head-row {
  display: grid;
  grid-template-columns: 2fr 3fr 1.5fr 1.5fr 2fr;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
}

.table-data-row {
  display: grid;
  grid-template-columns: 2fr 3fr 1.5fr 1.5fr 2fr;
  padding: 14px 18px;
  border-top: 1px solid var(--border-glass);
  align-items: center;
  text-align: left;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-danger { background: rgba(244, 63, 94, 0.15); color: #fca5a5; border: 1px solid rgba(244, 63, 94, 0.3); }
.tag-warning { background: rgba(245, 158, 11, 0.15); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-info { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }

/* SECTIONS COMMON */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #a5b4fc;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

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

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #ffffff;
}

.bg-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.bg-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.bg-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bg-rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.bg-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* NACE WIDGET DEMO */
.nace-widget-section {
  padding-top: 40px;
}

.widget-card {
  padding: 48px;
  border-color: rgba(99, 102, 241, 0.3);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.widget-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.nace-search-box {
  display: flex;
  gap: 16px;
  max-width: 680px;
  margin-bottom: 24px;
}

.nace-search-box input {
  flex: 1;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass-bright);
  background: rgba(10, 15, 26, 0.8);
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.nace-search-box input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.nace-results-area {
  min-height: 80px;
  max-width: 680px;
}

.nace-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  text-align: left;
}

.nace-code {
  font-family: monospace;
  font-weight: 700;
  color: #a5b4fc;
  margin-right: 10px;
}

/* WORKFLOW STEPS */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: left;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.4);
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

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

/* CTA BANNER */
.cta-banner-section {
  padding: 60px 0 100px;
}

.cta-card {
  padding: 64px;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 41, 67, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(99, 102, 241, 0.4);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

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

.cta-buttons {
  display: flex;
  justify-content: center;
}

/* FOOTER */
.footer-section {
  background: #050811;
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
  text-align: left;
}

.footer-about {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 360px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links-col ul li {
  margin-bottom: 12px;
}

.footer-links-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links-col a:hover {
  color: #ffffff;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

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

.footer-legal a:hover {
  color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .features-grid, .workflow-steps, .dashboard-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .table-head-row, .table-data-row { grid-template-columns: 1.5fr 2fr 1.5fr; }
  .table-head-row span:nth-child(4), .table-head-row span:nth-child(5),
  .table-data-row span:nth-child(4), .table-data-row span:nth-child(5) { display: none; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; }
  .nav-menu { display: none; }
  .features-grid, .workflow-steps, .dashboard-stats-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 32px 20px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
