/* ========================================
   ASBILY CONTROLLER
   Main Stylesheet
======================================== */

:root {
  --white: #ffffff;
  --black: #090909;
  --dark: #050505;
  --gray: #f6f6f6;
  --border: #e9e9e9;
  --muted: #777777;
  --header-bg: rgba(255, 255, 255, 0.94);

  --container: 1180px;
  --radius: 14px;
  --transition: 0.25s ease;
}

/* Reset */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

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

/* Container */

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand strong {
  font-weight: 400;
  color: var(--muted);
}

.navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navigation a {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  transition: color var(--transition);
}

.navigation a:hover {
  color: var(--black);
}

/* Mobile Menu Button */

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* Hero */

.hero {
  padding: 115px 0 120px;
  background:
    radial-gradient(
      circle at 85% 15%,
      #ededed 0,
      transparent 30%
    ),
    var(--white);
}

.hero-content {
  max-width: 800px;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: -4px;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: #777;
}

.hero-content > p {
  max-width: 570px;
  margin-top: 25px;
  color: #666;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

/* Buttons */

.btn {
  min-height: 48px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.btn-primary:hover {
  background: #333;
}

.btn-secondary {
  background: var(--white);
  color: var(--black);
  border: 1px solid #dedede;
}

.btn-secondary:hover {
  background: var(--gray);
}

/* Sections */

.section {
  padding: 95px 0;
}

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

.section-heading {
  max-width: 620px;
  margin-bottom: 42px;
}

.section-heading h2,
.about-content h2 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -1.8px;
}

.section-heading p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

/* Overview Cards */

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

.overview-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition),
              border-color var(--transition);
}

.overview-card:hover {
  transform: translateY(-4px);
  border-color: #bdbdbd;
}

.card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.overview-card h3 {
  margin-top: 18px;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.overview-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* Service Cards */

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

.service-card {
  min-height: 215px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition),
              box-shadow var(--transition),
              border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #c5c5c5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.service-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--gray);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.service-card h3 {
  margin-top: 20px;
  font-size: 19px;
  letter-spacing: -0.5px;
}

.service-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.service-link {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* About */

.about-content {
  max-width: 760px;
}

.about-content h2 span {
  display: block;
  color: #777;
}

.about-content p {
  max-width: 600px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.text-link {
  display: inline-block;
  margin-top: 25px;
  font-size: 13px;
  font-weight: 700;
}

/* Footer */

.footer {
  padding: 45px 0;
  background: var(--dark);
  color: var(--white);
}

.footer-content > div:first-child strong {
  font-size: 18px;
}

.footer-content > div:first-child p {
  margin-top: 5px;
  color: #aaa;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 25px;
}

.footer-links a {
  color: #ccc;
  font-size: 12px;
  transition: color var(--transition);
}

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

.copyright {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #292929;
  color: #999;
  font-size: 11px;
}

/* Responsive */

@media (max-width: 850px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 90px 0;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-content {
    min-height: 66px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .menu-toggle {
    display: flex;
  }

  .navigation {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    padding: 20px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }

  .navigation.active {
    display: flex;
  }

  .navigation a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
  }

  .navigation a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding: 75px 0 85px;
  }

  .hero h1 {
    font-size: 43px;
    letter-spacing: -2.5px;
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 70px 0;
  }

  .overview-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    padding: 23px;
  }

  .service-card {
    min-height: 195px;
  }

  .footer-links {
    gap: 16px;
  }
}

/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
