:root {
  --bg: #0b0d12;
  --bg-alt: #12151c;
  --card: #161a23;
  --border: #242a37;
  --text: #eef1f7;
  --text-dim: #9aa3b5;
  --accent: #3ec3f0;
  --accent-2: #d6f23b;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, .brand, .btn {
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.brand img { height: 32px; width: 32px; object-fit: contain; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero .eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #a9b3c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-dim);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0b0d12;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

/* Sections */
section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p { color: var(--text-dim); }

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

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

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .icon-wrap img { width: 34px; height: 34px; object-fit: contain; }

.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }

.card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 16px; }

.card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(214, 242, 59, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.card .link {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Feature strip */
.strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.strip .grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.strip .item { text-align: center; padding: 12px; }

.strip .item h4 { font-size: 1.8rem; font-weight: 800; margin-bottom: 4px; }

.strip .item p { color: var(--text-dim); font-size: 0.9rem; }

/* Contact form */
.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); }

.field textarea { resize: vertical; min-height: 120px; }

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}

.contact-info .card { text-align: center; }

.contact-info .icon-wrap { margin: 0 auto 18px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  color: var(--text-dim);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand { max-width: 320px; }

.footer-brand .brand { margin-bottom: 12px; }

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-links h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a { color: var(--text-dim); font-size: 0.9rem; }

.footer-links a:hover { color: var(--accent-2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Page hero (non-home) */
.page-hero { padding: 70px 0 50px; text-align: center; }

.page-hero .eyebrow {
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-top { flex-direction: column; }
}

/* Chat widget */
#vifose-chat-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

#vifose-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0b0d12;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vifose-chat-icon-close { display: none; }
#vifose-chat-root.open .vifose-chat-icon-open { display: none; }
#vifose-chat-root.open .vifose-chat-icon-close { display: inline; }

#vifose-chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 340px;
  max-width: calc(100vw - 40px);
  height: 460px;
  max-height: calc(100vh - 120px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#vifose-chat-root.open #vifose-chat-panel { display: flex; }

#vifose-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}

#vifose-chat-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
}

#vifose-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vifose-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.vifose-msg-bot,
.vifose-msg-agent {
  align-self: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

.vifose-msg-agent { border-color: var(--accent); }

.vifose-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: #0b0d12;
}

.vifose-typing { opacity: 0.6; }

#vifose-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

#vifose-chat-input {
  flex: 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

#vifose-chat-input:focus { border-color: var(--accent); }

#vifose-chat-form button {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: none;
  border-radius: 8px;
  width: 40px;
  cursor: pointer;
  color: #0b0d12;
  font-size: 1rem;
}

@media (max-width: 480px) {
  #vifose-chat-panel { width: calc(100vw - 40px); }
}
