/* ================================================
   KAEVIX AI — SHARED STYLES
   ================================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #0A1628;
  line-height: 1.6;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --navy:        #0A1628;
  --navy-mid:    #1E293B;
  --navy-light:  #2D4A6E;
  --blue:        #2563EB;
  --blue-light:  #3B82F6;
  --cyan:        #0EA5E9;
  --white:       #FFFFFF;
  --gray-50:     #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-700:    #334155;
  --grad-hero:   linear-gradient(135deg, #0A1628 0%, #0f2557 50%, #0f3460 100%);
  --grad-cta:    linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  --grad-card:   linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(14,165,233,0.04) 100%);
  --shadow-sm:   0 1px 3px rgba(10,22,40,0.08);
  --shadow-md:   0 4px 20px rgba(10,22,40,0.10);
  --shadow-lg:   0 20px 60px rgba(10,22,40,0.15);
  --shadow-blue: 0 8px 30px rgba(37,99,235,0.30);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

/* Typography */
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 4vw, 2.875rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
p  { font-size: 1.0625rem; color: var(--gray-500); line-height: 1.75; }

/* Layout */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section    { padding: 96px 0; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(37,99,235,0.10); color: var(--blue);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid rgba(37,99,235,0.20);
}
.badge::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--blue); flex-shrink:0; }

.section-tag {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: var(--gray-100); color: var(--gray-500);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-header h2 { color: var(--navy); margin-bottom: 14px; }

/* Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 15px 24px;
}
.nav-logo { font-size: 1.35rem; font-weight: 800; color: var(--navy); text-decoration: none; letter-spacing: -0.03em; }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--gray-700); font-weight: 500; font-size: 0.9375rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.btn-nav {
  padding: 10px 20px; border-radius: var(--r-sm);
  background: var(--grad-cta); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-blue); transition: all 0.2s; white-space: nowrap;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(37,99,235,0.42); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

.nav-mobile {
  display: none; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(10,22,40,0.10); padding: 12px 24px 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 0; color: var(--navy); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--gray-100); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn-nav { margin-top: 8px; text-align: center; display: block; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: var(--r-sm);
  background: var(--grad-cta); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow-blue); transition: all 0.25s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(37,99,235,0.45); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.10); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 1.5px solid rgba(255,255,255,0.28); transition: all 0.25s;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.20); border-color: rgba(255,255,255,0.55); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--r-sm);
  background: transparent; color: var(--blue);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 1.5px solid var(--blue); transition: all 0.25s;
}
.btn-outline:hover { background: rgba(37,99,235,0.06); transform: translateY(-1px); }

/* Page Hero (inner pages) */
.page-hero {
  background: var(--grad-hero);
  padding: 160px 0 88px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(37,99,235,0.22) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 18px; font-size: clamp(2rem, 5vw, 3.25rem); }
.page-hero > .container > p { color: rgba(255,255,255,0.70); max-width: 580px; margin: 0 auto; font-size: 1.125rem; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border-radius: var(--r-md); border: 1px solid var(--gray-200); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 26px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--navy);
  gap: 16px; transition: color 0.2s; font-family: inherit;
}
.faq-q:hover { color: var(--blue); }
.faq-arrow { font-size: 1rem; transition: transform 0.3s; flex-shrink: 0; color: var(--blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s; padding: 0 26px; font-size: 0.9375rem; color: var(--gray-500); }
.faq-item.open .faq-a { max-height: 200px; padding: 0 26px 20px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* Final CTA */
.final-cta { background: var(--grad-hero); text-align: center; padding: 112px 0; position: relative; overflow: hidden; }
.final-cta::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(37,99,235,0.25) 0%, transparent 70%); }
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; margin-bottom: 14px; }
.final-cta p  { color: rgba(255,255,255,0.70); max-width: 540px; margin: 0 auto 36px; font-size: 1.125rem; }

/* Footer */
footer { background: var(--navy); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.03em; display: inline-block; margin-bottom: 14px; }
.footer-logo span { color: var(--blue-light); }
.footer-brand p { color: rgba(255,255,255,0.50); font-size: 0.9375rem; max-width: 270px; }
.footer-brand a.email { display: inline-block; color: rgba(255,255,255,0.55); font-size: 0.9375rem; text-decoration: none; margin-top: 14px; transition: color 0.2s; }
.footer-brand a.email:hover { color: var(--blue-light); }
.footer-col h4 { color: rgba(255,255,255,0.88); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,0.50); font-size: 0.9375rem; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.90); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.10); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.875rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.875rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* Animations */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.aos { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.aos.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) { h1 { font-size: 2rem; } h2 { font-size: 1.625rem; } }