/* ============================================================
   primoArt codeStudio — v3 Repositioned
   Bordeaux & Warm Stone · Based on v4.0 design system
   ============================================================ */

/* ---- LIGHT TOKENS ---- */
:root, [data-theme="light"] {
  --bg: #fefdfb; --bg-alt: #faf9f7; --surface: #f0ede9;
  --border: #ddd8d2; --border-light: #e8e4de;
  --primary: #7f1d1d; --primary-hover: #5c1212;
  --primary-light: rgba(127,29,29,0.06); --primary-mid: rgba(127,29,29,0.12);
  --secondary: #57534e; --accent: #a16207;
  --success: #16a34a; --success-bg: #f0fdf4; --success-border: #86efac;
  --warning: #ca8a04; --warning-bg: #fefce8;
  --danger: #dc2626; --danger-bg: #fef2f2;
  --info: #0891b2; --info-bg: #ecfeff;
  --text: #1c1917; --text2: #57534e; --text3: #a8a29e; --text-inv: #faf8f6;
  --shadow: 0 4px 20px rgba(28,25,23,0.06);
  --shadow-lg: 0 12px 40px rgba(28,25,23,0.1);
  --glass: rgba(254,253,251,0.82);
  --code-bg: #f5f0ec;
}

/* ---- DARK TOKENS ---- */
[data-theme="dark"] {
  --bg: #1a1412; --bg-alt: #211b17; --surface: #2e2520;
  --border: #4a403a; --border-light: #3a312b;
  --primary: #d4897e; --primary-hover: #e09b91;
  --primary-light: rgba(212,137,126,0.1); --primary-mid: rgba(212,137,126,0.18);
  --secondary: #a8a29e; --accent: #e5c07b;
  --success: #4ade80; --success-bg: rgba(74,222,128,0.08); --success-border: #16a34a;
  --warning: #facc15; --warning-bg: rgba(250,204,21,0.08);
  --danger: #f87171; --danger-bg: rgba(248,113,113,0.08);
  --info: #22d3ee; --info-bg: rgba(34,211,238,0.08);
  --text: #f5f0ec; --text2: #a8a29e; --text3: #78716c; --text-inv: #1a1412;
  --shadow: 0 4px 20px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
  --glass: rgba(26,20,18,0.85);
  --code-bg: #2e2520;
}

/* ---- BASE ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
}
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; display: block; }
code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.88em;
  background: var(--code-bg); padding: 2px 7px; border-radius: 4px;
}

/* ---- VARIABLES ---- */
:root {
  --font: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 10px; --radius-lg: 16px; --radius-xl: 24px;
  --max-w: 1200px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--glass); backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition), background 0.4s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 32px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; flex-direction: column; white-space: nowrap; text-decoration: none; }
.nav-brand-name { font-size: 17px; font-weight: 400; letter-spacing: 0.5px; color: var(--text); line-height: 1.2; }
.nav-brand-name b { font-weight: 600; color: var(--primary); }
.nav-brand-name .base { font-weight: 500; color: var(--text); }
.nav-brand-tagline {
  font-family: var(--mono); font-size: 8px; font-weight: 500;
  color: var(--text3); letter-spacing: 2.5px; text-transform: uppercase; line-height: 1;
  margin-top: 2px;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand:hover .nav-brand-name { color: var(--text); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a.nav-link {
  font-size: 13px; font-weight: 500; color: var(--text2);
  letter-spacing: 0.3px; transition: color var(--transition);
  position: relative; padding-bottom: 2px;
}
.nav-links a.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--transition);
  transform-origin: center;
}
.nav-links a.nav-link:hover { color: var(--primary); text-decoration: none; }
.nav-links a.nav-link:hover::after { transform: scaleX(1); }
.nav-links a.nav-link.active { color: var(--primary); }
.nav-links a.nav-link.active::after { transform: scaleX(1); }

