/* ==========================================================================
   InovaCode Technologies Inc. — Homepage Stylesheet
   Theme: DARK  ·  Accent: violet / magenta
   ========================================================================== */

:root {
  --bg: #0B0E14;
  --bg-soft: #10141D;
  --surface: #151A26;
  --surface-2: #1B2130;
  --border: #252C3E;
  --text: #E8EAED;
  --text-muted: #A2AAB8;
  --text-dim: #7A8294;
  --accent: #8B5CF6;
  --accent-2: #EC4899;
  --accent-bright: #A78BFA;
  --grad: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------- Navigation ----------------------------- */
/* Floating pill nav — styled via class selector only (never bare `nav`). */
.site-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 14px 10px 22px;
  background-color: #141A28;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 12px 40px #00000066;
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
}

.brand-name {
  color: var(--text);
  font-size: 17px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--grad);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px #8B5CF655;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* ------------------------------- Hero -------------------------------- */
.hero-section {
  position: relative;
  padding: 176px 24px 128px;
  background-color: var(--bg);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  background: linear-gradient(150deg, #171F30 0%, #0F1420 100%);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 8% 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(150deg, rgba(139,92,246,0.16) 0%, rgba(236,72,153,0.16) 100%);
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 30% 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--grad);
  color: #FFFFFF;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px #8B5CF655;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

/* Hero visual / orbit */
.hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: relative;
  width: 300px;
  height: 300px;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.ring-two {
  inset: 56px;
  border: 1px solid rgba(139,92,246,0.6);
}

.orbit-core {
  position: absolute;
  inset: 112px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 60px #8B5CF666;
}

.orbit-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
}

.node-a { top: 0; left: 50%; transform: translateX(-50%); }
.node-b { bottom: 34px; right: 4px; background: var(--accent-bright); }
.node-c { bottom: 34px; left: 4px; background: var(--accent-bright); }

.stat-card {
  position: absolute;
  padding: 16px 20px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px #00000066;
  display: flex;
  flex-direction: column;
}

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.card-one { top: 30px; left: 6%; }
.card-two { bottom: 30px; right: 0; }

/* --------------------------- Shared sections ------------------------- */
section {
  padding: 96px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  color: var(--text);
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
}

/* ------------------------------ Approach ----------------------------- */
.approach-section {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.approach-list {
  list-style: none;
  counter-reset: approach;
}

.approach-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.approach-item:last-child {
  border-bottom: none;
}

.numeral {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-bright);
}

.approach-item h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.approach-item p {
  color: var(--text-muted);
  max-width: 720px;
}

/* ------------------------------ Services ----------------------------- */
.services-section {
  background-color: var(--bg);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  position: relative;
  padding: 30px 28px 32px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.bento-wide {
  grid-column: span 2;
}

.bento-index {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-bright);
  margin-bottom: 14px;
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.bento-card p {
  color: var(--text-muted);
}

/* ------------------------------ Process ------------------------------ */
.process-section {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.timeline {
  position: relative;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 24px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-soft), 0 0 0 5px var(--accent);
}

.timeline-week {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.timeline-item p {
  color: var(--text-muted);
  max-width: 640px;
}

/* ------------------------------ Stats -------------------------------- */
.stats-band {
  background: var(--grad);
  padding: 72px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-block .counter {
  font-size: 52px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.stat-suffix {
  font-size: 30px;
  font-weight: 800;
  color: #FFFFFF;
}

.stat-block p {
  font-size: 15px;
  color: #FFFFFF;
  font-weight: 500;
}

/* ----------------------------- Industries ---------------------------- */
.industries-section {
  background-color: var(--bg);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.industry-tile {
  padding: 28px 26px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.industry-tile:hover {
  transform: translateY(-5px);
  border-color: var(--accent-2);
}

.industry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}

.industry-tile h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.industry-tile p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ------------------------------ Contact ------------------------------ */
.contact-section {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text);
}

.contact-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.contact-list a,
.contact-list span {
  color: var(--text-muted);
}

.contact-list a:hover {
  color: var(--accent-bright);
}

.contact-form {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  background-color: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  margin-top: 16px;
  align-self: flex-start;
}

.form-status {
  font-size: 14px;
  color: var(--accent-bright);
  min-height: 20px;
}

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

.footer-watermark {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 180px;
  font-weight: 800;
  letter-spacing: -6px;
  color: var(--surface-2);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.footer-col span {
  color: var(--text-muted);
  font-size: 15px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}

/* --------------------------- Reveal animation ------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-copy h1 {
    font-size: 42px;
  }

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

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-nav {
    gap: 0;
    justify-content: space-between;
    width: calc(100% - 24px);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px;
    display: none;
    box-shadow: 0 16px 40px #00000066;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background-color: var(--surface-2);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-section {
    padding: 150px 20px 90px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-visual {
    height: 300px;
  }

  .orbit {
    width: 240px;
    height: 240px;
  }

  .ring-two {
    inset: 44px;
  }

  .orbit-core {
    inset: 90px;
  }

  .section-head h2 {
    font-size: 30px;
  }

  .approach-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bento,
  .industry-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .bento-wide {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-watermark {
    font-size: 90px;
  }
}
