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

:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e5e9f2;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-ink: #1d4ed8;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
  --max: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-text { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; }

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

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-family: "Sora", sans-serif; font-weight: 800; font-size: 20px;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.7);
}
.brand-text { font-size: 18px; display: flex; align-items: baseline; gap: 6px; }
.brand-sub { font-size: 12px; font-weight: 500; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.main-nav a:hover { color: var(--ink); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--brand); color: #fff !important; font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.8);
}
.nav-cta:hover { background: var(--brand-ink); }

.lang-switch { display: inline-flex; gap: 2px; margin-left: 6px; background: #eef1f7; border-radius: 999px; padding: 3px; }
.lang-switch button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; cursor: pointer; padding: 5px 10px; border-radius: 999px;
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: transparent; transition: background .18s, color .18s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { background: #fff; color: var(--brand); box-shadow: 0 2px 6px -2px rgba(15,23,42,.25); }
.lang-switch .flag {
  width: 21px; height: 14px; border-radius: 3px; overflow: hidden; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(15,23,42,.12); line-height: 0;
}
.lang-switch .flag svg { width: 100%; height: 100%; display: block; }

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

/* ================= HERO ================= */
.hero { position: relative; overflow: hidden; background: var(--bg); color: #e6edf7; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before, .hero-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
}
.hero-bg::before { width: 620px; height: 620px; top: -220px; right: -160px; background: radial-gradient(circle, #2563eb, transparent 62%); }
.hero-bg::after { width: 560px; height: 560px; bottom: -260px; left: -140px; background: radial-gradient(circle, #06b6d4, transparent 60%); opacity: .4; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 78%);
}

.hero-inner { position: relative; z-index: 1; padding: 92px 24px 104px; max-width: 900px; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: #9fc0ff; font-weight: 600; margin-bottom: 22px;
  padding: 6px 14px; border: 1px solid rgba(159, 192, 255, .28); border-radius: 999px;
  background: rgba(37, 99, 235, .12);
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
.grad { background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; font-size: clamp(1.02rem, 2vw, 1.22rem); color: #b8c6dc; max-width: 680px; }

.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s, background .2s, box-shadow .2s; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 14px 30px -12px rgba(37, 99, 235, .9); }
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(37, 99, 235, 1); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #e6edf7; border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.hero-badges { list-style: none; padding: 0; margin: 54px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges li {
  display: flex; flex-direction: column; padding: 16px 22px; min-width: 165px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
}
.hero-badges strong { font-size: 1.05rem; color: #fff; }
.hero-badges span { font-size: 13px; color: #9fb0c9; }

/* ================= SECTIONS ================= */
.section { padding: 92px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.kicker { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.section-sub { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }

/* ================= CARDS ================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cdd8ee; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 18px; background: linear-gradient(135deg, #eef4ff, #e6fbff);
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ================= TECH ================= */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.tech-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 36px; box-shadow: var(--shadow);
}
.tech-logo {
  display: inline-block; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.4rem;
  padding: 8px 20px; border-radius: 12px; margin-bottom: 22px; letter-spacing: -.01em;
}
.tech-logo--vtiger { background: #e8f1ff; color: #1e5fd6; }
.tech-logo--delfato { background: #e7fbf6; color: #0d9488; }
.tech-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.tech-card p { color: var(--ink-soft); }
.tick { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.tick li { position: relative; padding-left: 30px; font-size: .98rem; color: var(--ink); }
.tick li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 12px; display: grid; place-items: center; font-weight: 700;
}
.tech-note { margin-top: 34px; text-align: center; color: var(--ink-soft); font-size: 1.02rem; max-width: 640px; margin-inline: auto; }

/* ================= STEPS ================= */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow);
}
.step-num {
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 1.15rem; margin: 12px 0 8px; }
.steps p { color: var(--ink-soft); font-size: .96rem; }

/* ================= ABOUT ================= */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 54px; align-items: center; }
.about-text p { color: var(--ink-soft); margin-top: 16px; font-size: 1.05rem; }
.about-text strong { color: var(--ink); }
.about-stats { display: grid; gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--shadow); display: flex; align-items: baseline; gap: 16px;
}
.stat strong {
  font-family: "Sora", sans-serif; font-size: 1.9rem; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 84px;
}
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* ================= CONTACT ================= */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-ic { font-size: 26px; margin-bottom: 8px; }
.contact-label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; }
.contact-value { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.12rem; color: var(--ink); }

/* ================= FOOTER ================= */
.site-footer { background: var(--bg); color: #b8c6dc; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { display: block; color: #fff; font-family: "Sora", sans-serif; }
.footer-brand span { font-size: 13px; color: #8ea1bd; }
.footer-meta { text-align: right; }
.footer-ids { display: flex; gap: 18px; justify-content: flex-end; font-size: 13px; color: #a7b7d1; margin-bottom: 6px; }
.footer-legal { font-size: 14px; color: #8ea1bd; }
@media (max-width: 720px) {
  .footer-meta { text-align: left; }
  .footer-ids { justify-content: flex-start; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .cards, .steps, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid, .about { grid-template-columns: 1fr; }
  .about { gap: 34px; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    transform: translateY(-140%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 8px; border-bottom: 0 !important; }
  .lang-switch { margin: 12px auto 0; }
  .nav-toggle { display: flex; }
  .section { padding: 68px 0; }
}
@media (max-width: 520px) {
  .cards, .steps, .contact-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 66px 24px 76px; }
}
