/* ============================================
   ONLINE CYBER DIGITAL STORE - Master Styles
   BetterCV-inspired clean SaaS design
   ============================================ */

:root {
  /* Brand Colors */
  --primary: #0ea5e9;          /* Sky blue - main accent */
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --secondary: #0f172a;        /* Dark slate */
  --accent: #22c55e;           /* Success green */
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  
  /* Transitions */
  --transition: all 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========== HEADER / NAVBAR ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Logo image (replaces OC box) */
.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

.footer-brand .brand-logo-img {
  width: 36px;
  height: 36px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links a.external {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a.external svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
}

.menu-toggle:hover {
  background: var(--gray-100);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 2px rgb(14 165 233 / 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(14 165 233 / 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
}

/* ========== HERO ========== */
.hero {
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Hero visual / preview card */
.hero-visual {
  position: relative;
}

.preview-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: var(--transition);
}

.preview-card:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.preview-header {
  background: var(--gray-100);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.preview-dot.red { background: #f87171; }
.preview-dot.yellow { background: #fbbf24; }
.preview-dot.green { background: #34d399; }

.preview-body {
  padding: 28px;
  min-height: 320px;
}

.resume-mock {
  font-size: 0.8rem;
  color: var(--gray-700);
}

.resume-mock .name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.resume-mock .title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.resume-mock .section-title {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin: 16px 0 8px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 4px;
}

.resume-mock .bullet {
  margin-bottom: 4px;
  padding-left: 12px;
  position: relative;
}

.resume-mock .bullet::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Floating AI ideas */
.ai-idea {
  position: absolute;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.8rem;
  box-shadow: var(--shadow-md);
  max-width: 220px;
  animation: float 4s ease-in-out infinite;
}

.ai-idea.one {
  top: -20px;
  right: -30px;
  animation-delay: 0s;
}

.ai-idea.two {
  bottom: 40px;
  left: -40px;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ai-idea .label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-header h2 span {
  color: var(--primary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Templates showcase */
.templates-section {
  background: var(--gray-50);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.template-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.template-preview {
  height: 280px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.template-preview::after {
  content: "Preview";
  position: absolute;
  inset: 0;
  background: rgba(14, 165, 233, 0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}

.template-card:hover .template-preview::after {
  opacity: 1;
}

.template-info {
  padding: 16px;
  text-align: center;
}

.template-info h4 {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.template-info span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.step p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
  text-align: left;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius-xl);
  margin: 0 24px 80px;
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .brand {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .features-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 64px;
  }
  
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }

  .brand span {
    font-size: 0.85rem;
  }
  
  .hero {
    padding: 48px 20px 40px;
  }
  
  .hero h1 {
    font-size: 2.1rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  .features-grid,
  .steps,
  .templates-grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 56px 20px;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .final-cta {
    margin: 0 16px 56px;
    padding: 48px 20px;
  }
  
  .final-cta h2 {
    font-size: 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .ai-idea {
    display: none;
  }
  
  .preview-card {
    transform: none;
  }
}

/* Mobile nav open state */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 16px;
  gap: 4px;
  box-shadow: var(--shadow-md);
  z-index: 100;
}

.nav-links.mobile-open a {
  padding: 12px 16px;
}