/* ===== Base & Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a1628;
  --bg-elevated: #0d1b2e;
  --bg-card: #122033;
  --bg-card-hover: #16283d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf5;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #2dd4bf;
  --accent-dim: rgba(45, 212, 191, 0.15);
  --accent-glow: rgba(45, 212, 191, 0.35);
  --cyan: #2dd4bf;
  --teal: #14b8a6;
  --success: #34d399;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --transition: 0.2s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

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

/* ===== Typography ===== */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0a1628;
}

.btn-primary:hover {
  background: #5eead4;
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.btn-ghost:hover {
  color: var(--accent);
}

.btn .arrow,
.btn .arrow-down {
  font-size: 0.9em;
  opacity: 0.85;
}

.full-width { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 22, 40, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 22, 40, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #0a1628;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.03em;
}

.logo-text span {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 0.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link:hover { color: var(--text); }

.cta-nav {
  padding: 0.5rem 1.1rem;
  background: var(--accent-dim);
  color: var(--accent) !important;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.cta-nav:hover {
  background: rgba(45, 212, 191, 0.25);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 40%, black 20%, transparent 75%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.glow-1 {
  width: 520px;
  height: 520px;
  background: #0ea5e9;
  top: -15%;
  right: 5%;
  opacity: 0.12;
}

.glow-2 {
  width: 380px;
  height: 380px;
  background: var(--accent);
  bottom: 5%;
  left: -8%;
  opacity: 0.1;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1180px;
}

.hero-content {
  max-width: 540px;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

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

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.hero-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* Orbital visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 420px;
}

.orbit-system {
  position: relative;
  width: 380px;
  height: 380px;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 { width: 140px; height: 140px; }
.orbit-2 { width: 220px; height: 220px; border-color: rgba(45, 212, 191, 0.14); }
.orbit-3 { width: 300px; height: 300px; border-color: rgba(45, 212, 191, 0.1); }
.orbit-4 { width: 380px; height: 380px; border-color: rgba(45, 212, 191, 0.07); }

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1e3a4f, #0d2137);
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow:
    0 0 40px rgba(45, 212, 191, 0.15),
    inset 0 0 20px rgba(45, 212, 191, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.center-mark {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.center-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.2;
}

.orbit-node {
  position: absolute;
  z-index: 3;
  padding: 0.4rem 0.75rem;
  background: rgba(13, 33, 55, 0.9);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.node-automation {
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
}

.node-cloud {
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
}

.node-operations {
  top: 50%;
  left: -12%;
  transform: translateY(-50%);
}

.node-integration {
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
}

.visual-caption {
  margin-top: 1.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.visual-caption span {
  color: var(--accent);
  opacity: 0.7;
  margin: 0 0.35rem;
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 640px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ===== Services ===== */
.services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(45, 212, 191, 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-list li {
  font-size: 0.875rem;
  color: var(--text-dim);
  padding-left: 1.1rem;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Expertise ===== */
.expertise-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.expertise-content > p {
  color: var(--text-muted);
  margin: 1rem 0 2rem;
  font-size: 1.05rem;
}

.expertise-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.point {
  display: flex;
  gap: 1.25rem;
}

.point-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.8;
  min-width: 28px;
  padding-top: 0.15rem;
}

.point h4 {
  margin-bottom: 0.25rem;
}

.point p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-header {
  display: flex;
  gap: 6px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.dot:nth-child(1) { background: #f87171; }
.dot:nth-child(2) { background: #fbbf24; }
.dot:nth-child(3) { background: #34d399; }

.code-block {
  padding: 1.5rem;
  overflow-x: auto;
}

.code-block pre {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.code-block .cmt { color: #64748b; }
.code-block .kw { color: #c084fc; }
.code-block .str { color: #34d399; }
.code-block .prop { color: var(--accent); }
.code-block .num { color: #fbbf24; }

/* ===== Approach ===== */
.approach {
  background: var(--bg-elevated);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== About ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3.5rem;
  align-items: start;
}

.about-role {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0.5rem 0 1.25rem;
}

.about-content > p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 2rem;
}

.about-tags span {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

.linkedin-btn {
  margin-top: 0.5rem;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.aside-card h4 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.aside-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aside-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.aside-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ===== Contact ===== */
.contact {
  padding-bottom: 7rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
}

.contact-content h2 {
  margin-bottom: 1rem;
}

.contact-content > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-item .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.25rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg-elevated);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.footer-copy p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-footer-tags {
    justify-content: center;
  }

  .hero-visual {
    min-height: 360px;
  }

  .orbit-system {
    width: 320px;
    height: 320px;
  }

  .orbit-1 { width: 120px; height: 120px; }
  .orbit-2 { width: 190px; height: 190px; }
  .orbit-3 { width: 255px; height: 255px; }
  .orbit-4 { width: 320px; height: 320px; }

  .orbit-center {
    width: 96px;
    height: 96px;
  }

  .node-cloud { right: -4%; }
  .node-operations { left: -6%; }
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .expertise-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .approach-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  .cta-nav {
    margin-top: 0.75rem;
    border: none;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 480px) {
  .approach-steps {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .orbit-system {
    width: 280px;
    height: 280px;
  }

  .orbit-1 { width: 100px; height: 100px; }
  .orbit-2 { width: 160px; height: 160px; }
  .orbit-3 { width: 220px; height: 220px; }
  .orbit-4 { width: 280px; height: 280px; }

  .orbit-center {
    width: 84px;
    height: 84px;
  }

  .center-mark { font-size: 1.15rem; }
  .center-label { font-size: 0.55rem; }

  .orbit-node {
    font-size: 0.62rem;
    padding: 0.3rem 0.55rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}
