@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #09090e;
  background-image:
    radial-gradient(ellipse 65% 45% at 25% 0%, rgba(99,102,241,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 80% 100%, rgba(52,211,153,0.07) 0%, transparent 55%);
  color: #a1a1aa;
  overflow-x: hidden;
}

body ::selection {
  background: #fff;
  color: #000;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}

.content-wrap { position: relative; z-index: 10; }

nav {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .nav-inner { padding: 20px 40px; }
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: clamp(84px, 9vw, 112px);
  height: auto;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.brand img:hover { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #52525b;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: #a1a1aa; }

.nav-links .nav-cta {
  color: #71717a;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 18px;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links .nav-cta:hover {
  color: #e4e4e7;
  border-color: rgba(255,255,255,0.18);
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 96px;
}

@media (min-width: 768px) {
  main { padding: 40px 32px 128px; }
}

.hero-section {
  transition: opacity 1s ease, transform 1s ease;
  transform: translateY(40px);
  opacity: 0;
}

.hero-section.visible {
  transform: translateY(0);
  opacity: 1;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  font-weight: 200;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 32px;
}

h1 em {
  font-style: italic;
  color: #71717a;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 32px;
}

@media (min-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr 3fr;
    gap: 32px;
    margin-top: 80px;
    padding-top: 48px;
  }
}

.label-muted {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #71717a;
}

.mission-text {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75;
  color: #a1a1aa;
}

@media (min-width: 768px) {
  .mission-text { font-size: 1.25rem; }
}

.expertise-section {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.05);
  transition: opacity 1s ease 300ms, transform 1s ease 300ms;
  transform: translateY(40px);
  opacity: 0;
}

.expertise-section.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 768px) {
  .expertise-section { margin-top: 128px; padding-top: 64px; }
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) { .expertise-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .expertise-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } }

.expertise-item { cursor: default; }

.expertise-icon {
  width: 32px;
  height: 32px;
  color: #fff;
  margin-bottom: 24px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.expertise-item:hover .expertise-icon { opacity: 1; }

.expertise-item h3 {
  font-size: 1.25rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.expertise-item p {
  font-size: 0.875rem;
  font-weight: 300;
  color: #71717a;
  line-height: 1.7;
}

.products-section {
  margin-top: 128px;
}

@media (min-width: 768px) { .products-section { margin-top: 192px; } }

.products-header {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 24px;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .products-header { padding-bottom: 32px; margin-bottom: 64px; }
}

.products-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.03em;
}

.products-header h2 span { color: #52525b; }

.product-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.product-text { order: 1; }
.product-canvas { order: 2; }

@media (min-width: 1024px) {
  .product-row { grid-template-columns: 1fr 1fr; gap: 64px; padding: 64px 0; }
  .product-text { order: 1; }
  .product-canvas { order: 2; padding-left: 32px; }
}

.product-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #52525b;
  margin-bottom: 16px;
}

@media (min-width: 768px) { .product-eyebrow { font-size: 12px; margin-bottom: 24px; } }

.product-row h3 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.product-url {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  opacity: 0.8;
  display: block;
  margin-bottom: 24px;
  text-decoration: none;
}

@media (min-width: 768px) { .product-url { font-size: 14px; margin-bottom: 32px; } }

.product-url.indigo { color: #818cf8; }
.product-url.emerald { color: #34d399; }

.product-desc {
  font-size: 1rem;
  font-weight: 300;
  color: #a1a1aa;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 32rem;
}

@media (min-width: 768px) { .product-desc { font-size: 1.125rem; margin-bottom: 40px; } }

.product-features {
  list-style: none;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 16px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) { .product-features { padding-left: 24px; margin-bottom: 48px; gap: 16px; } }

.product-features li {
  font-size: 12px;
  font-weight: 300;
  color: #71717a;
}

@media (min-width: 768px) { .product-features li { font-size: 14px; } }

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.2s;
}

@media (min-width: 768px) { .product-link { font-size: 14px; } }

.product-link:hover { gap: 12px; }
.product-link.indigo { color: #818cf8; }
.product-link.emerald { color: #34d399; }

.canvas-container {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 16px;
  border: 1px solid;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

@media (min-width: 768px) { .canvas-container { min-height: 340px; } }

.canvas-container.indigo { border-color: rgba(129,140,248,0.1); }
.canvas-container.emerald { border-color: rgba(52,211,153,0.1); display: flex; align-items: center; justify-content: center; }

.canvas-container canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; padding: 48px 32px; gap: 0; }
}

.footer-brand {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a1a1aa;
  text-align: center;
}

@media (min-width: 768px) { .footer-brand { text-align: left; } }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) { .footer-links { gap: 32px; } }

.footer-links a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #52525b;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3f3f46;
  font-weight: 300;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copy { font-size: 12px; text-align: right; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #111118;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #52525b;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: #e4e4e7;
  background: rgba(255,255,255,0.06);
}

.modal-panel h2 {
  font-size: 1.375rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: #71717a;
  margin-bottom: 28px;
  line-height: 1.6;
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .modal-panel { padding: 28px 20px; }
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 300;
  color: #e4e4e7;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #52525b;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-color: rgba(129,140,248,0.4);
  background: rgba(255,255,255,0.06);
}

#contactForm textarea {
  min-height: 110px;
  resize: vertical;
}

#contactForm button[type="submit"] {
  width: 100%;
  padding: 13px 24px;
  background: #fff;
  color: #09090e;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

#contactForm button[type="submit"]:hover { background: #e4e4e7; }
#contactForm button[type="submit"]:active { transform: scale(0.98); }
#contactForm button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-message {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
}

.status-message.show { display: block; }
.status-message.success { background: rgba(52,211,153,0.1); color: #34d399; border: 1px solid rgba(52,211,153,0.2); }
.status-message.error   { background: rgba(239,68,68,0.1);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.status-message.warning { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }

.cf-turnstile { margin-bottom: 4px; }
