:root {
  --bg: #05060a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-dim: #b4bcd0;
  --text-faint: #6b7280;
  --indigo: #818cf8;
  --sky: #38bdf8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.18), transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(56, 189, 248, 0.14), transparent 45%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(5, 6, 10, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--sky));
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 800; color: #05060a;
}
.nav-links { display: flex; gap: 2rem; align-items: center; font-size: 0.95rem; }
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--border-strong);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  color: var(--text) !important;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover { background: var(--surface-hover); border-color: rgba(129, 140, 248, 0.5); }

/* ---------- Hero ---------- */
.hero { padding: 7rem 0 5rem; text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 10px var(--sky);
  animation: pulse 1.8s ease-in-out infinite;
}
h1 {
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.gradient-text {
  background: linear-gradient(90deg, var(--indigo), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  margin: 1.75rem auto 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-dim);
}
.hero-actions { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--sky));
  color: #05060a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(56, 189, 248, 0.3); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-hover); }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky); font-weight: 600; margin-bottom: 0.85rem;
}
h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.section-head p { margin-top: 1rem; color: var(--text-dim); font-size: 1.1rem; }

/* ---------- Project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-hover); }
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(129, 140, 248, 0.12), transparent 60%);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(129,140,248,0.18), rgba(56,189,248,0.18));
  border: 1px solid var(--border);
  margin-bottom: 1.3rem;
}
.card-logo {
  width: 64px; height: 64px; border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.3rem;
  border: 1px solid var(--border);
  background: #05070a;
  display: grid; place-items: center;
  position: relative;
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.card .kicker { font-size: 0.8rem; color: var(--sky); font-weight: 600; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }
.card p { margin-top: 0.75rem; color: var(--text-dim); font-size: 1rem; position: relative; }
.card-link {
  margin-top: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--indigo); font-weight: 600; font-size: 0.95rem;
  position: relative;
}
.card-link .arrow { transition: transform 0.2s; }
.card:hover .card-link .arrow { transform: translateX(4px); }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  color: var(--text-faint); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.15rem 0.6rem; margin-left: 0.5rem;
  vertical-align: middle; text-transform: uppercase; letter-spacing: 0.05em;
}

/* ---------- Values / feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.feature h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6rem; }
.feature .fi { color: var(--sky); }
.feature p { color: var(--text-dim); font-size: 0.98rem; }

/* ---------- About ---------- */
.prose { max-width: 720px; }
.prose p { color: var(--text-dim); font-size: 1.12rem; margin-top: 1.25rem; }
.prose p:first-child { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.contact-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 1.75rem;
}
.contact-card .label {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600; margin-bottom: 0.6rem;
}
.contact-card .value { font-size: 1.1rem; font-weight: 600; }
.contact-card .value.addr { font-weight: 500; line-height: 1.5; color: var(--text-dim); }
.contact-card a.value { color: var(--indigo); }
.contact-card a.value:hover { text-decoration: underline; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.contact-form {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-dim); }
.field input, .field textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(129,140,248,0.6);
  background: rgba(255,255,255,0.06);
}
.contact-form .btn { align-self: flex-start; margin-top: 0.3rem; border: none; cursor: pointer; }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.95rem; min-height: 1.2em; margin: 0; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }
.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(129,140,248,0.08), rgba(56,189,248,0.06));
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
}
.cta-band h2 { max-width: 640px; margin: 0 auto; }
.cta-band p { color: var(--text-dim); margin: 1rem auto 2rem; max-width: 500px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 2rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-links { display: flex; gap: 1.75rem; font-size: 0.95rem; }
.footer-links a { color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-meta { color: var(--text-faint); font-size: 0.9rem; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade { animation: fade 0.9s ease-out both; }
.fade-2 { animation: fade 0.9s ease-out 0.12s both; }
.fade-3 { animation: fade 0.9s ease-out 0.24s both; }

@media (max-width: 640px) {
  .nav-links { gap: 1.1rem; font-size: 0.9rem; }
  .nav-links .hide-sm { display: none; }
  .hero { padding: 4.5rem 0 3.5rem; }
  section { padding: 3.5rem 0; }
  .cta-band { padding: 2.5rem 1.5rem; }
}
