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

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #eff6ff;
  --accent: #7c3aed;
  --dark: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 8px 48px rgba(15, 23, 42, .14);
  --transition: .22s ease;
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; color: var(--dark); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: var(--dark); }
h3 { font-size: 1.15rem; font-weight: 600; color: var(--dark); }
h4 { font-size: 1rem; font-weight: 600; color: var(--dark); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 4px 16px rgba(37,99,235,.35); }

.btn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn--outline:hover { background: var(--brand-light); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); }

.btn--white {
  background: var(--white);
  color: var(--brand);
  border-color: var(--white);
}
.btn--white:hover { background: var(--brand-light); }

.btn--lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn--full { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo span { color: var(--brand); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.nav-links a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--brand); }
.nav-links a:hover::after { width: 100%; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 5px 11px;
  font-family: var(--font);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  letter-spacing: .05em;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
  padding: 96px 0 104px;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__svg {
  width: 100%;
  max-width: 540px;
  height: auto;
  overflow: visible;
}

/* Floating card animations */
@keyframes hFloat1 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes hFloat2 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}
@keyframes hFloat3 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}
@keyframes hPulse {
  0%, 100% { opacity: 1; r: 6; }
  50%       { opacity: .4; r: 9; }
}

.hfc--1 { animation: hFloat1 3.2s ease-in-out infinite; }
.hfc--2 { animation: hFloat2 3.8s ease-in-out infinite .4s; }
.hfc--3 { animation: hFloat3 4.1s ease-in-out infinite .9s; }
.hpulse { animation: hPulse 1.8s ease-in-out infinite; }

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: #bfdbfe;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero__title { color: var(--white); }

.hero__sub {
  color: #bfdbfe;
  font-size: 1.0625rem;
  max-width: 560px;
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__bg-shape {
  position: absolute;
  right: -120px; top: -80px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ===== SECTIONS ===== */
.section { padding: 88px 0; }
.section:nth-child(even) { background: var(--surface); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section-header p { color: var(--muted); font-size: 1rem; max-width: 540px; }

.section-badge {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ===== CARDS (Services) ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: #cbd5e1; }

.card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .9375rem; }

/* ===== PRICING ===== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.pricing-card--featured {
  background: #0f172a;
  border: none;
  overflow: visible;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .35), 0 0 0 1px rgba(255,255,255,.06);
}
.pricing-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #60a5fa);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.pricing-card--featured .amount { color: #93c5fd; }

.pricing-card__badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--brand), var(--accent));
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .45);
  white-space: nowrap;
}

.pricing-card__header { margin-bottom: 28px; }
.pricing-card__name {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.pricing-card--featured .pricing-card__name { color: #93c5fd; }

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.per { font-size: .9375rem; color: var(--muted); }
.pricing-card--featured .per { color: #94a3b8; }

.pricing-card__desc { color: var(--muted); font-size: .9rem; }
.pricing-card--featured .pricing-card__desc { color: #94a3b8; }

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}
.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  color: var(--text);
}
.pricing-card--featured .pricing-card__features li { color: #e2e8f0; }
.pricing-card__features li::before {
  content: '✓';
  font-weight: 700;
  color: var(--brand);
  flex-shrink: 0;
}
.pricing-card--featured .pricing-card__features li::before { color: #60a5fa; }

.pricing-card--featured .btn--primary {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(37, 99, 235, .5);
}
.pricing-card--featured .btn--primary:hover {
  background: linear-gradient(90deg, var(--brand-dark), #6d28d9);
  box-shadow: 0 6px 28px rgba(37, 99, 235, .7);
}

.pricing__note {
  text-align: center;
  margin-top: 28px;
  color: var(--muted);
  font-size: .875rem;
}

/* ===== WHY US ===== */
.whyus__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.whyus__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.whyus__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
}
.whyus__item h4 { margin-bottom: 4px; }
.whyus__item p { color: var(--muted); font-size: .9375rem; }

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  max-width: 820px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark);
}
.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

.form-hint { font-size: .8125rem; color: var(--muted); }
.form__success { color: #16a34a; font-size: .9rem; margin-top: 10px; font-weight: 500; }

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.contact__info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--brand-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__info-item a {
  color: var(--brand);
  font-weight: 500;
  font-size: .9375rem;
  transition: color var(--transition);
}
.contact__info-item a:hover { color: var(--brand-dark); text-decoration: underline; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer .logo { color: var(--white); }
.footer .logo span { color: #60a5fa; }
.footer p { color: #94a3b8; font-size: .875rem; }

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  color: #64748b;
  font-size: .8125rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer__links a:hover { color: #94a3b8; }

.footer__company {
  color: #64748b;
  font-size: .8125rem;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .18s ease;
}
.modal-overlay.hidden { display: none !important; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp .22s ease;
}
.modal h2 { margin-bottom: 24px; font-size: 1.5rem; }

.modal__close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--transition);
  padding: 4px 8px;
  border-radius: 4px;
}
.modal__close:hover { color: var(--dark); background: var(--surface); }

.modal__form .form-group { margin-bottom: 16px; }

.modal__switch {
  text-align: center;
  margin-top: 16px;
  font-size: .8875rem;
  color: var(--muted);
}

.link-btn {
  background: none;
  border: none;
  color: var(--brand);
  font-family: var(--font);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color var(--transition);
}
.link-btn:hover { color: var(--brand-dark); }

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 80px 0 100px;
  min-height: 60vh;
}

.legal-header {
  text-align: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.legal-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.legal-updated {
  color: var(--muted);
  font-size: .875rem;
  margin-top: 10px;
}

.legal-content { max-width: 760px; margin: 0 auto; }

.legal-content h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}
.legal-content h3 {
  font-size: .975rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--brand);
}
.legal-content p {
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: .9375rem;
}
.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-content li {
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.7;
  font-size: .9375rem;
}
.legal-content a { color: var(--brand); }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--dark); }

.legal-notice {
  background: var(--brand-light);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 20px;
  margin: 20px 0;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.65;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color var(--transition);
}
.legal-back:hover { color: var(--brand-dark); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  animation: fadeIn .2s ease;
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .navbar__actions { display: none; }
  .hamburger { display: flex; }

  .navbar__inner { position: relative; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 18px;
    z-index: 99;
  }
  .nav-links.open + .navbar__actions { display: none; }

  .hero { padding: 64px 0 72px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; max-width: 280px; }

  .pricing__grid { grid-template-columns: 1fr; max-width: 380px; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .modal { padding: 28px 20px; }
}
