:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-dark: #0f172a;
  --color-dark-surface: #1e293b;
  --color-accent: #0ea5e9;
  --color-accent-dark: #0284c7;
  --color-accent-2: #6366f1;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --font-sans: -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-dark);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover { color: #fff; }

.main-nav a.active {
  color: #fff;
  position: relative;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 2px;
  background: var(--color-accent);
}

#lang-toggle {
  background: transparent;
  border: 1px solid #475569;
  color: #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

#lang-toggle:hover {
  border-color: var(--color-accent);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-surface) 100%);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='80'%20height='80'%3E%3Cg%20fill='none'%20stroke='%230ea5e9'%20stroke-width='1'%20opacity='0.18'%3E%3Cline%20x1='10'%20y1='10'%20x2='40'%20y2='30'/%3E%3Cline%20x1='40'%20y1='30'%20x2='70'%20y2='15'/%3E%3Cline%20x1='40'%20y1='30'%20x2='55'%20y2='60'/%3E%3Cline%20x1='10'%20y1='60'%20x2='40'%20y2='30'/%3E%3C/g%3E%3Cg%20fill='%230ea5e9'%20opacity='0.35'%3E%3Ccircle%20cx='10'%20cy='10'%20r='2'/%3E%3Ccircle%20cx='40'%20cy='30'%20r='2.5'/%3E%3Ccircle%20cx='70'%20cy='15'%20r='2'/%3E%3Ccircle%20cx='55'%20cy='60'%20r='2'/%3E%3Ccircle%20cx='10'%20cy='60'%20r='1.8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  background-repeat: repeat;
}

/* Home hero: two soft glows suggesting the two service branches meeting */
.hero-home::after {
  background:
    radial-gradient(circle at 22% 35%, rgba(14, 165, 233, 0.35), transparent 45%),
    radial-gradient(circle at 78% 30%, rgba(99, 102, 241, 0.30), transparent 45%);
}

/* Business hero: diagonal glow suggesting upward growth */
.hero-business::before { background-size: 90px 90px; }
.hero-business::after {
  background: linear-gradient(115deg, rgba(14, 165, 233, 0.30) 0%, transparent 55%);
}

/* CRM hero: denser network + central hub glow suggesting connections */
.hero-crm::before { background-size: 56px 56px; }
.hero-crm::after {
  background: radial-gradient(circle at 50% 40%, rgba(14, 165, 233, 0.38), transparent 55%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover { background: var(--color-accent-dark); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #475569;
}

.btn-secondary:hover { border-color: var(--color-accent); }

/* Sections */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--color-surface);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 12px;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.section-alt .card { background: var(--color-bg); }

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Home path cards */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin: 24px 0 16px;
}

.path-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.path-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.path-card p {
  color: var(--color-text-muted);
  margin: 0 0 20px;
}

.path-card .cta-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.path-card .cta-link::after {
  content: " \2192";
}

.path-card .cta-link:hover { color: var(--color-accent-dark); }

/* Forms */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 24px;
  text-align: center;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form .btn {
  width: 100%;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}

.form-status.success { color: #16a34a; }
.form-status.error { color: #dc2626; }

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #94a3b8;
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer a:hover { color: #fff; }

.site-footer p { margin: 6px 0; }

/* Responsive */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .main-nav { gap: 16px; order: 3; width: 100%; justify-content: center; }
  .hero { padding: 64px 0; }
  .section { padding: 56px 0; }
  .contact-form { padding: 24px; }
}
