/* ============================================================
   BACKSLOPE SOLUTIONS
   styles.css
============================================================ */

:root {
  --teal-50:  #f0fdf9;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --emerald-500: #10b981;
  --emerald-600: #059669;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   LAYOUT
============================================================ */

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

/* ============================================================
   SHARED SECTION STYLES
============================================================ */

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}
.section-label--light { color: var(--teal-300); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-subtitle { margin: 0 auto; }

/* ============================================================
   BUTTONS
============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal-600);
  color: var(--white);
  border-color: var(--teal-600);
}
.btn--primary:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.38);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* ============================================================
   NAVIGATION
============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--gray-200), 0 4px 24px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
}
.nav.scrolled .nav__logo         { color: var(--gray-900); }
.nav.scrolled .nav__logo-mark    { color: var(--teal-600); }
.nav.scrolled .nav__link         { color: var(--gray-600); }
.nav.scrolled .nav__link:hover   { color: var(--gray-900); background: var(--gray-100); }
.nav.scrolled .nav__link--cta {
  background: var(--teal-600);
  color: var(--white);
  border-color: var(--teal-600);
}
.nav.scrolled .nav__link--cta:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--white);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.nav__logo-img {
  height: 84px;
  width: auto;
  display: block;
  transition: opacity 0.25s var(--ease);
}
.nav__logo-img--on-light { display: none; }

.nav.scrolled .nav__logo-img--on-dark  { display: none; }
.nav.scrolled .nav__logo-img--on-light { display: block; }

.footer__logo img {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

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

.nav__link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease);
  border: 1.5px solid transparent;
}
.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav__link--cta {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  margin-left: 8px;
}
.nav__link--cta:hover {
  background: var(--white);
  color: var(--teal-800);
  border-color: var(--white);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.25s var(--ease);
}
.nav.scrolled .nav__toggle span { background: var(--gray-700); }

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(140deg, #091f1e 0%, #134e4a 50%, #0f6460 100%);
  overflow: hidden;
  padding: 120px 0 100px;
}

/* Decorative background circles */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__circle {
  position: absolute;
  border-radius: 50%;
}
.hero__circle--1 {
  width: 760px;
  height: 760px;
  top: -240px;
  right: -120px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14) 0%, transparent 70%);
}
.hero__circle--2 {
  width: 540px;
  height: 540px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
}
.hero__circle--3 {
  width: 340px;
  height: 340px;
  top: 55%;
  left: 58%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.07) 0%, transparent 70%);
}

.hero__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(3rem, 7.5vw, 5.25rem);
  font-weight: 900;
  line-height: 1.04;
  color: var(--white);
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero__title--accent { color: var(--teal-400); }

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.68);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 44px;
}

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

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2.2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ============================================================
   ABOUT
============================================================ */

.about {
  padding: 120px 0;
  background: var(--white);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.pillar {
  padding: 40px 36px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.pillar:hover {
  border-color: var(--teal-200);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.09);
  transform: translateY(-3px);
}

.pillar__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal-600);
}
.pillar__icon svg { width: 24px; height: 24px; }

.pillar__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.pillar__body {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================================
   PRODUCTS
============================================================ */

.products {
  padding: 120px 0;
  background: var(--teal-50);
  border-top: 1px solid var(--teal-100);
  border-bottom: 1px solid var(--teal-100);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.product-card:hover {
  box-shadow: 0 16px 52px rgba(13, 148, 136, 0.13);
  transform: translateY(-4px);
  border-color: var(--teal-200);
}

.product-card--featured {
  border-color: var(--teal-200);
  background: linear-gradient(160deg, var(--white) 75%, var(--teal-50) 100%);
}

.product-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.product-card__icon--muted {
  background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
  color: var(--gray-500);
}
.product-card__icon svg { width: 28px; height: 28px; }

.product-card__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Badges */
.badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge--live {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-600);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.badge--dev {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge--soon {
  background: var(--gray-100);
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}

.product-card__name {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.product-card__desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 20px;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  padding: 4px 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--teal-100);
}
.tag--muted {
  background: var(--gray-100);
  color: var(--gray-500);
  border-color: var(--gray-200);
}

.product-card__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal-600);
  transition: color 0.2s var(--ease);
}
.product-card__link:hover {
  color: var(--teal-800);
  text-decoration: underline;
}

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

.services {
  padding: 120px 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.service-card:hover {
  border-color: var(--teal-300);
  background: var(--teal-50);
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.09);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  margin-bottom: 16px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: var(--white);
}
.service-card__icon svg { width: 22px; height: 22px; }

.service-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================================
   CONTACT
============================================================ */

.contact {
  padding: 120px 0;
  background: linear-gradient(140deg, var(--teal-900) 0%, #091f1e 100%);
}

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

.contact__title {
  font-size: clamp(1.875rem, 3.5vw, 2.625rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.contact__body {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease);
}
.contact__detail:hover { color: var(--white); }
.contact__detail svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--teal-400);
}

/* Form */
.contact__form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 0.9375rem;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-900);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: none;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

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

.footer {
  background: var(--gray-900);
  padding: 80px 0 36px;
  color: var(--gray-400);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer__logo {
  display: inline-block;
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 18px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}
.footer__links a:hover { color: var(--teal-400); }

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 32px;
  font-size: 0.875rem;
}

/* ============================================================
   SCROLL FADE-IN ANIMATION
============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — 1024px
============================================================ */

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — 768px
============================================================ */

@media (max-width: 768px) {
  /* Nav mobile */
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--teal-900);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links.open { display: flex; }

  .nav.scrolled .nav__links { background: var(--white); border-top-color: var(--gray-200); }
  .nav.scrolled .nav__link  { color: var(--gray-700); }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
  }

  /* Sections */
  .about, .products, .services, .contact { padding: 80px 0; }
  .section-header { margin-bottom: 44px; }

  /* Products stacks to 1 column on mobile */
  .products__grid { grid-template-columns: 1fr; }

  /* Form row stacks */
  .form-row { grid-template-columns: 1fr; }
  .contact__form-wrapper { padding: 28px 20px; }
}

/* ============================================================
   RESPONSIVE — 480px
============================================================ */

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn { width: 100%; }

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