/* ===========================
   RESET & VARIABLES
=========================== */
/* Image helpers */
.nav-logo-img { height: 36px; width: auto; display: block; }
.client-logo  { height: 32px; width: auto; object-fit: contain; opacity: 0.5; transition: opacity 0.25s ease; flex-shrink: 0; }
.client-logo:hover { opacity: 0.85; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-icon img { width: 28px; height: 28px; filter: invert(1) brightness(2); }
.testimonial-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-author div { text-align: left; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0a1628;
  --navy2:   #0f2040;
  --blue:    #1e4fd8;
  --blue-lt: #3a6ef5;
  --accent:  #00c8ff;
  --white:   #ffffff;
  --gray:    #8a9bb5;
  --gray-lt: #e8edf5;
  --text:    #cdd6ea;
  --card-bg: #111f38;

  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --transition: 0.25s ease;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

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

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-lt); border-color: var(--blue-lt); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ===========================
   NAV
=========================== */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 70px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  margin-right: auto;
}
.nav-links a {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30,79,216,0.25) 0%, transparent 70%),
    var(--navy);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 64px;
  padding: 80px 24px;
  width: 100%;
}

.hero-content {
  position: relative;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(0,200,255,0.12);
  color: var(--accent);
  border: 1px solid rgba(0,200,255,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
}

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

/* ===========================
   CLIENTS
=========================== */
.clients {
  padding: 48px 0;
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.clients-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.logo-track-wrapper { overflow: hidden; position: relative; }
.logo-track-wrapper::before,
.logo-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.logo-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--navy2), transparent); }
.logo-track-wrapper::after  { right: 0; background: linear-gradient(to left, var(--navy2), transparent); }

.logo-track {
  display: flex;
  gap: 56px;
  animation: scroll-logos 22s linear infinite;
  white-space: nowrap;
  will-change: transform;
  backface-visibility: hidden;
}
.logo-track span {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: color var(--transition);
}
.logo-track:hover { animation-play-state: paused; }
.logo-track span:hover { color: rgba(255,255,255,0.7); }

@keyframes scroll-logos {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ===========================
   SECTIONS COMMON
=========================== */
.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 48px;
  line-height: 1.2;
}

/* ===========================
   SERVICES
=========================== */
.services {
  padding: 100px 0;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(30,79,216,0.5);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  width: 56px;
  height: 56px;
  background: rgba(30,79,216,0.15);
  border: 1px solid rgba(30,79,216,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

.card-cta {
  display: flex;
  flex-direction: column;
}
.card-cta .btn { margin-top: auto; padding-top: 24px; width: fit-content; }

/* ===========================
   PROCESS
=========================== */
.process {
  padding: 100px 0;
  background: var(--navy2);
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(30,79,216,0.5);
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.step p { font-size: 0.875rem; color: var(--gray); }

.step-arrow {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.2);
  padding-top: 36px;
  flex-shrink: 0;
}

/* ===========================
   PORTFOLIO
=========================== */
.portfolio {
  padding: 100px 0;
}

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

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform var(--transition), border-color var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30,79,216,0.5);
}
.portfolio-img {
  height: 180px;
  position: relative;
}
.portfolio-img::after {
  content: 'View Project';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,79,216,0.7);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.portfolio-card:hover .portfolio-img::after { opacity: 1; }

.portfolio-info { padding: 20px; }
.portfolio-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.portfolio-info p { font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; }

