/* ============================================================
   LoksewaTools — Premium Light Mode Design System v2
   Clean, Bright, Professional SaaS Aesthetic
   ============================================================ */

:root {
  /* Color Palette - Light Mode */
  --primary: #6c4cf5;
  --primary-light: #8b6fff;
  --primary-dark: #5636d1;
  --secondary: #00b4d8;
  --accent: #ff006e;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #e2e8f0;
  --bg-light: #f1f5f9;
  
  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #64748b;
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(148, 163, 184, 0.2);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6c4cf5 0%, #00b4d8 100%);
  --gradient-secondary: linear-gradient(135deg, #ff006e 0%, #6c4cf5 100%);
  --gradient-light: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
  background: rgba(108, 76, 245, 0.08);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 76, 245, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  animation: slideUp 0.8s ease-out;
}

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

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(108, 76, 245, 0.1);
  border: 1px solid rgba(108, 76, 245, 0.3);
  border-radius: 20px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(108, 76, 245, 0.08);
  transform: translateY(-4px);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features {
  padding: 80px 20px;
  background: var(--bg-primary);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title h2 strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 76, 245, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}

.feature-link:hover {
  gap: 12px;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */

.blog-section {
  padding: 80px 20px;
  background: var(--bg-secondary);
  width: 100%;
}

.blog-section .section-title {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.blog-card {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-primary);
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(108, 76, 245, 0.1);
  border-radius: 6px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

.blog-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: auto;
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 60px 20px 30px;
  color: var(--text-secondary);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  text-align: center;
  color: var(--text-light);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .main-nav {
    display: none;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* ============================================================
   TOOL SPECIFIC STYLING (Restoring Original Functionality)
   ============================================================ */

.tools-section {
  padding: 80px 20px;
  background: var(--bg-primary);
  width: 100%;
}

.tools-section .section-title {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.tool-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.tool-card-icon {
  font-size: 2.5rem;
  background: white;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.tool-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.tool-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.tool-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.tool-body {
  margin-top: auto;
}

.field-row {
  margin-bottom: 20px;
}

.field-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.field-row input, 
.field-row select, 
.field-row textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: white;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.field-row input:focus, 
.field-row select:focus, 
.field-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108, 76, 245, 0.1);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.dropzone {
  border: 2px dashed var(--glass-border);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(108, 76, 245, 0.02);
}

.dropzone:hover {
  border-color: var(--primary);
  background: rgba(108, 76, 245, 0.05);
}

.dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.dropzone-label {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dropzone-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tool-result {
  margin-top: 20px;
  padding: 16px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  font-weight: 600;
  color: var(--primary);
  text-align: center;
}

.converter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: 10px;
}

.tab-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

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

.field-row.three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* Specific to original components */
.resizer-stage canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
}

.comp-preview {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.age-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.age-stat-card {
  background: white;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  text-align: center;
}

.age-stat-val {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.age-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.data-source {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 12px;
  font-style: italic;
}

.data-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.data-label {
  font-weight: 600;
}

.data-value {
  color: var(--primary);
  font-weight: 700;
}

/* Wide tool card */
.tool-card-wide {
  grid-column: 1 / -1;
}

.vacancy-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}

.vacancy-col {
  display: flex;
  flex-direction: column;
}

.vacancy-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.vacancy-list {
  list-style: none;
  flex: 1;
}

.vacancy-item {
  background: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.vacancy-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.v-title {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.v-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Quiz Subject Grid */
.quiz-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.quiz-subject-btn {
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.quiz-subject-btn:hover {
  border-color: var(--primary);
  background: rgba(108, 76, 245, 0.05);
}

.quiz-subject-btn.active {
  border-color: var(--primary);
  background: rgba(108, 76, 245, 0.1);
  box-shadow: 0 0 0 2px var(--primary);
}

.quiz-subject-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.qs-label {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
}

.qs-sub {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

/* ============================================================
   SUBSCRIPTION SECTION STYLING
   ============================================================ */

.subscription-section {
  padding: 60px 20px;
  background: var(--bg-primary);
}

.subscription-card {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--gradient-primary);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  color: white;
  box-shadow: var(--shadow-lg);
}

.subscription-content {
  flex: 1;
  min-width: 300px;
}

.subscription-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
}

.subscription-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.subscribe-form {
  flex: 1.5;
  min-width: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.subscribe-email, 
.subscribe-phone {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.subscribe-btn {
  background: white;
  color: var(--primary);
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.subscribe-msg {
  flex-basis: 100%;
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 1.2em;
  font-weight: 600;
}
