/* ===================================================
   TankhaBook – style.css
   Light theme, Sora font, blue accent SaaS design
=================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #0ea5e9;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 40px rgba(37,99,235,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --font: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

[data-theme="dark"] {
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --bg: #0d1117;
  --bg-alt: #161b22;
  --bg-card: #1e2938;
  --border: #30363d;
  --shadow: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  --primary-light: #1e3a5f;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  animation: pulse 1.2s ease infinite;
}
.loader-logo span { color: var(--accent); }
.loader-bar {
  width: 160px; height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px;
  animation: loadbar 1.5s ease forwards;
}
@keyframes loadbar { from { width: 0 } to { width: 100% } }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.6 } }

/* ---------- Navbar ---------- */
#mainNav {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  transition: box-shadow var(--transition), background var(--transition);
}
[data-theme="dark"] #mainNav { background: rgba(13,17,23,0.95); }
#mainNav.scrolled { box-shadow: var(--shadow); }
.navbar-brand {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 8px;
  font-weight: 800;
  margin-right: 4px;
  font-size: 1rem;
}
.brand-accent { color: var(--primary); }
.nav-link {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted) !important;
  padding: 0.5rem 0.8rem !important;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.navbar-toggler { border: none; color: var(--text); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Buttons ---------- */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  text-decoration: none;
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,99,235,0.35); color: white; opacity: 0.95; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white; border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,0.35); color: white; }
.btn-outline-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-outline-custom:hover { background: var(--primary); color: white; }

/* ---------- Section Utilities ---------- */
.section-pad { padding: 96px 0; }
.section-header { max-width: 600px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text);
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Hero ---------- */
.hero-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.min-vh-hero { min-height: calc(100vh - 70px); }
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
}
.shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -150px; }
.shape-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; left: -100px; }
.shape-3 { width: 300px; height: 300px; background: var(--green); top: 50%; left: 40%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff7ed; color: #ea580c;
  font-family: var(--font); font-size: 0.8rem; font-weight: 600;
  padding: 5px 14px; border-radius: 99px; margin-bottom: 20px;
  border: 1px solid #fed7aa;
}
.hero-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: var(--text);
}
.hero-sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 28px; max-width: 480px; }
.hero-stats { flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font); font-size: 1.3rem; font-weight: 800; color: var(--text); }
.stat span { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; background: var(--border); height: 36px; margin: auto 0; }