.nav-controls { display: flex; align-items: center; gap: 0; }
.nav-meta {
  display: flex; align-items: center; gap: 0;
  margin-right: 16px;
}
.nav-theme-toggle {
  background: none; border: none; color: var(--text3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 4px; transition: color var(--transition);
}
.nav-theme-toggle:hover { color: var(--primary); }
.nav-theme-toggle i { width: 15px; height: 15px; }
.nav-theme-toggle svg { width: 15px !important; height: 15px !important; }

.nav-cta {
  font-size: 13px; font-weight: 600; color: var(--primary);
  transition: color var(--transition); white-space: nowrap;
  position: relative; padding-bottom: 2px;
}
.nav-cta::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--transition);
  transform-origin: center;
}
.nav-cta:hover { color: var(--primary-hover); text-decoration: none; }
.nav-cta:hover::after { transform: scaleX(1); }

.nav-burger {
  display: none; width: 36px; height: 36px; border: none; background: none;
  color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-burger i { width: 22px; height: 22px; }

/* ============================================================
   SECTIONS COMMON
   ============================================================ */
.section { padding: 100px 32px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--primary); text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.section-label i { width: 16px; height: 16px; }
.section-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 700;
  line-height: 1.25; margin-bottom: 14px;
}
.section-desc { font-size: 14px; color: var(--text2); max-width: 600px; line-height: 1.8; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: none; transition: all var(--transition); text-decoration: none;
}
.btn i { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--text-inv); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text-inv); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* fade-in */
.fi { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.4,0,0.2,1); }
.fi.v { opacity: 1; transform: translateY(0); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 68px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.hero-brand { margin-bottom: 28px; opacity: 0; animation: fu 0.8s 0.2s forwards; }

/* Split-flap display */
.flap-container {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0;
  font-size: 26px; font-weight: 400; letter-spacing: 0.5px;
  line-height: 1.3; color: var(--text);
}
.flap-char {
  display: inline-block; min-width: 0.62em; text-align: center;
  font-family: var(--mono); font-weight: 500; position: relative;
}
.flap-char.space { min-width: 0.35em; }
.flap-char.flipping { color: var(--text3); }
.flap-char.settled { transition: color 0.15s; }
.flap-char.settled.primary { color: var(--primary); font-weight: 600; }

.hero-brand-tagline {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--text3); letter-spacing: 3px; text-transform: uppercase;
  margin-top: 8px; opacity: 0; transition: opacity 0.6s 0.3s;
}
.hero-brand-tagline.visible { opacity: 1; }
.hero-title {
  font-size: clamp(26px, 3.8vw, 42px); font-weight: 700;
  line-height: 1.2; margin-bottom: 24px;
  opacity: 0; animation: fu 0.8s 0.4s forwards;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 16px; color: var(--text2); max-width: 580px;
  line-height: 1.8; margin-bottom: 36px;
  opacity: 0; animation: fu 0.8s 0.6s forwards;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fu 0.8s 0.8s forwards; }
.hero-stats {
  display: flex; gap: 48px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--border-light);
  opacity: 0; animation: fu 0.8s 1s forwards;
}
.hero-stat-num { font-size: 22px; font-weight: 700; color: var(--primary); font-family: var(--mono); display: flex; align-items: center; }
.hero-stat-label { font-size: 11px; color: var(--text3); margin-top: 2px; }
@keyframes fu { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-cards { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; }

.svc-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
}
.svc-card:hover { box-shadow: var(--shadow); }

.svc-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.svc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.svc-icon i { width: 24px; height: 24px; }
.svc-card-header h3 { font-size: 18px; font-weight: 700; }
.svc-price-range { font-family: var(--mono); font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 2px; }

.svc-desc { font-size: 14px; color: var(--text2); line-height: 1.8; margin-bottom: 16px; }

.svc-meta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Packages */
.svc-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.svc-pkg {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px; transition: all var(--transition);
}
.svc-pkg:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.svc-pkg--accent { border-color: var(--primary); position: relative; }
.svc-pkg--accent::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary); border-radius: var(--radius) var(--radius) 0 0;
}
.svc-pkg-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 8px; }
.svc-pkg-header h4 { font-size: 16px; font-weight: 700; }
.svc-pkg-price { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.svc-pkg p { font-size: 13px; color: var(--text2); line-height: 1.7; }
.svc-pkg-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--text3); font-weight: 500;
}
.svc-pkg-meta i { width: 14px; height: 14px; }
.svc-pkg-note { margin-top: 8px; font-size: 12px; color: var(--accent); font-weight: 500; }

