:root {
  --bg: #0a0a0f;
  --bg-alt: #101016;
  --card-bg: #14141b;
  --card-bg-hover: #17171f;
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(0, 217, 255, 0.4);
  --ink: #f3f3f6;
  --ink-soft: #9d9dae;
  --accent: #00d9ff;
  --accent-dark: #00aecc;
  --accent-ink: #031316;
  --accent-purple: #8b6bf0;
  --radius: 12px;
  --max-width: 1080px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  line-height: 1.55;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 620px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.logo span { color: var(--accent); }

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover { color: var(--ink); }

.nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--accent-dark); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
  text-align: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  top: -220px;
  left: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.28), transparent 70%);
  filter: blur(50px);
}

.hero::after {
  bottom: -260px;
  right: -180px;
  width: 660px;
  height: 660px;
  background: radial-gradient(circle, rgba(139, 107, 240, 0.24), transparent 70%);
  filter: blur(60px);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "// ";
  opacity: 0.65;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 36px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { background: var(--accent-dark); }

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

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

/* Sections */
.section {
  padding: 76px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
  color: var(--ink);
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 640px;
}

.section p {
  color: var(--ink-soft);
}

.pull-quote {
  margin: 32px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  max-width: 640px;
}

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

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

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

.portfolio-card-placeholder {
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--ink);
}

.portfolio-tag {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

/* Icons */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 217, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.feature h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--ink);
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
}

/* Contact form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(157, 157, 174, 0.6);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.14);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.form-status.success { color: var(--accent); }
.form-status.error { color: #ff8080; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}

.footer-inner {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 640px) {
  nav { gap: 14px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}