.link-arrow {
  font-size: 0.85rem;
  color: var(--blue-lt);
  font-weight: 600;
  transition: gap var(--transition);
}
.link-arrow:hover { color: var(--accent); }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials {
  padding: 100px 0;
  background: linear-gradient(135deg, #0d1f3c 0%, #0a1a35 50%, #0f1e38 100%);
  text-align: center;
  border-top: 1px solid rgba(30,79,216,0.2);
  border-bottom: 1px solid rgba(30,79,216,0.2);
}

.testimonial-carousel { position: relative; min-height: 200px; }

.testimonial {
  display: none;
  animation: fadeIn 0.4s ease;
}
.testimonial.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stars { color: #f5c518; font-size: 1.3rem; margin-bottom: 20px; }

.testimonial-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white);
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}
.testimonial-author span {
  font-size: 0.85rem;
  color: var(--gray);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.dot.active { background: var(--accent); transform: scale(1.3); }

/* ===========================
   AWARDS
=========================== */
.awards {
  padding: 100px 0;
  text-align: center;
}

.awards-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.award {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 32px 40px;
  min-width: 200px;
  transition: transform var(--transition);
}
.award:hover { transform: translateY(-4px); }
.award-badge {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.award p { font-size: 0.85rem; color: var(--gray); }

/* ===========================
   CONTACT
=========================== */
.contact {
  padding: 100px 0;
  background: var(--navy2);
}

.contact h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact > .container > p {
  color: var(--gray);
  margin-bottom: 12px;
}

.contact-email {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 32px;
  transition: color var(--transition);
}
.contact-email:hover { color: var(--blue-lt); }

.contact-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.contact-social a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-lt);
  transition: color var(--transition);
}
.contact-social a:hover { color: var(--accent); }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #060e1c;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo {
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: inline-block;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--gray);
  max-width: 400px;
  line-height: 1.7;
}
.footer-contact { margin-top: 12px; white-space: nowrap; }
.footer-contact a { color: var(--accent); transition: color var(--transition); }
.footer-contact a:hover { color: var(--blue-lt); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--gray);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .services-grid,
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { flex-wrap: wrap; }
  .step-arrow { display: none; }
  .step { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { order: -1; }
  .hero-image img { max-width: 320px; }

  .nav-links,
  .nav-actions { display: none; }
  .nav-toggle { display: block; }

  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navy2);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav.menu-open .nav-actions {
    display: flex;
    position: absolute;
    top: 200px; left: 0; right: 0;
    padding: 0 24px 24px;
    background: var(--navy2);
    flex-direction: column;
  }

  .services-grid,
  .portfolio-grid { grid-template-columns: 1fr; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }

  .step { flex: 0 0 100%; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: flex-start; }
  .stat-divider { width: 48px; height: 1px; }
  .hero-cta { flex-direction: column; }
  .awards-list { flex-direction: column; align-items: center; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ===========================
   NAV ACTIVE STATE
=========================== */
.nav-links a.active { color: var(--white); }

/* ===========================
   INNER PAGES (n8n, celigo)
=========================== */
.page-hero {
  padding: 140px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30,79,216,0.25) 0%, transparent 70%),
    var(--navy);
  text-align: center;
}
.page-hero .hero-eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto;
}

.content-section { padding: 100px 0; }
.content-section.alt { background: var(--navy2); }
.content-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.content-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.content-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.content-inner p { color: var(--gray); line-height: 1.8; font-size: 1rem; }

.content-visual {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-visual.accent-bg {
  background: linear-gradient(135deg, rgba(30,79,216,0.2), rgba(0,200,255,0.08));
  border-color: rgba(30,79,216,0.3);
}
.visual-item { display: flex; align-items: center; gap: 16px; }
.visual-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(30,79,216,0.2);
  border: 1px solid rgba(30,79,216,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem;
}
.visual-item span { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.visual-arrow { font-size: 1.4rem; color: var(--accent); text-align: center; font-weight: 700; }

.benefits { padding: 100px 0; text-align: center; }
.benefits-intro { max-width: 640px; margin: 0 auto 56px; color: var(--gray); font-size: 1rem; line-height: 1.8; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: left; }
.benefit-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform var(--transition), border-color var(--transition);
}
.benefit-card:hover { transform: translateY(-6px); border-color: rgba(30,79,216,0.5); }
.benefit-number { font-size: 2.5rem; font-weight: 800; color: rgba(0,200,255,0.25); line-height: 1; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.benefit-card p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

.cta-band {
  padding: 100px 0;
  background: linear-gradient(135deg, #0d1f3c 0%, #0a1a35 50%, #0f1e38 100%);
  border-top: 1px solid rgba(30,79,216,0.2);
  border-bottom: 1px solid rgba(30,79,216,0.2);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--white); margin-bottom: 16px; letter-spacing: -0.5px; }
.cta-band p { color: var(--gray); font-size: 1.05rem; margin-bottom: 40px; }

@media (max-width: 768px) {
  .content-inner { grid-template-columns: 1fr; gap: 48px; }
  .benefits-grid { grid-template-columns: 1fr; }
}
