/* ===== Innovatek Solutions — Agency Stylesheet ===== */

/* Dark-first palette: --paper is the page background, --ink the foreground */
:root {
  --paper: #101010;
  --ink: #f2f0eb;
  --ink-soft: #98948c;
  --line: rgba(242, 240, 235, 0.16);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1280px, 94%);
  margin-inline: auto;
}

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

h1, h2, h3 { font-family: var(--font-display); }

::selection { background: var(--ink); color: var(--paper); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 16, 16, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo sup { font-size: 0.6em; font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link-cta {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}

.nav-link-cta::after { display: none; }

.nav-link-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 8vh, 6rem);
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: clamp(3rem, 9.2vw, 8.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: none;
}

.hero-title .line { display: block; }

.hero-title em {
  font-style: italic;
  font-weight: 500;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.hero-sub {
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.3rem;
  transition: gap 0.25s;
}

.link-arrow:hover { gap: 1rem; }

.link-arrow svg { width: 18px; height: 18px; }

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  background: var(--paper);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.marquee-track span::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  margin: 0 1.8rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* ===== Sections ===== */
.section { padding: clamp(5rem, 10vh, 8rem) 0; }

.section-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.label-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.label-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ===== Services ===== */
#services { padding-bottom: 0; }

.service-list {
  border-top: 1px solid var(--line);
  margin-top: -1rem;
}

.service-row {
  display: block;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, color 0.3s;
}

.service-row-inner {
  display: grid;
  grid-template-columns: 3rem 1fr 1fr 3rem;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0;
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: color 0.3s;
}

.service-name {
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.service-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 420px;
  transition: color 0.3s;
}

.service-arrow {
  display: inline-flex;
  justify-content: flex-end;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}

.service-arrow svg { width: 26px; height: 26px; }

.service-row:hover {
  background: var(--ink);
  color: var(--paper);
}

.service-row:hover .service-num,
.service-row:hover .service-desc { color: rgba(16, 16, 16, 0.6); }

.service-row:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== About / Statement ===== */
.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-dark .label-num { color: rgba(16, 16, 16, 0.5); }

.statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 1000px;
}

.statement em {
  font-style: italic;
  color: rgba(16, 16, 16, 0.65);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(16, 16, 16, 0.25);
  padding-top: 2.5rem;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  color: rgba(16, 16, 16, 0.6);
  font-size: 0.92rem;
}

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  list-style: none;
}

.process-step {
  border-top: 1px solid var(--ink);
  padding-top: 1.4rem;
}

.process-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.6rem 0 0.5rem;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ===== CTA ===== */
.cta {
  border-top: 1px solid var(--line);
  padding: clamp(5rem, 12vh, 9rem) 0;
}

.cta-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.cta-title {
  display: inline-block;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 10rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  transition: opacity 0.25s;
}

.cta-title:hover { opacity: 0.75; }

.cta-circle {
  position: absolute;
  right: -0.9em;
  bottom: 0.12em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.72em;
  height: 0.72em;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transition: background 0.25s, color 0.25s;
}

.cta-circle svg { width: 45%; height: 45%; }

.cta-title:hover .cta-circle {
  background: var(--ink);
  color: var(--paper);
}

.cta-info {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--ink-soft);
}

.link-underline {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.link-underline:hover { opacity: 0.65; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-nav { display: flex; gap: 1.8rem; }

.footer-nav a, .footer-top {
  transition: color 0.2s;
}

.footer-nav a:hover, .footer-top:hover { color: var(--ink); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.hero-title .line:nth-child(2).reveal { transition-delay: 0.08s; }
.hero-title .line:nth-child(3).reveal { transition-delay: 0.16s; }
.hero-title .line:nth-child(4).reveal { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .service-row-inner {
    grid-template-columns: 2.4rem 1fr 2.4rem;
    gap: 1.2rem;
  }

  .service-desc { display: none; }

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

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open { max-height: 320px; }

  .nav-links li { width: 100%; }

  .nav-links .nav-link {
    display: block;
    padding: 1rem 3%;
  }

  .nav-links .nav-link-cta {
    margin: 0.6rem 3% 1.2rem;
    display: inline-block;
    border-radius: 999px;
  }

  .hero-bottom { flex-direction: column; align-items: flex-start; }

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

  .stats-row { grid-template-columns: 1fr; gap: 1.8rem; }

  .cta-circle { display: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
