/* ===== KECC FDA — Dark Premium SaaS Theme ===== */
:root {
  --bg:         #0a0e1a;
  --bg2:        #0f1525;
  --bg3:        #141c30;
  --surface:    #1a2340;
  --surface2:   #1e2a45;
  --border:     rgba(255,255,255,0.08);
  --border2:    rgba(255,255,255,0.14);
  --teal:       #00c9a7;
  --teal2:      #00e5c0;
  --teal-glow:  rgba(0,201,167,0.15);
  --gold:       #f5c842;
  --gold-glow:  rgba(245,200,66,0.15);
  --text:       #e8edf5;
  --text2:      #9ba8be;
  --text3:      #6b7a96;
  --white:      #ffffff;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.6);
  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text2); }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal2); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--text2); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ===== Language Switch ===== */
.lang-switch {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.lang-switch a {
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text3);
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.lang-switch a.active, .lang-switch a:hover {
  background: var(--teal);
  color: var(--bg);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-size: 1.15rem; font-weight: 800; color: var(--white);
  letter-spacing: -0.5px; text-decoration: none; white-space: nowrap;
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex; gap: 6px; list-style: none; align-items: center;
}
.nav-links a {
  padding: 6px 12px; color: var(--text2); font-size: 0.9rem; font-weight: 500;
  border-radius: 8px; transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.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(--text2); border-radius: 2px; transition: all var(--transition);
}
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 20px 24px; z-index: 999;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; color: var(--text2); font-weight: 500;
  border-radius: 8px; transition: all var(--transition);
}
.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.mobile-menu .lang-switch { margin-top: 12px; align-self: flex-start; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--teal); color: var(--bg);
  box-shadow: 0 0 24px rgba(0,201,167,0.3);
}
.btn-primary:hover {
  background: var(--teal2); color: var(--bg);
  box-shadow: 0 0 36px rgba(0,201,167,0.45);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--teal); color: var(--teal);
  background: var(--teal-glow);
}
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: #ffd84d; color: var(--bg); transform: translateY(-1px); }

/* ===== Hero ===== */
.hero {
  padding: 140px 0 100px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,201,167,0.12) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300c9a7' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,201,167,0.1); border: 1px solid rgba(0,201,167,0.25);
  color: var(--teal); padding: 6px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight { color: var(--teal); }
.hero p { font-size: 1.15rem; color: var(--text2); max-width: 580px; margin: 0 auto 40px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  margin-top: 64px; padding-top: 48px;
  border-top: 1px solid var(--border);
}
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.85rem; color: var(--text3); margin-top: 2px; }

/* ===== Cards ===== */
.cards { display: grid; gap: 20px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card h3 { color: var(--white); margin-bottom: 10px; }
.card p { color: var(--text2); font-size: 0.93rem; }
.card .price { font-size: 1.8rem; font-weight: 800; color: var(--teal); margin: 14px 0 4px; }
.card .price-note { font-size: 0.83rem; color: var(--text3); margin-bottom: 18px; }

.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--teal-glow); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  border: 1px solid rgba(0,201,167,0.2);
}

/* ===== Service Cards ===== */
.service-card { border-top: 2px solid var(--teal); }
.service-card .includes { margin: 16px 0; padding-left: 0; list-style: none; }
.service-card .includes li {
  padding: 6px 0 6px 22px; position: relative; font-size: 0.92rem; color: var(--text2);
}
.service-card .includes li::before {
  content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700;
}

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.pricing-tier {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.pricing-tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border2); }
.pricing-tier.featured { border-color: var(--teal); box-shadow: 0 0 32px rgba(0,201,167,0.15); }
.pricing-header {
  padding: 28px 28px 20px; text-align: center;
  background: var(--surface2);
}
.pricing-tier.featured .pricing-header { background: linear-gradient(135deg, rgba(0,201,167,0.2), rgba(0,201,167,0.05)); }
.pricing-header h3 { color: var(--white); margin-bottom: 4px; }
.pricing-header p { color: var(--text3); font-size: 0.88rem; }
.pricing-body { padding: 24px 28px; }
.pricing-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.pricing-item:last-child { border-bottom: none; }
.pricing-item .name { font-weight: 500; color: var(--text); font-size: 0.93rem; }
.pricing-item .cost { font-weight: 700; color: var(--teal); }
.pricing-note {
  background: var(--surface2); padding: 20px 24px; margin-top: 36px;
  border-radius: var(--radius); border-left: 3px solid var(--gold);
  font-size: 0.9rem; color: var(--text2);
}

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.team-member {
  text-align: center; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 28px; transition: all var(--transition);
}
.team-member:hover { border-color: var(--border2); transform: translateY(-3px); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--teal-glow); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-family: 'DM Serif Display', serif;
  margin: 0 auto 16px; border: 2px solid rgba(0,201,167,0.3);
}
.team-member h3 { color: var(--white); margin-bottom: 4px; }
.team-member .role { color: var(--teal); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.team-member p { color: var(--text2); font-size: 0.9rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.88rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: var(--surface); border: 1.5px solid var(--border2);
  border-radius: 8px; font-family: inherit; font-size: 0.93rem;
  color: var(--text); transition: border var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,201,167,0.1);
}
.form-group select option { background: var(--surface); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-card {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--teal-glow); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  border: 1px solid rgba(0,201,167,0.2);
}
.contact-info-item h4 { color: var(--white); font-size: 0.88rem; margin-bottom: 3px; }
.contact-info-item p { color: var(--text2); font-size: 0.88rem; }