/* Dashboard Mockup */
.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: floatAnim 4s ease-in-out infinite;
}
@keyframes floatAnim { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.mockup-header {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-alt);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }
.mockup-title { font-family: var(--font); font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.mockup-body { padding: 20px; display: grid; gap: 16px; }
.mockup-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.mockup-card.blue { background: #eff6ff; border-color: #bfdbfe; }
.mockup-card.green { background: #ecfdf5; border-color: #a7f3d0; }
.mockup-card.orange { background: #fffbeb; border-color: #fde68a; }
.mc-icon {
  font-size: 1.4rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
}
.mockup-card.blue .mc-icon { color: var(--primary); }
.mockup-card.green .mc-icon { color: var(--green); }
.mockup-card.orange .mc-icon { color: var(--orange); }
.mc-num { font-family: var(--font); font-size: 1.3rem; font-weight: 800; color: var(--text); }
.mc-label { font-size: 0.75rem; color: var(--text-muted); }
.mockup-chart {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border);
}
.chart-label { font-family: var(--font); font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.bar {
  flex: 1; background: var(--border);
  border-radius: 4px 4px 0 0;
  height: var(--h);
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; padding-bottom: 4px;
  transition: height 0.8s ease;
  position: relative;
}
.bar span { font-size: 0.6rem; color: var(--text-muted); }
.bar.active { background: linear-gradient(180deg, var(--accent), var(--primary)); }
.bar.active span { color: white; }
.mockup-list { background: var(--bg-alt); border-radius: 12px; padding: 14px; border: 1px solid var(--border); }
.ml-title { font-family: var(--font); font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 10px; }
.ml-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.ml-item:last-child { border-bottom: none; }
.ml-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.ml-name { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.ml-role { font-size: 0.72rem; color: var(--text-muted); }
.ml-amount { font-family: var(--font); font-size: 0.85rem; font-weight: 700; color: var(--primary); margin-left: auto; }

/* ---------- Features ---------- */
.features-section { background: var(--bg-alt); }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.fc-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--ib);
  color: var(--ic);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card h5 {
  font-family: var(--font);
  font-weight: 700; font-size: 1rem;
  margin-bottom: 10px; color: var(--text);
}
.feature-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.fc-tag {
  display: inline-block;
  margin-top: 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 10px; border-radius: 99px;
}

/* ---------- App Showcase ---------- */
.showcase-section { background: var(--bg); }
.app-features-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.app-features-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; color: var(--text-muted);
}
.app-features-list li i { color: var(--green); font-size: 1.1rem; flex-shrink: 0; }

/* Phone Mockup */
.phone-showcase {
  position: relative;
  display: flex; align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px;
}
.phone-frame {
  width: 220px;
  background: var(--text);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative;
  animation: floatAnim 4s ease-in-out infinite;
}
.phone-frame.main-phone { z-index: 2; }
.phone-frame.side-phone {
  width: 190px;
  margin-left: -30px;
  margin-top: 60px;
  animation-delay: -2s;
  z-index: 1;
  opacity: 0.9;
}
.phone-screen {
  background: var(--bg-card);
  border-radius: 26px;
  overflow: hidden;
  min-height: 400px;
  padding: 16px;
}
.side-phone .phone-screen { min-height: 340px; }
.ps-header {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font); font-weight: 700; font-size: 0.85rem;
  margin-bottom: 12px; color: var(--primary);
}
.ps-header.small { font-size: 0.8rem; }
.ps-greeting { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 12px; }
.ps-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ps-card {
  padding: 10px;
  border-radius: 10px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem;
}
.ps-card.blue { background: #eff6ff; }
.ps-card.green { background: #ecfdf5; }
.ps-card strong { display: block; font-family: var(--font); font-size: 1rem; font-weight: 800; }
.ps-card small { color: var(--text-muted); font-size: 0.65rem; }
.ps-section-title { font-family: var(--font); font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.ps-att-list { display: grid; gap: 6px; margin-bottom: 14px; }
.ps-att-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; color: var(--text);
  padding: 6px 8px;
  background: var(--bg-alt);
  border-radius: 8px;
}
.ps-att-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ps-att-dot.green { background: var(--green); }
.ps-att-dot.red { background: var(--red); }
.ps-att-dot.yellow { background: var(--orange); }
.ps-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; text-align: center;
  border-radius: 10px; padding: 8px;
  font-family: var(--font); font-size: 0.75rem; font-weight: 700;
  cursor: pointer;
}
.ps-btn.green-btn { background: linear-gradient(135deg, var(--green), #0891b2); }
.ps-month { font-family: var(--font); font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.ps-payroll-card { background: var(--bg-alt); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.pp-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; padding: 4px 0; color: var(--text-muted); }
.pp-row strong { color: var(--text); font-weight: 700; }
.pp-row.deduct strong { color: var(--red); }
.pp-row.total { font-weight: 700; }
.pp-row.total span, .pp-row.total strong { color: var(--primary); font-size: 0.82rem; }
.pp-divider { height: 1px; background: var(--border); margin: 6px 0; }
.phone-glow {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 100px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.2), transparent 70%);
  pointer-events: none;
}

/* ---------- Why Section ---------- */
.why-section { background: var(--bg-alt); }
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-num {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--font); font-size: 2.5rem; font-weight: 900;
  color: var(--border); line-height: 1;
}
.why-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
  margin-bottom: 16px;
}
.why-card h6 {
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  margin-bottom: 8px; color: var(--text);
}
.why-card p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ---------- Pricing ---------- */
.pricing-section { background: var(--bg); }
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  height: 100%;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  box-shadow: 0 8px 32px rgba(37,99,235,0.15);
}
[data-theme="dark"] .pricing-card.featured { background: linear-gradient(135deg, #1e3a5f 0%, #1e3856 100%); }
.pc-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 12px; border-radius: 99px;
  margin-bottom: 16px;
}
.pc-badge.best { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; }
.pc-badge.enterprise { background: #1e293b; color: white; }
.pc-price {
  font-family: var(--font);
  font-size: 2.8rem; font-weight: 900;
  color: var(--text); line-height: 1;
  margin-bottom: 4px;
}
.pc-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pc-title {
  font-family: var(--font); font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.pc-subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.pc-features { list-style: none; padding: 0; margin-bottom: 28px; display: grid; gap: 10px; }
.pc-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--text);
}
.pc-features li i { font-size: 1rem; flex-shrink: 0; }
.pc-features li i.ri-check-line { color: var(--green); }
.pc-features li.disabled { color: var(--text-muted); }
.pc-features li.disabled i.ri-close-line { color: var(--border); }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--bg-alt); }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-card.featured-tc {
  border-color: var(--primary);
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
}
[data-theme="dark"] .testimonial-card.featured-tc { background: #1e3a5f; }
.tc-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.tc-author { display: flex; align-items: center; gap: 12px; }
.tc-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.tc-author strong { display: block; font-family: var(--font); font-size: 0.9rem; font-weight: 700; color: var(--text); }
.tc-author small { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-section { background: var(--bg); }
.contact-info-list { display: grid; gap: 14px; margin-top: 20px; }
.contact-info-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.contact-info-item:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateX(4px); color: var(--text); }
.ci-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  color: var(--c);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-info-item strong { display: block; font-family: var(--font); font-size: 0.9rem; font-weight: 700; }
.contact-info-item span { font-size: 0.82rem; color: var(--text-muted); }
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.contact-form-card h5 { font-family: var(--font); font-weight: 700; font-size: 1.2rem; color: var(--text); }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.custom-input {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.custom-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.custom-input::placeholder { color: var(--text-muted); }
.form-message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.form-message.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-message.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 64px 0 0;
}
.footer-brand {
  font-family: var(--font);
  font-size: 1.4rem; font-weight: 800;
  color: white; margin-bottom: 12px;
}
.footer-brand .brand-accent { color: var(--accent); }
.footer-desc { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-social {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition);
}
.footer-social.wa { background: rgba(37,211,102,0.15); color: #25d366; }
.footer-social.mail { background: rgba(245,158,11,0.15); color: #f59e0b; }
.footer-social.phone { background: rgba(37,99,235,0.15); color: var(--accent); }
.footer-social:hover { transform: translateY(-3px); filter: brightness(1.2); }
.footer-heading { font-family: var(--font); font-weight: 700; font-size: 0.9rem; color: white; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: white; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact div { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.footer-contact i { color: var(--accent); flex-shrink: 0; }
.footer-contact a { color: #94a3b8; text-decoration: none; transition: color var(--transition); }
.footer-contact a:hover { color: white; }
.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #64748b; text-decoration: none; font-size: 0.82rem; transition: color var(--transition); }
.footer-legal a:hover { color: white; }

/* ---------- Floating Buttons ---------- */
.floating-buttons {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; gap: 8px;
  color: white; text-decoration: none;
  border-radius: 50px;
  padding: 12px;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all var(--transition);
  overflow: hidden;
  max-width: 50px;
  white-space: nowrap;
}
.float-btn:hover { max-width: 160px; padding: 12px 18px; color: white; }
.float-label { font-family: var(--font); font-size: 0.8rem; font-weight: 600; opacity: 0; transition: opacity 0.2s; }
.float-btn:hover .float-label { opacity: 1; }
.wa-btn { background: linear-gradient(135deg, #25d366, #128c7e); }
.call-btn { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.email-btn { background: linear-gradient(135deg, #f59e0b, #ea580c); }

/* Dark Mode Toggle */
.dark-toggle {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 1000;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.dark-toggle:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.1); }

/* ---------- AOS Animations ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="150"] { transition-delay: 0.15s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="250"] { transition-delay: 0.25s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="350"] { transition-delay: 0.35s; }

/* Spin animation */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-section { padding: 90px 0 60px; }
  .min-vh-hero { min-height: auto; }
  .section-pad { padding: 64px 0; }
  .dashboard-mockup { max-width: 460px; margin: 0 auto; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .phone-showcase { flex-direction: column; align-items: center; }
  .phone-frame.side-phone { display: none; }
  .contact-form-card { padding: 24px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .floating-buttons { bottom: 16px; right: 16px; }
  .dark-toggle { bottom: 16px; left: 16px; }
  .hero-stats .stat-divider { display: none; }
}

@media (max-width: 480px) {
  .hero-cta .btn-lg { width: 100%; text-align: center; }
}
