/* ================================================
   Desata Corporate Website
   Design system matching loanlimit.app
   ================================================ */

/* ---- Reset & Base ---- */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0f1117;
  color: #e8eaf0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Subtle grid overlay */
  background-image:
    linear-gradient(rgba(99, 179, 160, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 179, 160, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

main {
  flex: 1;
}

a {
  color: #63b3a0;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ---- Navigation ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #9aa0b4;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  letter-spacing: 0.01em;
}
.nav-link:hover,
.nav-link.active {
  color: #e8eaf0;
  text-decoration: none;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f1117;
  background-color: #63b3a0;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.nav-cta:hover {
  background-color: #7ecaba;
  text-decoration: none;
}

/* ---- Homepage ---- */

.homepage {
  max-width: 1080px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero-logo {
  max-width: 240px;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  color: #9aa0b4;
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

/* Product cards grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: #181c26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  border-color: rgba(99, 179, 160, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
}

.product-card h3 {
  color: #63b3a0;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.product-card p {
  color: #9aa0b4;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-link {
  color: #63b3a0;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---- Product Pages ---- */

.product-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.product-hero {
  margin-bottom: 3rem;
}

.product-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1rem;
}

.product-subtitle {
  color: #9aa0b4;
  font-size: 1.1rem;
  line-height: 1.65;
}

.product-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #e8eaf0;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.product-content p {
  color: #c0c4d0;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.product-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.product-content ul li {
  color: #c0c4d0;
  font-size: 1rem;
  line-height: 1.75;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.product-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #63b3a0;
}

.product-content a {
  color: #63b3a0;
  font-weight: 600;
  text-decoration: none;
}
.product-content a:hover {
  text-decoration: underline;
}

.product-content strong a {
  font-size: 1.05rem;
}

.product-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0;
}

/* ---- Formspree Form ---- */

.formspree-form {
  max-width: 520px;
  margin: 3rem auto;
  padding: 2.5rem;
  background-color: #181c26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.formspree-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e8eaf0;
  margin-bottom: 1.5rem;
}

.formspree-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: #9aa0b4;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.formspree-form input,
.formspree-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background-color: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e8eaf0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.formspree-form input:focus,
.formspree-form textarea:focus {
  outline: none;
  border-color: #63b3a0;
}

.formspree-form button {
  background-color: #63b3a0;
  color: #0f1117;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
  margin-top: 0.5rem;
}
.formspree-form button:hover {
  background-color: #7ecaba;
}
.formspree-form button:active {
  transform: scale(0.99);
}

/* ---- Regulatory Banner ---- */

.regulatory-banner {
  background-color: #181c26;
  border-left: 3px solid #63b3a0;
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.88rem;
  color: #9aa0b4;
  line-height: 1.65;
}

/* ---- Cross-Links ---- */

.cross-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cross-links a {
  color: #63b3a0;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.cross-links a:hover {
  text-decoration: underline;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-links {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9aa0b4;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: #63b3a0;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.15);
  margin: 0 0.75rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
}

/* ---- Responsive ---- */

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

  .homepage {
    padding: 4rem 1.5rem 3rem;
  }

  .product-page {
    padding: 3rem 1.5rem 4rem;
  }

  .product-hero h1 {
    font-size: 1.75rem;
  }

  .nav-links {
    display: none;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  .formspree-form {
    padding: 2rem 1.5rem;
  }
}