/* ===== Cases ===== */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.case-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all var(--transition);
}
.case-card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 0 24px rgba(0,201,167,0.1); }
.case-tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; margin-bottom: 14px;
  background: var(--teal-glow); color: var(--teal);
  border: 1px solid rgba(0,201,167,0.2);
}
.case-card h3 { color: var(--white); margin-bottom: 10px; font-size: 1.05rem; }
.case-card p { color: var(--text2); font-size: 0.9rem; }
.case-result {
  margin-top: 16px; padding: 12px 16px;
  background: var(--teal-glow); border-radius: 8px;
  border: 1px solid rgba(0,201,167,0.15);
  font-size: 0.88rem; color: var(--teal); font-weight: 600;
}

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border2); }
.faq-question {
  padding: 18px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  background: var(--surface); color: var(--white);
  font-weight: 600; font-size: 0.95rem;
  user-select: none;
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--teal); transition: transform var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg2);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 16px 24px; color: var(--text2); font-size: 0.93rem; }

/* ===== Footer ===== */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .nav-logo { font-size: 1.1rem; display: inline-block; margin-bottom: 12px; }
.footer-brand p { color: var(--text3); font-size: 0.88rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text3); font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text3); font-size: 0.83rem; }

/* ===== Section BG variants ===== */
.bg-dark2 { background: var(--bg2); }
.bg-surface { background: var(--surface); }

/* ===== Highlight / Tag ===== */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
  background: var(--teal-glow); color: var(--teal);
  border: 1px solid rgba(0,201,167,0.2); margin-bottom: 16px;
}
.tag-gold {
  background: var(--gold-glow); color: var(--gold);
  border-color: rgba(245,200,66,0.2);
}

/* ===== Divider ===== */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-items { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text3); font-size: 0.88rem; font-weight: 500; }
.trust-item span.icon { font-size: 1.1rem; }

/* ===== Checkout ===== */
.checkout-wrap {
  max-width: 520px; margin: 100px auto 60px; padding: 0 24px;
}
.checkout-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.checkout-card h2 { color: var(--white); margin-bottom: 6px; }
.checkout-card .subtitle { color: var(--text2); margin-bottom: 28px; font-size: 0.93rem; }
.checkout-total {
  background: var(--teal-glow); border: 1px solid rgba(0,201,167,0.2);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.checkout-total .label { color: var(--text2); font-size: 0.9rem; }
.checkout-total .amount { font-size: 1.5rem; font-weight: 800; color: var(--teal); }

/* ===== Dashboard / Login ===== */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,201,167,0.08) 0%, transparent 60%),
              var(--bg);
  padding: 24px;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 44px 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 { color: var(--white); margin-bottom: 6px; }
.auth-card .subtitle { color: var(--text2); margin-bottom: 28px; font-size: 0.9rem; }

/* ===== Chatbot ===== */
#kecc-chat-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 4px 20px rgba(0,201,167,0.4);
  cursor: pointer; border: none; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
#kecc-chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,201,167,0.55); }
#kecc-chat-btn img { width: 100%; height: 100%; object-fit: cover; }
#kecc-chat-window {
  position: fixed; bottom: 96px; right: 24px; z-index: 9000;
  width: 360px; max-height: 520px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
}
#kecc-chat-window.open { display: flex; }
.kecc-chat-header {
  background: var(--bg2); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
}
.kecc-chat-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); }
.kecc-chat-header-info h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 2px; }
.kecc-chat-header-info p { color: var(--text3); font-size: 0.78rem; }
.kecc-online { display: flex; align-items: center; gap: 5px; }
.kecc-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; display: inline-block; }
.kecc-chat-close {
  margin-left: auto; background: none; border: none; color: var(--text3);
  cursor: pointer; font-size: 1.2rem; padding: 4px;
}
#kecc-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.kecc-msg {
  max-width: 82%; padding: 10px 14px; border-radius: 12px;
  font-size: 0.88rem; line-height: 1.5;
}
.kecc-msg.bot {
  background: var(--bg2); color: var(--text); align-self: flex-start;
  border: 1px solid var(--border); border-bottom-left-radius: 4px;
}
.kecc-msg.user {
  background: var(--teal); color: var(--bg);
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.kecc-chat-input {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--border); background: var(--bg2);
}
.kecc-chat-input input {
  flex: 1; background: var(--surface); border: 1px solid var(--border2);
  border-radius: 8px; padding: 9px 14px; color: var(--text);
  font-size: 0.88rem; font-family: inherit;
}
.kecc-chat-input input:focus { outline: none; border-color: var(--teal); }
.kecc-chat-input button {
  background: var(--teal); color: var(--bg); border: none;
  border-radius: 8px; padding: 9px 16px; cursor: pointer;
  font-weight: 700; font-size: 0.88rem; transition: background 0.2s;
}
.kecc-chat-input button:hover { background: var(--teal2); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links, .nav-right .lang-switch { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 110px 0 70px; }
  .hero-stats { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  #kecc-chat-window { width: calc(100vw - 32px); right: 16px; bottom: 90px; }
  #kecc-chat-btn { right: 16px; bottom: 16px; }
}
