:root {
  --bg: #141720;
  --bg-hero: #141720;
  --bg-services: #0c1420;
  --bg-tools: #152332;
  --bg-about: #0f1c2e;
  --bg-projects: #0e1a2a;
  --bg-contact: #0a0f18;
  --bg-header: #07090d;
  --surface: #141924;
  --border: rgba(255, 255, 255, 0.12);
  --text: #e8edf5;
  --text-muted: #9aa4b2;
  --violet: #5ec8ff;
  --cyan: #22d3ee;
  --accent: #fbbf24;
  --gradient: linear-gradient(120deg, var(--violet), var(--cyan));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 0 0 12px;
}
.eyebrow.center { text-align: center; }

.name-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 44px;
}
.tag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  animation: dotPulse 2s infinite;
}
.tag-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.section-title { font-size: 2rem; margin-bottom: 8px; }
.section-title.center, .section-label { text-align: center; }
.section-label { font-size: 1.6rem; margin-bottom: 40px; }
.section-desc { color: var(--text-muted); max-width: 640px; margin: 0 auto 48px; }
.section-desc.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: #06101f; }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(94, 200, 255, 0.4); }
.btn-outline { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--cyan); background: rgba(94, 200, 255, 0.1); }
.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.full-width { width: 100%; text-align: center; border: none; cursor: pointer; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#home, #services, #tools, #about, #projects, #contact {
  scroll-margin-top: 84px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo { font-weight: 700; font-size: 1.7rem; }
.logo span { color: var(--cyan); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  position: relative;
  display: inline-block;
  width: fit-content;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 6px;
  transition: opacity 0.15s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { opacity: 0.85; }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }

/* Hero */
.hero { padding: 100px 0 80px; overflow: hidden; background: var(--bg-hero); min-height: calc(100vh - 77px); box-sizing: border-box; display: flex; align-items: flex-start; }
.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: clamp(1.3rem, 5vw, 3.6rem); white-space: nowrap; margin-bottom: 24px; }
.hero-sub { color: #c3ccd9; font-size: 1.15rem; line-height: 1.75; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; }

.hero-visual { position: relative; min-height: 380px; align-self: start; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.orb-1 { width: 260px; height: 260px; background: var(--violet); top: 90px; right: 40px; }
.orb-2 { width: 220px; height: 220px; background: var(--cyan); bottom: 20px; left: 20px; }

.live-feed {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 0 20px;
}
.hero-card {
  align-self: flex-end;
  max-width: 360px;
  white-space: nowrap;
  background: var(--surface);
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 0.85rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px);
  animation: cardIn 0.7s ease forwards;
}
.hero-card:nth-child(1) { align-self: flex-start; margin-left: 12px; }
.hero-card:nth-child(2) { align-self: flex-end; }
.hero-card:nth-child(3) { align-self: flex-start; margin-left: 44px; }
.hero-card:nth-child(4) { align-self: flex-end; margin-right: 20px; }
.hero-card:nth-child(5) { align-self: flex-start; margin-left: 24px; }
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green { background: #34d399; }
.dot-cyan { background: var(--cyan); }
.dot-violet { background: var(--violet); }

/* Services */
.services { padding: 100px 0; background: var(--bg-services); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s ease;
}
.service-card:hover { border-color: var(--violet); }
.service-icon { font-size: 1.6rem; margin-bottom: 12px; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Tools */
.tools { padding: 60px 0 100px; background: var(--bg-tools); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.tools-grid span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About */
.about {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  padding: 56px 0;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg-about);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.about-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}
.about-copy {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.about-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.about-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
}
.photo-caption {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cyan);
  text-align: center;
}
.photo-socials { display: flex; gap: 12px; }
.photo-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.photo-socials a:hover { color: var(--cyan); border-color: var(--cyan); }
.photo-socials svg { width: 20px; height: 20px; }
.about-photo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  z-index: 0;
}
.about-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.about-copy .section-title { margin: 0; margin-bottom: 27px; font-weight: 700; }
.about-copy .eyebrow { color: var(--cyan); margin: 0; font-weight: 700; font-size: 1rem; text-transform: none; letter-spacing: 0.01em; text-shadow: none; }
.about-copy h3 { font-size: 1.5rem; margin: 0; margin-top: 8px; font-weight: 700; }
.about-copy p { margin: 0; font-weight: 400; line-height: 1.625; color: #cbd5e1; }
.about-copy p:nth-of-type(2) { margin-bottom: 8px; }
.about-copy .section-title, .about-copy h3 { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6); }
.about-stats { display: flex; flex-direction: column; gap: 24px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* Projects */
.projects { padding: 100px 0; background: var(--bg-projects); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.project-tag {
  display: inline-block;
  background: rgba(94, 200, 255, 0.15);
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.project-card h3 { font-size: 1.1rem; }
.project-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.project-tag-live { background: rgba(34, 211, 238, 0.15); color: var(--cyan); }

.featured-project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
}
.featured-project-header { margin-bottom: 28px; }
.featured-project-header h3 { font-size: 1.5rem; margin: 10px 0 12px; }
.featured-project-sub { color: var(--text-muted); font-size: 0.95rem; max-width: 720px; margin: 0; }

.featured-project-video {
  display: block;
  width: 100%;
  max-height: 480px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 28px;
}

.featured-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.featured-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.featured-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.principle { border-left: 2px solid var(--violet); padding-left: 14px; }
.principle strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.principle span { color: var(--text-muted); font-size: 0.88rem; }

.featured-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.featured-stack span {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Contact */
.contact { padding: 100px 0; background: var(--bg-contact); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-copy p { color: var(--text-muted); }

.contact-form {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--violet);
}
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}
.form-status { margin: 0; font-size: 0.95rem; }
.form-status.success { color: var(--cyan); }
.form-status.error { color: #f87171; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 28px 0; background: #070b12; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .contact-inner { grid-template-columns: 1fr; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-stats, .featured-principles { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 20px; }
  .hero { padding: 56px 0 40px; }
  .about { position: static; min-height: 0; display: block; padding: 60px 0; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-copy { max-width: none; }
  .about-photo-col { order: -1; margin-left: auto; margin-right: auto; }
  .about-photo { width: 190px; height: 190px; }
  .about-photo::before { width: 280px; height: 280px; }
  .about-photo img { width: 190px; height: 190px; }
  .hero-actions { margin-top: 20px; }
  .name-tag { margin-bottom: 14px; }
  .live-feed { padding: 24px 0 0; gap: 10px; }
  .hero-card { padding: 10px 14px; font-size: 0.6875rem; }
  .hero-card:nth-child(odd) { margin-left: 0; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    display: none;
    gap: 8px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .logo { font-size: 1.3rem; }
}

@media (max-width: 640px) {
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .about-inner { padding-left: 16px; padding-right: 16px; }
  .about-copy h3 { font-size: 1rem; }
}
