/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --bg: #f6f2ea;
  --bg-elev: #ffffff;
  --text: #151515;
  --muted: #5b5b5b;
  --accent: #1f6feb;
  --accent-strong: #0f4bcb;
  --stroke: #e3ddd2;
  --shadow: 0 18px 50px rgba(14, 18, 27, 0.12);
  color-scheme: light;
}

.theme-dark {
  --bg: #0f1218;
  --bg-elev: #171b24;
  --text: #f5f5f5;
  --muted: #a5b0c2;
  --accent: #6db1ff;
  --accent-strong: #3a7de8;
  --stroke: #2a3140;
  --shadow: 0 20px 60px rgba(4, 8, 15, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.page {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 12% 15%, rgba(31, 111, 235, 0.16), transparent 45%),
    radial-gradient(circle at 82% 20%, rgba(235, 173, 31, 0.18), transparent 40%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%23d8d2c6' stroke-width='1'><circle cx='40' cy='40' r='22'/><circle cx='200' cy='80' r='30'/><circle cx='120' cy='200' r='26'/></g></svg>");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: 480px 480px, 520px 520px, cover, 240px 240px;
  background-position: left -120px top -80px, right -140px top -120px, center, center;
}

.theme-dark .page {
  background-image:
    radial-gradient(circle at 12% 15%, rgba(109, 177, 255, 0.25), transparent 45%),
    radial-gradient(circle at 82% 20%, rgba(255, 188, 107, 0.2), transparent 40%),
    linear-gradient(140deg, rgba(20, 26, 35, 0.7), rgba(15, 18, 24, 0)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%23323a47' stroke-width='1'><circle cx='40' cy='40' r='22'/><circle cx='200' cy='80' r='30'/><circle cx='120' cy='200' r='26'/></g></svg>");
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 22px rgba(31, 111, 235, 0.35);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.logo-badge::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.logo-badge::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(0.5px);
}

.logo-icon {
  width: 22px;
  height: 22px;
  position: relative;
  z-index: 1;
}

.logo-text {
  font-size: 1.35rem;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.logo-amp {
  font-size: 0.9em;
  color: var(--accent);
  margin: 0 2px;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  border-color: var(--accent);
  color: var(--text);
}

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

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--bg-elev);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(20, 28, 48, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.icon-sun,
.icon-moon {
  display: none;
}

.theme-dark .icon-sun {
  display: block;
}

.theme-light .icon-moon {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.headline {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 14px 0 16px;
}

.subhead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 26px;
}

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

.stats {
  display: grid;
  gap: 16px;
}

.stat {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.6);
}

.theme-dark .stat {
  background: rgba(23, 27, 36, 0.6);
}

.stat h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .shell {
    gap: 48px;
    padding: 24px 18px 64px;
  }

  .actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-card {
    padding: 22px;
  }

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

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .stats {
    gap: 12px;
  }

  .stat {
    padding: 16px 18px;
  }
}

@media (max-width: 520px) {
  .actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .actions .btn {
    flex: 1 1 140px;
    text-align: center;
  }

  .actions .theme-toggle {
    flex: 0 0 44px;
  }
}