.svc-highlight {
  padding: 8px 14px; background: var(--primary-light);
  border-left: 3px solid var(--primary); border-radius: 0 6px 6px 0;
  font-size: 12px; color: var(--primary); font-weight: 600; font-family: var(--mono);
}

/* Modules spoiler */
.svc-modules { margin-top: 8px; }
.svc-modules summary {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--primary); cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 0; transition: color var(--transition);
}
.svc-modules summary::-webkit-details-marker { display: none; }
.svc-modules summary i { width: 14px; height: 14px; transition: transform var(--transition); }
.svc-modules[open] summary i { transform: rotate(45deg); }
.svc-modules summary:hover { color: var(--primary-hover); }

.svc-modules-grid {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 8px; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden;
}
.svc-mod {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border-light);
}
.svc-mod:last-child { border-bottom: none; }
.svc-mod:nth-child(even) { background: var(--surface); }
.svc-mod span:last-child { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-bg { background: var(--bg-alt); }

.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.proc-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: all var(--transition); position: relative;
}
.proc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.proc-num {
  font-family: var(--mono); font-size: 36px; font-weight: 700;
  color: var(--primary-light); line-height: 1; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0.35;
}
.proc-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.proc-card p { font-size: 13px; color: var(--text2); line-height: 1.7; }

