/* ===== VARIABLES ===== */
:root {
  --bg: #090909;
  --bg-card: #111111;
  --bg-elevated: #161616;
  --border: #1a1a1a;
  --border-2: #242424;
  --text: #f0f0f0;
  --text-2: #888888;
  --text-3: #555555;
  --accent: #00AAEF;
  --accent-dim: rgba(0, 170, 239, 0.08);
  --accent-border: rgba(0, 170, 239, 0.2);
  --accent-blue: #00AAEF;
  --accent-blue-dim: rgba(0, 170, 239, 0.08);
  --accent-blue-border: rgba(0, 170, 239, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Manrope', sans-serif;
  --font-serif: 'Instrument Serif', serif;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: 'Manrope', sans-serif; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.serif { font-family: 'Instrument Serif', serif; }
.italic { font-style: italic; }
.accent { color: var(--accent); }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.navbar.scrolled {
  background: rgba(9, 9, 9, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #000;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { opacity: 0.85; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}
.blob-1 {
  width: 700px;
  height: 700px;
  background: var(--accent);
  top: -250px;
  left: -200px;
}
.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  bottom: -150px;
  right: -150px;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  width: fit-content;
}
.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-subtext {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--text-3); }

/* ===== CODE EDITOR ===== */
.code-editor {
  background: #0c0c0c;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;
  font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 12.5px;
}
.editor-header {
  background: #0f0f0f;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
}
.editor-header::-webkit-scrollbar { display: none; }
.editor-dots { display: flex; gap: 6px; flex-shrink: 0; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green-dot { background: #28c840; }
.editor-tabs { display: flex; gap: 2px; }
.editor-tab {
  background: transparent;
  border: none;
  color: var(--text-3);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Fira Code', monospace;
}
.editor-tab.active {
  background: #1a1a1a;
  color: var(--text);
}
.editor-tab:hover:not(.active) { color: var(--text-2); }
.editor-body {
  display: flex;
  max-height: 300px;
  overflow-y: auto;
}
.editor-body::-webkit-scrollbar { width: 4px; }
.editor-body::-webkit-scrollbar-track { background: transparent; }
.editor-body::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
.line-numbers {
  padding: 18px 12px;
  color: var(--text-3);
  text-align: right;
  font-size: 11.5px;
  line-height: 1.9;
  user-select: none;
  min-width: 38px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}
.code-content {
  padding: 18px 18px 18px 14px;
  color: #cdd6f4;
  line-height: 1.9;
  white-space: pre;
  flex: 1;
  overflow-x: auto;
}
.code-content::-webkit-scrollbar { height: 4px; }
.code-content::-webkit-scrollbar-track { background: transparent; }
.code-content::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
/* Syntax highlight classes */
.k { color: #cba6f7; }
.s { color: #a6e3a1; }
.c { color: #585b70; font-style: italic; }
.f { color: #89b4fa; }
.n { color: #fab387; }
.o { color: #89dceb; }
.editor-footer {
  padding: 8px 16px;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.status-text {
  font-size: 12px;
  color: var(--text-2);
}

/* ===== SECTION COMMON ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 600px;
}

/* ===== SERVICES ===== */
.services { padding: 100px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.service-demo {
  padding: 32px;
  background: #0c0c0c;
  border-bottom: 1px solid var(--border);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-info {
  padding: 24px;
}
.service-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-info p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
}

/* Agent chat demo */
.agent-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}
.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
}
.chat-msg.bot { color: var(--text); }
.chat-msg.user {
  color: var(--text-2);
  padding-left: 20px;
  font-style: italic;
}
.chat-indicator {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Workflow demo */
.workflow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.wf-node {
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-2);
  min-width: 64px;
}
.wf-node.wf-active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}
.wf-icon { font-size: 18px; line-height: 1; }
.wf-arrow { color: var(--text-3); font-size: 16px; }
.wf-outputs { display: flex; flex-direction: column; gap: 5px; }
.wf-node.wf-sm { padding: 6px 10px; min-width: 70px; }

/* Browser mockup */
.browser-mock {
  background: #0d0d0d;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  overflow: hidden;
  width: 260px;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #141414;
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
}
.browser-url {
  font-size: 11px;
  color: var(--text-3);
  background: #1a1a1a;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: monospace;
}
.browser-body { padding: 14px; }
.mock-bar {
  height: 10px;
  background: var(--border-2);
  border-radius: 4px;
  margin-bottom: 8px;
}
.mock-bar.wide { width: 70%; }
.mock-bar.medium { width: 45%; }
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.mock-card {
  height: 36px;
  background: var(--border);
  border-radius: 6px;
}

/* Roadmap mini */
.roadmap-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 280px;
}
.rm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.rm-item.rm-active {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.rm-phase {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  width: 44px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rm-item.rm-active .rm-phase { color: var(--accent); }
.rm-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.rm-time {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

/* ===== APPROACH ===== */
.approach { padding: 100px 0; }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.approach-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 20px;
  transition: border-color 0.3s;
}
.approach-step:hover { border-color: var(--border-2); }
.step-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--border-2);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.04em;
}
.step-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-body p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.step-tag {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}

/* ===== CONTACT ===== */
.contact { padding: 100px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}
.contact-info .section-label { display: inline-block; margin-bottom: 14px; }
.contact-title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.contact-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.expect-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.expect-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2);
}
.expect-item svg { color: var(--accent); flex-shrink: 0; }
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-direct span { font-size: 13px; color: var(--text-3); }
.contact-direct a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-direct a:hover { opacity: 0.8; }

/* Form */
.form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group select option { background: #1a1a1a; }
.form-group textarea { resize: vertical; min-height: 100px; }

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.submit-btn:hover:not(:disabled) { opacity: 0.85; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-loader, .btn-success { display: none; }
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-loader { display: flex; animation: spin 0.9s linear infinite; }
.submit-btn.success .btn-text,
.submit-btn.success .btn-loader { display: none; }
.submit-btn.success .btn-success { display: flex; }
.submit-btn.success { background: #0090d0; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-trust {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.5;
}

/* Toggle button groups */
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toggle-btn {
  padding: 10px 18px;
  font-size: 13.5px;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.toggle-btn:hover {
  border-color: var(--accent-border);
  color: var(--text);
}
.toggle-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-desc {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.footer-email {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-email:hover { opacity: 0.8; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--text-2);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom p {
  font-size: 13px;
  color: var(--text-3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container { gap: 40px; }
  .contact-grid { gap: 48px; }
}

@media (max-width: 860px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .code-editor {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }
  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 2rem; }
  .services { padding: 70px 0; }
  .approach { padding: 70px 0; }
  .contact { padding: 70px 0; }
  .approach-step { flex-direction: column; gap: 12px; }
  .step-num { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: 1; }
  .footer { padding: 48px 0 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: rgba(9,9,9,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    z-index: 99;
  }
  .nav-links.open a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-2);
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
}

/* ===== HONEYPOT ANTI-BOT ===== */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
