/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --yellow: #ffde59;
  --yellow-light: #ffe88a;
  --yellow-dark: #e6c84e;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

/* ========================================
   UTILITIES
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.highlight {
  color: var(--yellow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary {
  color: var(--white);
  background: rgba(255, 222, 89, 0.12);
  border: 1px solid rgba(255, 222, 89, 0.35);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    transparent 50%,
    rgba(255, 222, 89, 0.08) 100%
  );
  pointer-events: none;
  z-index: -1;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

.btn-primary:hover {
  background: rgba(255, 222, 89, 0.22);
  border-color: rgba(255, 222, 89, 0.55);
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(255, 222, 89, 0.2),
    0 4px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.2),
    inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1rem;
}

.section {
  padding: 120px 0;
}

.section-dark {
  background-color: var(--gray-900);
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yellow);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 48px;
  max-width: 700px;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-800);
}

.nav-content {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: flex-end;
  line-height: 0;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 36px;
  margin: 0;
  padding: 0 0 2px;
  min-height: 44px;
}

.nav-links li {
  display: flex;
  align-items: flex-end;
}

.nav-links a:not(.nav-cta) {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: var(--transition);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--white);
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: var(--transition);
  background: none;
  border: none;
  padding: 0;
  text-transform: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-cta::before,
.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  color: var(--yellow);
  transform: none;
  box-shadow: none;
  background: none;
  border-color: transparent;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  align-self: flex-end;
  margin-bottom: 6px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

/* ========================================
   HERO
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    url('assets/hero-bg.jpg') center right / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.75) 42%, rgba(10, 10, 10, 0.35) 68%, rgba(10, 10, 10, 0.15) 100%),
    linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 35%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 15% 50%, rgba(255, 222, 89, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ========================================
   SERVICES
   ======================================== */

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

.service-card {
  padding: 48px 36px;
  background-color: var(--black);
  position: relative;
  transition: var(--transition-slow);
  opacity: 0;
  transform: translateY(40px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  background-color: var(--gray-800);
}

.service-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
}

.service-tag-bracket {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.service-tag-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--white);
  opacity: 0.9;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.service-line {
  position: absolute;
  bottom: 0;
  left: 36px;
  right: 36px;
  height: 1px;
  background: var(--gray-800);
}

/* ========================================
   CLIENTS
   ======================================== */

#clients {
  background-color: var(--black);
  overflow: hidden;
}

.clients-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 16px 24px;
}

.client-logo img {
  width: 160px;
  height: auto;
  opacity: 0.4;
  transition: var(--transition);
}

.client-logo:hover img {
  opacity: 1;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   WHY THEWEB
   ======================================== */

#why {
  position: relative;
  overflow: hidden;
  background-color: var(--gray-900);
}

#why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/why-pattern.svg');
  background-size: 48px 48px;
  opacity: 1;
  pointer-events: none;
}

#why::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 222, 89, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 222, 89, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

#why .container {
  position: relative;
  z-index: 1;
}

.why-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 650px;
  margin-bottom: 64px;
}

.why-stats {
  display: flex;
  gap: 80px;
  opacity: 0;
  transform: translateY(30px);
}

.why-stats.visible {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition-slow);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}

.stat-symbol {
  font-size: 2rem;
  font-weight: 700;
  color: var(--yellow);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 8px;
  font-weight: 500;
}

/* ========================================
   SOLUTIONS
   ======================================== */

#solutions {
  background-color: var(--black);
}

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

.solution-card {
  padding: 40px;
  border: 1px solid var(--gray-800);
  transition: var(--transition-slow);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background-color: var(--yellow);
  transition: height 0.4s ease;
}

.solution-card:hover::before {
  height: 100%;
}

.solution-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.solution-card:hover {
  border-color: var(--gray-600);
  background-color: var(--gray-900);
}

.solution-icon {
  margin-bottom: 20px;
  color: var(--white);
}

.solution-icon svg {
  width: 36px;
  height: 36px;
}

.solution-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.solution-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solution-problem {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.solution-answer {
  font-size: 0.9rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.solution-answer strong {
  color: var(--yellow);
}

/* ========================================
   CTA
   ======================================== */

.section-cta {
  position: relative;
  overflow: hidden;
  background: url('assets/cta-bg.jpg') 75% center / cover no-repeat;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.55) 38%, rgba(10, 10, 10, 0.25) 62%, rgba(10, 10, 10, 0.1) 100%);
  pointer-events: none;
}

.cta-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 40px;
  max-width: 500px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

/* Contact form */

.contact-form {
  width: 100%;
  max-width: 640px;
  text-align: left;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition);
  width: 100%;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 222, 89, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: rgba(255, 222, 89, 0.55);
  background: rgba(255, 222, 89, 0.08);
}

.form-feedback {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-feedback.success {
  color: var(--yellow);
}

.form-feedback.error {
  color: #f87171;
}

.contact-form.is-loading .btn {
  opacity: 0.7;
  pointer-events: none;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--gray-800);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .nav-content {
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-800);
  }

  .nav-links {
    min-height: 0;
    padding-bottom: 0;
    align-items: flex-start;
    gap: 20px;
  }

  .nav-links.active a:not(.nav-cta) {
    font-size: 1rem;
    color: var(--white);
  }

  .nav-links.active .nav-cta {
    font-size: 1rem;
    color: var(--white);
  }

  .hero {
    padding-top: 100px;
  }

  .why-stats {
    flex-direction: column;
    gap: 40px;
  }

  .service-card {
    padding: 36px 24px;
  }

  .solution-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 16px 36px;
    font-size: 0.9rem;
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

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

  .contact-form-actions .btn-lg {
    width: 100%;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

[data-animate] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