.proc-cta {
  margin-top: 48px;
}
.proc-cta-inner {
  background: var(--bg); border: 2px solid var(--primary);
  border-radius: var(--radius-lg); padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.proc-cta-inner h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.proc-cta-inner p { font-size: 14px; color: var(--text2); line-height: 1.7; max-width: 520px; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.port-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.port-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.port-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.port-preview {
  height: 180px; background: var(--code-bg); position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.port-code {
  font-family: var(--mono); font-size: 11px; color: var(--text3);
  white-space: pre; line-height: 1.7; padding: 20px; opacity: 0.7;
}
.port-status {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 4px;
  display: flex; align-items: center; gap: 4px;
}
.port-status i { width: 10px; height: 10px; }
.port-status.live { background: var(--success-bg); color: var(--success); }
.port-status.dev { background: var(--warning-bg); color: var(--warning); }
.port-body { padding: 24px; }
.port-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.port-body h3 i { width: 18px; height: 18px; color: var(--primary); }
.port-type { font-family: var(--mono); font-size: 11px; color: var(--primary); font-weight: 500; margin-bottom: 8px; }
.port-body p { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 14px; }
.port-stack { display: flex; gap: 6px; flex-wrap: wrap; }
.port-stack span {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  padding: 3px 8px; border-radius: 4px;
  background: var(--surface); color: var(--text2); border: 1px solid var(--border-light);
}

/* ============================================================
   READY SOLUTIONS
   ============================================================ */
.solutions-bg { background: var(--bg-alt); }

.ready-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.ready-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.ready-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.ready-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity var(--transition);
}
.ready-card:hover::before { opacity: 1; }
.ready-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.ready-icon i { width: 24px; height: 24px; }
.ready-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.ready-card p { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.ready-footer { display: flex; align-items: center; gap: 12px; }
.ready-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--primary); padding: 4px 10px; background: var(--primary-light);
  border-radius: 4px;
}
.ready-soon { font-size: 11px; color: var(--text3); font-style: italic; }

/* ============================================================
   WHY ME
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.why-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: all var(--transition);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.why-icon {
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-icon i { width: 20px; height: 20px; }
.why-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ============================================================
   CORPORATE EXPERIENCE
   ============================================================ */
.corp-bg { background: var(--text); color: var(--text-inv); }
[data-theme="dark"] .corp-bg { background: #120e0c; }
.corp-bg .section-label { color: #d4897e; }
.corp-bg .section-title { color: #f5f0ec; }
.corp-bg .section-desc { color: #a8a29e; }

.corp-grid {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 48px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); overflow: hidden;
}
.corp-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}
.corp-item:last-child { border-bottom: none; }
.corp-item:hover { background: rgba(255,255,255,0.04); }
.corp-item > i { width: 20px; height: 20px; color: #d4897e; flex-shrink: 0; margin-top: 2px; }
.corp-item h4 { font-size: 14px; font-weight: 600; color: #f5f0ec; margin-bottom: 2px; }
.corp-item p { font-size: 13px; color: #a8a29e; line-height: 1.5; }

.corp-quote {
  margin-top: 36px; font-size: 15px; font-weight: 500;
  color: #d4897e; font-style: italic; text-align: center;
  padding: 24px; border-top: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-bg { background: var(--bg-alt); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text2); letter-spacing: 0.5px; }
.form-input, .form-textarea {
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--bg);
  font-family: var(--font); font-size: 14px; color: var(--text);
  transition: all var(--transition); outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  padding: 14px 32px; background: var(--primary); color: var(--text-inv);
  border: none; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  font-family: var(--font); cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
}
.form-submit i { width: 16px; height: 16px; }
.form-submit:hover { background: var(--primary-hover); transform: translateY(-2px); }
.form-note { font-size: 11px; color: var(--text3); margin-top: -8px; display: flex; align-items: center; gap: 6px; }
.form-note i { width: 12px; height: 12px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.contact-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.contact-card h4 i { width: 18px; height: 18px; color: var(--primary); }
.contact-card p { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 32px; border-top: 1px solid var(--border); text-align: center;
}
.footer-brand { font-size: 15px; font-weight: 400; margin-bottom: 8px; }
.footer-brand b { font-weight: 600; color: var(--primary); }
.footer-copy { font-size: 12px; color: var(--text3); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed; bottom: 92px; right: 24px; z-index: 200;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); color: var(--text2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  opacity: 0; pointer-events: none; transform: translateY(8px);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover {
  background: var(--primary); color: var(--text-inv); border-color: var(--primary);
  text-decoration: none;
}
.scroll-top i { width: 18px; height: 18px; }

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-trigger {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: var(--text-inv);
  border: none; cursor: pointer; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.chat-trigger:hover { background: var(--primary-hover); transform: scale(1.08); }
.chat-trigger.open { background: var(--secondary); }
.chat-trigger i { width: 24px; height: 24px; }

.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 200;
  width: 380px; max-height: 520px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
  animation: chatIn 0.3s ease;
}
.chat-panel.open { display: flex; }
@keyframes chatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-header {
  padding: 16px 20px; background: var(--primary); color: var(--text-inv);
  display: flex; align-items: center; gap: 12px;
}
.chat-header-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
}
.chat-header-icon i { width: 18px; height: 18px; }
.chat-header-text h4 { font-size: 14px; font-weight: 600; }
.chat-header-text span { font-size: 11px; opacity: 0.8; }
.chat-messages {
  flex: 1; padding: 16px; overflow-y: auto; min-height: 200px; max-height: 340px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 12px;
  font-size: 13px; line-height: 1.5;
}
.chat-msg.bot {
  background: var(--surface); color: var(--text);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--primary); color: var(--text-inv);
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.chat-input-row {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}
.chat-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; font-family: var(--font);
  outline: none; background: var(--bg); color: var(--text);
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
  padding: 10px 14px; background: var(--primary); color: var(--text-inv);
  border: none; border-radius: 8px; cursor: pointer; transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.chat-send:hover { background: var(--primary-hover); }
.chat-send i { width: 16px; height: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .svc-packages { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links .nav-link { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 64px 20px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats > div { min-width: 40%; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .proc-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: 1fr; }
  .ready-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .proc-cta-inner { flex-direction: column; text-align: center; }
  .chat-panel { right: 12px; left: 12px; width: auto; bottom: 88px; }
}
@media (min-width: 769px) {
  .nav-burger { display: none; }
}
