/* ============================================
   CLAREVO.IO — Styles
   ============================================ */

/* --- Variables --- */
:root {
  --blue-deep: #1B2B6B;
  --blue-mid: #243a8e;
  --emerald: #00C896;
  --emerald-dark: #00a87e;
  --bg: #F8F9FF;
  --text: #1A1A2E;
  --text-muted: #6b7280;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: rgba(27, 43, 107, 0.1);
  --shadow-sm: 0 2px 8px rgba(27, 43, 107, 0.08);
  --shadow-md: 0 8px 32px rgba(27, 43, 107, 0.12);
  --shadow-lg: 0 20px 60px rgba(27, 43, 107, 0.18);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  transition: var(--transition);
  background: transparent;
}

#navbar.scrolled {
  background: rgba(248, 249, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}
.logo-clarevo { color: var(--blue-deep); }
.logo-dot { color: var(--emerald); }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--emerald);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--blue-deep); }
.nav-link:hover::after { transform: scaleX(1); }

/* Lang switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(27, 43, 107, 0.07);
  border-radius: 100px;
  padding: 4px 8px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 100px;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.lang-btn.active {
  background: var(--emerald);
  color: var(--white);
}
.lang-btn:not(.active):hover { color: var(--blue-deep); }
.lang-sep { color: var(--border); font-size: 0.8rem; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(248, 249, 255, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.nav-mobile .nav-link {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}
.nav-mobile.open { display: flex; }

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0, 200, 150, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 10% 80%, rgba(27, 43, 107, 0.06) 0%, transparent 60%),
              var(--bg);
}

/* Background shapes */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.shape-1 {
  width: 500px; height: 500px;
  background: rgba(27, 43, 107, 0.12);
  top: -100px; right: -100px;
}
.shape-2 {
  width: 300px; height: 300px;
  background: rgba(0, 200, 150, 0.15);
  bottom: 100px; right: 200px;
}
.shape-3 {
  width: 200px; height: 200px;
  background: rgba(27, 43, 107, 0.08);
  bottom: -50px; left: 100px;
}

/* Hero layout */
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content > * { grid-column: 1; }
.hero-visual { grid-column: 2; grid-row: 1 / 6; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 200, 150, 0.1);
  color: var(--emerald-dark);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.7s ease both;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--blue-deep);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.7s 0.1s ease both;
}
.hero-accent {
  background: linear-gradient(135deg, var(--emerald), #00a8f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--emerald), var(--blue-mid));
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 200, 150, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 200, 150, 0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue-deep);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: var(--blue-deep);
  background: rgba(27, 43, 107, 0.05);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeSlideUp 0.7s 0.4s ease both;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero visual (globe + floating cards) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 420px;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}

.hero-globe {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(27, 43, 107, 0.12);
  animation: spin linear infinite;
}
.ring-1 { width: 220px; height: 220px; animation-duration: 20s; border-color: rgba(0, 200, 150, 0.2); }
.ring-2 { width: 170px; height: 170px; animation-duration: 15s; animation-direction: reverse; }
.ring-3 { width: 120px; height: 120px; animation-duration: 10s; }
.globe-core {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(27, 43, 107, 0.4);
  z-index: 2;
}

.hero-card-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.float-icon { font-size: 1.4rem; }
.float-text { display: flex; flex-direction: column; gap: 1px; }
.float-text strong { font-size: 0.85rem; font-weight: 700; color: var(--blue-deep); }
.float-text span { font-size: 0.72rem; color: var(--text-muted); }

.card-float-1 { top: 30px; left: 0; animation: floatAnim 4s ease-in-out infinite; }
.card-float-2 { bottom: 60px; right: 0; animation: floatAnim 4s 1.5s ease-in-out infinite; }
.card-float-3 { bottom: 20px; left: 20px; animation: floatAnim 4s 3s ease-in-out infinite; }

/* ============================================
   BLOGS SECTION
   ============================================ */
#blogs {
  padding: 100px 2rem;
  background: var(--bg);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  background: rgba(0, 200, 150, 0.1);
  color: var(--emerald-dark);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-title .accent { color: var(--emerald); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Blogs grid */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.blog-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Featured card */
.card-featured {
  border-color: rgba(0, 200, 150, 0.3);
  box-shadow: 0 4px 24px rgba(0, 200, 150, 0.1);
  position: relative;
}

/* Card header */
.card-header {
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  min-height: 140px;
}

.card-ai {
  background: linear-gradient(135deg, #1B2B6B 0%, #243a8e 100%);
}
.card-business {
  background: linear-gradient(135deg, #00C896 0%, #00a87e 100%);
}
.card-finance {
  background: linear-gradient(135deg, #1a3a5c 0%, #1B2B6B 100%);
}

.card-icon-wrap {
  width: 48px; height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.card-icon-wrap svg { width: 28px; height: 28px; }

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}
.badge-ai    { background: rgba(255,255,255,0.2); color: white; }
.badge-business { background: rgba(255,255,255,0.25); color: white; }
.badge-finance  { background: rgba(255,255,255,0.2); color: white; }

.featured-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  color: var(--emerald-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* Card body */
.card-body {
  padding: 1.5rem 2rem;
  flex: 1;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: -0.3px;
  margin-bottom: 0.75rem;
}
.card-title .accent { color: var(--emerald); }

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  background: rgba(27, 43, 107, 0.06);
  color: var(--blue-deep);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Card footer */
.card-footer {
  padding: 1rem 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.coming-soon {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.coming-dot {
  width: 8px; height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  margin-left: auto;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  border-radius: var(--radius);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(0, 200, 150, 0.12);
  border-radius: 50%;
  filter: blur(40px);
}

.newsletter-content { position: relative; z-index: 1; }

.newsletter h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-input:focus {
  border-color: var(--emerald);
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-logo { margin-bottom: 1rem; }
.footer-logo .logo-clarevo { color: var(--white); }

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.7);
}
.social-link:hover {
  background: var(--emerald);
  color: white;
}
.social-link svg { width: 16px; height: 16px; }

.footer-links-group h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1.25rem;
}
.footer-links-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-group a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer-links-group a:hover { color: var(--emerald); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================
   ANIMATIONS & REVEAL
   ============================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content > * { grid-column: 1; }
  .hero-visual { display: none; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .blogs-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  #hero { padding: 100px 1.5rem 60px; }
  #blogs { padding: 70px 1.5rem; }
  #footer { padding: 3rem 1.5rem 1.5rem; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .lang-switch { margin-left: auto; }

  .blogs-grid { grid-template-columns: 1fr; }

  .newsletter { padding: 2.5rem 1.5rem; }
  .newsletter-form { flex-direction: column; }

  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
}
