:root {
  /* Paper & Ink - Refined Palette */
  --bg: #fdfcf9; 
  --surface: #ffffff; 
  --fg: #1c1b1a; 
  --muted: #6b6965; 
  --border: #e8e6e1; 
  
  --accent: #b94212; 
  --accent-soft: rgba(185, 66, 18, 0.1);
  --accent-fg: #ffffff;
  
  --odoo-brand: #714B67;
  --odoo-soft: rgba(113, 75, 103, 0.1);

  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0f0f0e;
  --surface: #171615;
  --fg: #f0eee9;
  --muted: #94918c;
  --border: #2a2927;
  
  --accent: #d9531e;
  --accent-soft: rgba(217, 83, 30, 0.2);
  --accent-fg: #ffffff;
  
  --odoo-brand: #a8799b;
  --odoo-soft: rgba(168, 121, 155, 0.2);

  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .serif {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  color: var(--fg);
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 8vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.mono { font-family: 'JetBrains Mono', monospace; }

p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 65ch;
  line-height: 1.6;
}

.text-sm {
  font-size: 14px;
  color: var(--muted);
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

section { 
  padding-block: clamp(60px, 10vw, 120px); 
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-cols-12 {
  grid-template-columns: repeat(12, 1fr);
}

@media (max-width: 1024px) {
  .grid-cols-12 {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-cols-12 {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
}

.grid-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-support {
    grid-template-columns: 1fr;
  }
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  transform: translateY(-2px);
}

.btn-outline:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 0;
  background: var(--accent);
  transition: var(--transition);
}

.card:hover::before {
  height: 100%;
}

.odoo-card:hover {
  border-color: var(--odoo-brand);
}
.odoo-card::before {
  background: var(--odoo-brand);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  background-color: rgba(253, 252, 249, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding-block: 20px;
  transition: var(--transition);
}

[data-theme="dark"] .nav {
  background-color: rgba(15, 15, 14, 0.8);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}

/* WhatsApp Team Selector */
.whatsapp-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.whatsapp-menu {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.team-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--fg);
  transition: var(--transition);
}

.team-item:hover {
  background: var(--bg);
  transform: translateX(-4px);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Forms */
.form-card {
  padding: clamp(24px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}

input, textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--fg);
  padding: 12px 0;
  font-size: 18px;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
