@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

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

:root {
  --primary:       #0066cc;
  --primary-dark:  #004fa3;
  --teal:          #00b4d8;
  --teal-light:    #90e0ef;
  --orange:        #F7941D;
  --dark:          #0d1b2a;
  --dark-2:        #112233;
  --text:          #1e293b;
  --text-light:    #64748b;
  --white:         #ffffff;
  --light-bg:      #f0f7ff;
  --border:        #dce8f8;
  --success:       #10b981;
  --gradient:      linear-gradient(135deg, #0066cc 0%, #00b4d8 100%);
  --gradient-warm: linear-gradient(135deg, #F7941D 0%, #f0b040 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0,102,204,0.08), rgba(0,180,216,0.08));
}

html { scroll-behavior: smooth; }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,102,204,0.08);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,102,204,0.11); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-img { width: 36px; height: auto; flex-shrink: 0; }
.logo-text-wrap { display: flex; flex-direction: column; justify-content: center; }
.logo-name { font-size: 17px; font-weight: 900; letter-spacing: 0.8px; line-height: 1.15; }
.logo-ai   { color: var(--orange); }
.logo-konix { color: #3D4553; }
.logo-sub  { font-size: 7px; letter-spacing: 3px; color: #9aabb8; font-weight: 700; text-transform: uppercase; }

/* Nav links */
.nav-links { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: 14.5px;
  padding: 7px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--primary); background: rgba(0,102,204,0.07); }
.nav-links a.active { color: var(--primary); font-weight: 600; }

.btn-nav {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0,102,204,0.28) !important;
}
.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,102,204,0.4) !important;
  background: var(--gradient) !important;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient); color: #fff;
  text-decoration: none; padding: 14px 30px;
  border-radius: 12px; font-weight: 700; font-size: 15.5px;
  border: none; cursor: pointer; transition: all 0.22s;
  box-shadow: 0 6px 20px rgba(0,102,204,0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,102,204,0.44); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary);
  text-decoration: none; padding: 14px 30px;
  border-radius: 12px; font-weight: 700; font-size: 15.5px;
  border: 2px solid var(--primary); cursor: pointer; transition: all 0.22s;
}
.btn-secondary:hover { background: rgba(0,102,204,0.05); transform: translateY(-2px); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  text-decoration: none; padding: 14px 30px;
  border-radius: 12px; font-weight: 700; font-size: 15.5px;
  border: 2px solid rgba(255,255,255,0.35); cursor: pointer; transition: all 0.22s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

/* ===== SECTION SHARED ===== */
section { padding: 88px 0; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; background: rgba(0,102,204,0.09);
  color: var(--primary); font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 50px; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 14px;
}
.section-title { font-size: 38px; font-weight: 800; color: var(--dark); margin-bottom: 14px; letter-spacing: -0.5px; line-height: 1.2; }
.section-subtitle { font-size: 16.5px; color: var(--text-light); line-height: 1.75; }

.section-title em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== DARK META STRIP ===== */
.meta-strip { background: var(--dark); padding: 52px 0; }
.meta-strip-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 2px;
}
.meta-item {
  text-align: center; padding: 26px 18px;
  background: rgba(255,255,255,0.03); border-radius: 4px;
}
.meta-item-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.meta-item-value { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.meta-item-key { font-size: 12.5px; color: rgba(255,255,255,0.48); font-weight: 500; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--dark); padding: 88px 0;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 380px;
  background: radial-gradient(ellipse, rgba(0,180,216,0.16) 0%, transparent 68%);
  pointer-events: none;
}
.cta-section h2 { font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 14px; position: relative; letter-spacing: -0.5px; }
.cta-section p { font-size: 17.5px; color: rgba(255,255,255,0.6); max-width: 500px; margin: 0 auto 36px; position: relative; line-height: 1.75; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }

/* ===== FOOTER ===== */
.footer { background: var(--dark-2); color: rgba(255,255,255,0.62); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 46px; }

.footer-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-bottom: 16px; }
.footer-logo-img { width: 32px; height: auto; opacity: 0.9; }
.footer-logo-name { font-size: 16px; font-weight: 900; letter-spacing: 0.8px; }
.footer-logo-ai { color: var(--orange); }
.footer-logo-konix { color: rgba(255,255,255,0.85); }

.footer-brand p { font-size: 13.5px; line-height: 1.75; max-width: 270px; }
.footer-social { display: flex; gap: 9px; margin-top: 20px; }
.social-btn {
  width: 34px; height: 34px; background: rgba(255,255,255,0.07);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: rgba(255,255,255,0.6); font-size: 13px;
  font-weight: 700; transition: all 0.2s;
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: rgba(255,255,255,0.52); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; font-size: 12.5px;
}
.footer-bottom a { color: rgba(255,255,255,0.42); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.72); }

/* ===== FADE-IN ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  padding: 130px 0 72px;
  background: linear-gradient(155deg, #eef5ff 0%, #e4f0fd 50%, #edfaff 100%);
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; top: -160px; right: -160px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,180,216,0.13) 0%, transparent 68%);
  pointer-events: none;
}
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,102,204,0.1); color: var(--primary);
  font-size: 12.5px; font-weight: 700; padding: 5px 14px;
  border-radius: 50px; margin-bottom: 18px; border: 1px solid rgba(0,102,204,0.2);
}
.page-hero h1 { font-size: 50px; font-weight: 900; color: var(--dark); margin-bottom: 18px; letter-spacing: -1.5px; line-height: 1.15; }
.page-hero h1 em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.page-hero p { font-size: 17.5px; color: var(--text-light); max-width: 600px; margin: 0 auto; line-height: 1.75; }

/* ===== BADGE ANIMATION ===== */
.badge-dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.4)} }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .meta-strip-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section-title { font-size: 33px; }
  .page-hero h1 { font-size: 42px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08); gap: 4px;
  }
  .nav-links.mobile-open a { padding: 10px 14px; }
  .nav-toggle { display: flex; }
  .section-title { font-size: 28px; }
  .page-hero h1 { font-size: 32px; }
  .cta-section h2 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary, .btn-outline-white { width: 100%; justify-content: center; }
  .meta-strip-grid { grid-template-columns: repeat(2,1fr); }
  .page-hero h1 { font-size: 26px; }
}

/* ===== FLOATING BUTTONS ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 54px; height: 54px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.42);
  transition: all 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.6); }

.back-to-top {
  position: fixed; bottom: 94px; right: 29px; z-index: 999;
  width: 40px; height: 40px; background: var(--gradient);
  border: none; border-radius: 50%; color: #fff;
  font-size: 17px; cursor: pointer; display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,102,204,0.3); transition: all 0.3s;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,102,204,0.45); }

@media (max-width: 480px) {
  .whatsapp-float { bottom: 18px; right: 18px; width: 48px; height: 48px; }
  .back-to-top { bottom: 78px; right: 19px; width: 36px; height: 36px; font-size: 15px; }
}
