:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-hover: 0 10px 30px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Navbar */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.95);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { font-weight: 800; font-size: 22px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 60px; right: 0; left: 0; background: #fff; flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.show { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.15) 0, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,.1) 0, transparent 50%);
}
.hero .container { position: relative; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); margin: 0 0 16px; font-weight: 800; line-height: 1.2; }
.hero p { font-size: clamp(16px, 2vw, 19px); max-width: 720px; margin: 0 auto 28px; opacity: .95; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--primary);
  color: #fff !important;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none !important;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37, 99, 235, .3); }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-accent { background: var(--accent); color: #fff !important; }
.btn-accent:hover { background: #d97706; }
.btn-wa { background: #25D366; }
.btn-wa:hover { background: #1eb858; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: #fff; }
.section-title { font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; margin: 0 0 12px; text-align: center; }
.section-subtitle { color: var(--text-muted); text-align: center; max-width: 640px; margin: 0 auto 40px; font-size: 16px; }

/* Plan tabs */
.plan-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.plan-tab {
  padding: 10px 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  transition: all .2s;
}
.plan-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Plan cards */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all .25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.plan-card.featured { border-color: var(--primary); border-width: 2px; }
.plan-card .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .5px;
}
.plan-name { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.plan-type { font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.plan-specs {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  font-size: 14px;
}
.plan-specs div { padding: 4px 0; }
.plan-specs b { color: var(--primary); }
.plan-prices { font-size: 13px; margin: 14px 0; text-align: left; }
.plan-prices ul { list-style: none; padding: 0; margin: 0; }
.plan-prices li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.plan-prices li:last-child { border: 0; }
.plan-prices li b { color: var(--text); }
.plan-card .btn { margin-top: auto; }

/* Order form */
.order-section { background: linear-gradient(180deg, #fff 0%, #f1f5f9 100%); }
.order-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: all .15s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.form-group textarea { resize: vertical; min-height: 80px; }

.summary-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0;
}
.summary-box .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.summary-box .total { font-size: 22px; font-weight: 800; color: var(--primary); margin-top: 10px; padding-top: 10px; border-top: 2px solid #bfdbfe; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.feature {
  background: #fff;
  padding: 26px 22px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: all .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { font-size: 36px; margin-bottom: 10px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; }
.alert.success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert.error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Toast */
.toast {
  position: fixed; top: 20px; right: 20px;
  background: var(--success); color: #fff;
  padding: 14px 22px; border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
  z-index: 1000;
  animation: slideIn .3s ease, fadeOut .3s ease 4.7s forwards;
  font-weight: 600;
}
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { transform: translateX(120%); opacity: 0; } }

/* Footer */
.footer { background: #0f172a; color: #cbd5e1; padding: 40px 0 20px; margin-top: 60px; }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
@media (max-width: 768px) { .footer .container { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 16px; margin: 0 0 12px; }
.footer a { color: #cbd5e1; display: block; padding: 4px 0; font-size: 14px; }
.footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 18px; margin-top: 24px; font-size: 13px; color: #64748b; }

/* Floating WA */
.fab-wa {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .5);
  z-index: 999;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, .5); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, .8); }
}
