@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Zain:wght@700&display=swap');

:root {
  /* Colors */
  --color-accent: #238563;
  --color-background: #EBEAE6;
  --color-border: #C7C5BF;

  /* Text Colors */
  --color-text-primary: #1F332C;
  --color-text-secondary: #52665F;
  --color-text-tertiary: #6E8A81;
  --color-text-accent: #1F7558;

  /* Fonts */
  --font-body: 'Inter', sans-serif;
  --font-display: 'Zain', sans-serif;
  --font-weight-body: 450;
  --font-weight-display: 700;
}

html {
  height: 100%;
  overscroll-behavior: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: 15px;
  line-height: 22px;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('noise.png');
  background-repeat: repeat;
  background-size: 1071px 1516px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  transform: rotate(180deg);
}

/* Shared Button Elements */
.btn-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
}

.btn-label {
  position: relative;
}

/* Primary Button */
.btn-primary {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 152px;
  height: 48px;
  padding: 6px 24px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  font-style: normal;
  line-height: normal;
  white-space: nowrap;
  color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%), var(--color-accent);
  box-shadow:
    0px 2px 2px -1px rgba(0, 0, 0, 0.15),
    0px 1px 1px -0.5px rgba(0, 0, 0, 0.15),
    0px 0px 0px 1px var(--color-accent),
    0px 1px 0px 1px white;
  text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  overflow: hidden;
  transition: filter 0.08s ease, transform 0.06s ease, box-shadow 0.08s ease;
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow:
    0px 3px 4px -1px rgba(0, 0, 0, 0.2),
    0px 2px 2px -1px rgba(0, 0, 0, 0.15),
    0px 0px 0px 1px var(--color-accent);
}

.btn-primary:active {
  filter: brightness(1);
  transform: translateY(1px);
  box-shadow:
    0px 1px 1px -1px rgba(0, 0, 0, 0.15),
    0px 0px 0px 1px var(--color-accent),
    0px 1px 0px 1px white;
}

.btn-primary .btn-highlight {
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0px 0px 4px 0px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.btn-primary .btn-icon {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  filter: drop-shadow(0px 1px 0px rgba(0, 0, 0, 0.25));
}

/* Secondary Button */
.btn-secondary {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 152px;
  height: 48px;
  padding: 6px 24px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  font-style: normal;
  line-height: normal;
  white-space: nowrap;
  color: var(--color-text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%), var(--color-background);
  box-shadow:
    0px 2px 2px -1px rgba(0, 0, 0, 0.06),
    0px 1px 1px -0.5px rgba(0, 0, 0, 0.06),
    0px 0px 0px 1px rgba(31, 51, 44, 0.16);
  text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  overflow: hidden;
  transition: filter 0.08s ease, transform 0.06s ease, box-shadow 0.08s ease;
}

.btn-secondary:hover {
  filter: brightness(1.03);
  box-shadow:
    0px 3px 4px -1px rgba(0, 0, 0, 0.08),
    0px 2px 2px -1px rgba(0, 0, 0, 0.04),
    0px 0px 0px 1px rgba(31, 51, 44, 0.16);
}

.btn-secondary:active {
  filter: brightness(1);
  transform: translateY(1px);
  box-shadow:
    0px 1px 1px -1px rgba(0, 0, 0, 0.06),
    0px 0px 0px 1px rgba(31, 51, 44, 0.16);
}

.btn-secondary .btn-highlight {
  background: rgba(255, 255, 255, 0.2);
}

.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0px 0px 4px 0px white;
  pointer-events: none;
}

.btn-secondary .btn-icon {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  filter: drop-shadow(0px 1px 0px rgba(255, 255, 255, 0.5));
}

/* Link */
a.link,
a.link:visited {
  position: relative;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  font-style: normal;
  line-height: 22px;
  white-space: nowrap;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-feature-settings: 'zero';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

a.link:hover {
  color: var(--color-text-primary);
}

a.link:hover::after {
  background: var(--color-text-primary);
}

a.link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: radial-gradient(circle, var(--color-text-secondary) 0.5px, transparent 0.5px) 0 0 / 4px 1px repeat-x;
}

/* Grid Lines */
.grid-lines {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 704px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.grid-line-top {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 704px;
  height: 0.5px;
  background: repeating-linear-gradient(to right, var(--color-border) 0, var(--color-border) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
  z-index: 2;
}

.grid-line-bottom {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 704px;
  height: 0.5px;
  background: repeating-linear-gradient(to right, var(--color-border) 0, var(--color-border) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
  z-index: 2;
}

/* Navigation */
.nav {
  position: relative;
  z-index: 3;
  padding-top: 32px;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 704px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 24px;
  box-sizing: border-box;
}

.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.logo {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  width: 704px;
  margin: 0 auto;
  padding-left: 16px;
  padding-top: 120px;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: 36px;
  letter-spacing: -0.01em;
  line-height: normal;
  color: var(--color-text-primary);
  font-feature-settings: 'zero';
  margin: 0;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-feature-settings: 'zero';
}

.hero-body p {
  margin: 0;
}

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

.hero-content::after {
  content: '';
  display: block;
  margin-top: -16px;
  margin-left: -16px;
  width: 704px;
  height: 0.5px;
  background: repeating-linear-gradient(to right, var(--color-border) 0, var(--color-border) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
  z-index: 2;
  flex-shrink: 0;
}

.hero-photo {
  position: absolute;
  z-index: 1;
  bottom: 40px;
  right: 0;
  width: 352px;
  height: 352px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0);
}

/* Footer */
.footer {
  position: relative;
  margin-top: auto;
  width: 704px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-bottom: 38px;
  box-sizing: border-box;
  z-index: 3;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.visitor-count {
  display: none;
  align-items: center;
  gap: 4px;
  padding-right: 24px;
  opacity: 0.6;
}

.visitor-count-number {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: 15px;
  line-height: 22px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  font-feature-settings: 'zero';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visitor-count-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Mobile */
@media (max-width: 704px) {
  .grid-lines {
    left: 16px;
    width: calc(100% - 32px);
    transform: none;
  }

  .grid-line-top {
    left: 16px;
    width: calc(100% - 32px);
    transform: none;
  }

  .grid-line-bottom {
    left: 16px;
    width: calc(100% - 32px);
    transform: none;
  }

  .hero-content::after {
    margin-left: -16px;
    width: calc(100% + 32px);
  }

  .nav-inner {
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero {
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-photo {
    display: none;
  }

  .grid-line-center {
    display: none;
  }

  .footer {
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
  }

  .visitor-count {
    padding-right: 0;
  }
}
