:root {
  --primary-blue: #3b82f6;
  --primary-blue-dark: #2563eb;
  --gray-800: #1f2937;
  --neutral-400: #9ca3af;
  --neutral-900: #111827;

  /* Dark mode variables */
  --bg-dark: #111827;
  --text-dark: #ffffff;
  --border-dark: #374151;
}

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

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  color: var(--neutral-900);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.switch-theme-btn {
  display: flex;
  justify-content: flex-end;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-grid {
  max-width: 1440px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
}

.content-col {
  display: flex;
  flex-direction: column;
}

.content-col h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  transition: color 0.1s ease;
}

.content-col p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--gray-800);
  transition: color 0.1s ease;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.input-wrapper {
  width: 100%;
}

input[type='text'] {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 0.5px solid var(--neutral-400);
  color: var(--neutral-400);
}

input[type='text']::placeholder {
  color: var(--neutral-400);
}

.demo-button {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  color: #ffffff;
  cursor: pointer;
  background-color: var(--primary-blue);
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.demo-button:hover {
  background-color: var(--primary-blue-dark);
}

.brands-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trusted-by {
  font-size: 1.125rem;
  transition: color 0.1s ease;
  color: var(--gray-800);
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
}

.brand-logo {
  width: 6rem;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 1;
}

.image-col {
  margin-top: 25px;
  display: flex;
  align-items: start;
  justify-content: center;
}

.hero-image {
  border-radius: 1rem;
  width: 100%;
}

.dark-mode-toggle {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background-color: var(--primary-blue);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
  z-index: 1;
}

.dark-mode-toggle:hover {
  background-color: var(--primary-blue-dark);
}

/* Responsive Design */

@media (min-width: 640px) {
  .hero-grid {
    padding: 3rem;
  }

  .switch-theme-btn {
    padding: 1.5rem 3rem;
  }

  .content-col h1 {
    font-size: 3.5rem;
  }

  .cta-group {
    flex-direction: row;
    align-items: stretch;
  }

  .input-wrapper {
    width: auto;
    flex-grow: 1;
  }
}

@media (min-width: 768px) {
  .content-col h1 {
    font-size: 4rem;
  }

  .content-col p {
    font-size: 1.5rem;
  }

  .brand-logo {
    width: 6.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    padding: 4rem;
  }

  .switch-theme-btn {
    padding: 2rem 4rem;
  }

  .brand-logo {
    width: 7rem;
  }

  .content-col h1 {
    font-size: 4.5rem;
  }

  input[type='text'] {
    font-size: 1.125rem;
  }

  .demo-button {
    font-size: 1.125rem;
  }

  .switch-theme-btn {
    font-size: 1.125rem;
  }

  .image-col {
    margin-top: 0;
  }
}

@media (min-width: 1280px) {
  .hero-grid {
    gap: 4rem;
    padding: 5rem 7rem;
  }

  .switch-theme-btn {
    padding: 3rem 7rem;
  }

  .content-col h1 {
    font-size: 5rem;
  }

  .brand-logo {
    width: 8rem;
  }
}

/* Dark-Mode */

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

body.dark .content-col h1,
body.dark .content-col p,
body.dark .trusted-by {
  color: var(--text-dark);
}

input[type='text'].dark {
  border-color: var(--border-dark);
  color: var(--text-dark);
}
