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

:root {
  --blue: #0072CE;
  --blue-dark: #005aa8;
  --green: #3BB273;
  --ink: #111318;
  --ink-mid: #1e2330;
  --ink-soft: #2d3348;
  --slate: #6b7494;
  --mist: #f0f2f7;
  --white: #fafbfc;

  --ff-display: 'Bebas Neue', sans-serif;
  --ff-cond: 'Barlow Condensed', sans-serif;
  --ff-body: 'Barlow', sans-serif;

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

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

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--ff-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s var(--ease), transform 0.15s;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-110%) skewX(-15deg);
  transition: transform 0.4s var(--ease);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-primary:hover::after { transform: translateX(110%) skewX(-15deg); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-cond);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.8); }

.btn-full { width: 100%; justify-content: center; }
.btn-icon svg { width: 18px; height: 18px; }

/* ============================
   NAV
   ============================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(17,19,24,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--ff-cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
}
.logo-text small {
  font-size: 0.6em;
  letter-spacing: 0.2em;
  color: var(--green);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--ff-cond);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 8px 20px;
  font-size: 0.85rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 120px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.55) saturate(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(17,19,24,0.82) 0%,
    rgba(17,19,24,0.3) 55%,
    rgba(17,19,24,0.1) 100%
  );
}

.hero-slash {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 180px;
  z-index: 2;
  background: var(--white);
  clip-path: polygon(0 60%, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-cond);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--green);
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(4.5rem, 11vw, 9rem);
  line-height: 0.92;
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  color: var(--green);
  -webkit-text-stroke: 0px;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Floating stats */
.hero-stats {
  position: absolute;
  right: 48px;
  bottom: 180px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  padding: 20px 32px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 2.2rem;
  color: #fff;
  line-height: 1;
}
.stat-num sup { font-size: 0.5em; color: var(--green); vertical-align: super; }
.stat-label {
  display: block;
  font-family: var(--ff-cond);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.stat-div {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  left: 48px;
  bottom: 140px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-cond);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.scroll-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.25);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--green);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.28s; }
.reveal-delay-3 { transition-delay: 0.42s; }
.revealed { opacity: 1; transform: none; }

/* ============================
   TICKER BAND
   ============================ */
.band {
  background: var(--ink);
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.band-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
  font-family: var(--ff-cond);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.band-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================
   SERVICES
   ============================ */
.services {
  padding: 120px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-cond);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--blue);
}
.section-label.light::before { background: var(--green); }
.section-label.light { color: var(--green); }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 72px;
  letter-spacing: 0.01em;
}
.section-title em {
  font-style: normal;
  color: var(--blue);
}

.section-header { margin-bottom: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid #e4e8f0;
}

.service-item {
  position: relative;
  padding: 52px 44px;
  border-right: 1px solid #e4e8f0;
  border-bottom: 1px solid #e4e8f0;
  overflow: hidden;
  transition: background 0.3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.3s;
}
.service-item.in-view { opacity: 1; transform: none; }
.service-item:nth-child(2n) { border-right: none; }
.service-item:nth-child(3),
.service-item:nth-child(4) { border-bottom: none; }
.service-item:hover { background: #f7f9fc; }

.service-num {
  font-family: var(--ff-display);
  font-size: 5rem;
  line-height: 1;
  color: #e8edf5;
  position: absolute;
  top: 20px; right: 28px;
  transition: color 0.3s;
  user-select: none;
}
.service-item:hover .service-num { color: #d0daf0; }

.service-body h3 {
  font-family: var(--ff-cond);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.service-body p {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--slate);
  max-width: 340px;
}

.service-accent {
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--blue);
  transition: width 0.4s var(--ease);
}
.service-item:hover .service-accent { width: 100%; }

/* ============================
   WHY
   ============================ */
.why {
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.why-left {
  padding: 100px 64px 100px 48px;
  max-width: 560px;
  margin: 0 auto 0 0;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.why-left.in-view { opacity: 1; transform: none; }

.why-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  line-height: 0.95;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.why-title em { font-style: normal; color: var(--green); }

.why-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.58);
  margin-bottom: 40px;
}

.why-right {
  padding: 80px 48px 80px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border-left: 1px solid rgba(255,255,255,0.06);
}

.why-card {
  display: flex;
  gap: 18px;
  padding: 36px 28px;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s, border-color 0.3s;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), background 0.3s, border-color 0.3s;
}
.why-card.in-view { opacity: 1; transform: none; }
.why-card:hover { background: var(--ink-mid); border-color: rgba(59,178,115,0.2); }

.why-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  color: var(--green);
}
.why-icon svg { width: 100%; height: 100%; }

.why-card h4 {
  font-family: var(--ff-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.48);
}

/* ============================
   CONTACT
   ============================ */
.contact {
  background: var(--ink-mid);
  padding: 120px 48px;
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left { color: #fff; }
.contact-left.in-view { opacity: 1; transform: none; }
.contact-left { opacity: 0; transform: translateX(-20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

.contact-title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  line-height: 0.95;
  color: #fff;
  margin-bottom: 20px;
}
.contact-title em { font-style: normal; color: var(--blue); }

.contact-left > p {
  font-size: 0.97rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.97rem;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
}
.contact-list li:hover { color: #fff; }
.contact-list a { color: inherit; }
.contact-icon { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }

.contact-region {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

/* Form */
.contact-form-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.15s var(--ease), transform 0.7s 0.15s var(--ease);
}
.contact-form-wrap.in-view { opacity: 1; transform: none; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}
.form-group label {
  font-family: var(--ff-cond);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.97rem;
  font-weight: 300;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(0,114,206,0.06);
}
.form-group.has-error input,
.form-group.has-error textarea { border-color: #e05555; }

.form-error {
  font-size: 0.78rem;
  color: #e07070;
  display: none;
  font-weight: 300;
}
.form-group.has-error .form-error { display: block; }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(59,178,115,0.12);
  border: 1px solid rgba(59,178,115,0.3);
  color: var(--green);
  font-size: 0.95rem;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-success.visible { display: flex; }

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 48px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo-sm .logo-mark { width: 28px; height: 28px; font-size: 1rem; }

.footer-brand p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-top: 6px;
  font-weight: 300;
  letter-spacing: 0.08em;
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-family: var(--ff-cond);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.75); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  font-weight: 300;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .hero-stats { display: none; }
  .why { grid-template-columns: 1fr; }
  .why-left { max-width: 100%; padding: 80px 48px 40px; }
  .why-right { padding: 40px 48px 80px; border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .contact-inner { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(17,19,24,0.98);
    padding: 48px 32px;
    gap: 24px;
    align-items: flex-start;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.6rem; }
  .nav-cta { display: none; }

  .hero { padding-bottom: 80px; align-items: center; }
  .hero-content { padding: 0 24px; }
  .hero-sub { display: none; }
  .hero-scroll { display: none; }
  .hero-slash { clip-path: polygon(0 80%, 100% 100%, 0 100%); }

  .services { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; }
  .service-item:nth-child(2n) { border-right: none; }
  .service-item:nth-child(3) { border-bottom: 1px solid #e4e8f0; }
  .service-item:nth-child(4) { border-bottom: none; }

  .why-left { padding: 60px 24px 32px; }
  .why-right { padding: 32px 24px 60px; grid-template-columns: 1fr; }

  .contact { padding: 80px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
}
