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

:root {
  --color-bg-primary:     #0A0F1E;
  --color-bg-secondary:   #0C1F3F;
  --color-bg-surface:     #111827;

  --color-blue-strong:    #185FA5;
  --color-blue-mid:       #378ADD;
  --color-blue-light:     #85B7EB;
  --color-blue-tint:      #B5D4F4;

  --color-text-primary:   #FFFFFF;
  --color-text-secondary: rgba(255,255,255,0.55);
  --color-text-muted:     rgba(255,255,255,0.35);
  --color-text-accent:    #378ADD;

  --color-border-subtle:  rgba(255,255,255,0.06);
  --color-border-mid:     rgba(255,255,255,0.12);

  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-title .accent { color: var(--color-text-accent); }

.section-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-blue-strong);
  color: #fff;
  border-radius: 7px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover { background: #1a6bb8; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--color-text-secondary);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 7px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-text:hover { color: #fff; }

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  background: var(--color-bg-primary);
  border-bottom: 0.5px solid var(--color-border-subtle);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(16px);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav__logo svg { height: 32px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav__link:hover { color: var(--color-text-primary); }

.nav__link--cta {
  background: var(--color-blue-strong);
  color: #fff !important;
  padding: 8px 16px;
  font-weight: 500;
}
.nav__link--cta:hover { background: #1a6bb8; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  padding: 7rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero .eyebrow { margin-bottom: 1.25rem; }

.hero__title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero__title .accent { color: var(--color-text-accent); }

.hero__desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 420px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

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

.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--color-text-primary);
}
.stat span {
  font-size: 12px;
  color: var(--color-text-muted);
}
.stat__divider {
  width: 1px;
  height: 36px;
  background: var(--color-border-mid);
}

/* Hero visual — abstract layers */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__layers {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero__layer {
  position: absolute;
  border-radius: 12px;
  transition: transform 0.6s ease;
}

.hero__layer--back {
  width: 200px;
  height: 200px;
  background: var(--color-blue-strong);
  opacity: 0.35;
  bottom: 40px;
  left: 40px;
}

.hero__layer--front {
  width: 200px;
  height: 200px;
  background: var(--color-blue-mid);
  opacity: 0.85;
  top: 40px;
  right: 40px;
}

.hero__layer--line {
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-blue-light), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

/* ===== SERVICES ===== */
.services {
  padding: 5rem 0;
  background: var(--color-bg-secondary);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border-mid);
  border-radius: 8px;
  padding: 1.75rem;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(55,138,221,0.3);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--color-blue-mid);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-card__tags li {
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid var(--color-border-mid);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* ===== DIFFERENTIATOR ===== */
.differentiator {
  padding: 5rem 0;
}

.differentiator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.differentiator__visual {
  display: flex;
  justify-content: center;
}

.differentiator__diagram {
  position: relative;
  width: 280px;
  height: 280px;
}

.differentiator__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--color-border-mid);
}

.differentiator__circle--outer {
  width: 280px;
  height: 280px;
  top: 0;
  left: 0;
}

.differentiator__circle--inner {
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(24,95,165,0.08);
  border-color: var(--color-blue-strong);
}

.differentiator__circle-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-blue-mid);
  line-height: 1.4;
}

.differentiator__text .section-title { text-align: left; }
.differentiator__text .section-desc { text-align: left; margin: 0; }

.differentiator__text p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.differentiator__points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.differentiator__point {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.differentiator__point-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-blue-mid);
  margin-top: 1px;
}

.differentiator__point-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ===== PROJECTS ===== */
.projects {
  padding: 5rem 0;
  background: var(--color-bg-secondary);
}

.projects__filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 6px;
  border: 0.5px solid var(--color-border-mid);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.filter-btn:hover { color: var(--color-text-primary); border-color: rgba(255,255,255,0.25); }
.filter-btn--active {
  background: var(--color-blue-strong);
  color: #fff;
  border-color: transparent;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border-mid);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  border-color: rgba(55,138,221,0.3);
  transform: translateY(-2px);
}

.project-card__img {
  height: 180px;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-surface);
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__img img { transform: scale(1.03); }

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,15,30,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__body { padding: 1.25rem; }

.project-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(55,138,221,0.1);
  color: var(--color-text-accent);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.project-card__body h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.project-card__body p {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.project-card--hidden { display: none; }

/* ===== PROCESS ===== */
.process { padding: 5rem 0; }

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

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

.process__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(24,95,165,0.12);
  border: 0.5px solid rgba(55,138,221,0.25);
  color: var(--color-blue-mid);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.process__step h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.process__step p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ===== CTA ===== */
.cta-section {
  padding: 5rem 0;
  background: var(--color-bg-secondary);
}

.cta__box {
  text-align: center;
  padding: 3rem;
  border: 0.5px solid var(--color-border-mid);
  border-radius: 12px;
  background: var(--color-bg-primary);
}

.cta__box .section-title { margin-bottom: 0.75rem; }

.cta__box p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CONTACT ===== */
.contact {
  padding: 5rem 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__info .section-title { text-align: left; margin-bottom: 0.5rem; }

.contact__info > p {
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: 2rem;
}

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

.contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-item__icon {
  width: 20px;
  height: 20px;
  color: var(--color-blue-mid);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.contact-item strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-item span {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.contact-form {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border-mid);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 4px; }

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border-mid);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--color-text-primary);
  font-family: var(--font);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-blue-mid);
}

.form-group select option { background: var(--color-bg-surface); }

.form-group.error input,
.form-group.error textarea { border-color: #c44; }

.form-success {
  text-align: center;
  color: var(--color-blue-mid);
  font-size: 14px;
  font-weight: 500;
  padding: 10px;
  background: rgba(55,138,221,0.08);
  border-radius: 6px;
  border: 0.5px solid rgba(55,138,221,0.2);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-primary);
  border-top: 0.5px solid var(--color-border-subtle);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0 2rem;
}

.footer__brand svg { height: 28px; }

.footer__brand p {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-top: 0.75rem;
  max-width: 260px;
}

.footer__links h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.footer__links a {
  color: var(--color-text-muted);
  font-size: 13px;
  transition: var(--transition);
}
.footer__links a:hover { color: var(--color-text-primary); }

.footer__links ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer__bottom {
  border-top: 0.5px solid var(--color-border-subtle);
  padding: 1.25rem 0;
}

.footer__bottom p {
  color: var(--color-text-muted);
  font-size: 12px;
  text-align: center;
}

/* ===== SCROLL ANIMATIONS ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-aos].aos-visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero__content { gap: 2.5rem; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }

  .nav__menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,15,30,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 99;
  }
  .nav__menu.open { display: flex; }
  .nav__link { font-size: 1rem; }
  .nav__toggle { display: flex; z-index: 100; }
  .nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 6rem 0 3rem; min-height: auto; }
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__desc { margin: 0 auto 2rem; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__layers { width: 220px; height: 220px; }
  .hero__layer--back, .hero__layer--front { width: 140px; height: 140px; }
  .hero__layer--back { bottom: 25px; left: 25px; }
  .hero__layer--front { top: 25px; right: 25px; }

  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .differentiator__grid { grid-template-columns: 1fr; }
  .differentiator__visual { order: -1; }
  .differentiator__text .section-title,
  .differentiator__text .section-desc { text-align: center; }
  .differentiator__text .section-desc { margin: 0 auto; }
  .contact__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .hero__stats { flex-direction: column; gap: 0.75rem; }
  .stat__divider { display: none; }
  .contact-form { padding: 1.25rem; }
}
