/*
 * MintyDash landing page — static port of app/landing/page.tsx.
 * Colors mirror the "default" (dark) theme from the app's globals.css :root block.
 */

:root {
  --background: #21222f;
  --foreground: #effcfe;
  --muted-foreground: #ffffff;
  --border: #40485d;
  --primary: #467b80;
  --primary-foreground: #ffffff;
  --accent: #2e3a4d;
  --logo-color: #70b5ae;
  --card-bg: var(--background);

  --font-sans: system-ui, -apple-system, sans-serif;
}

/* ---------- reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

svg {
  display: block;
  flex-shrink: 0;
}

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

h1,
h2,
h3 {
  font-size: inherit;
  font-weight: inherit;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom-width: 1px;
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--logo-color);
}

a.logo:hover {
  opacity: 0.8;
}

.logo-name {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.link-muted {
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 500;
  color: var(--muted-foreground);
}

.link-muted:hover {
  color: var(--foreground);
}

.btn-primary-sm {
  border-radius: 0.5rem;
  background: var(--primary);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 500;
  color: var(--primary-foreground);
}

.btn-primary-sm:hover {
  background: color-mix(in srgb, var(--primary) 90%, transparent);
}

/* ---------- hero ---------- */

.hero {
  padding: 6rem 1rem;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.1111;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.accent-text {
  color: var(--primary);
}

.hero-lede {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  line-height: 1.5556;
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn-primary,
.btn-outline {
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, transparent);
}

.btn-outline {
  border-width: 1px;
}

.btn-outline:hover {
  background: var(--accent);
}

/* ---------- features ---------- */

.features {
  border-top-width: 1px;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 6rem 1rem;
}

.features-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-title {
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  color: var(--foreground);
}

.section-lede {
  max-width: 42rem;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--muted-foreground);
}

.feature-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  border-width: 1px;
  border-radius: 0.75rem;
  background: var(--card-bg);
  padding: 1.5rem;
}

.feature-icon {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1.3333;
}

.feature-title {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.5556;
  font-weight: 600;
  color: var(--foreground);
}

.feature-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}

/* ---------- closing ---------- */

.cta {
  padding: 6rem 1rem;
}

.cta-card {
  max-width: 48rem;
  margin: 0 auto;
  border-width: 1px;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--accent) 50%, transparent);
  padding: 3rem;
  text-align: center;
}

.cta-title {
  font-size: 1.5rem;
  line-height: 1.3333;
  font-weight: 700;
  color: var(--foreground);
}

.cta-text {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  border-radius: 0.5rem;
  background: var(--primary);
  padding: 0.75rem 2rem;
  font-weight: 500;
  color: var(--primary-foreground);
}

.cta-button:hover {
  background: color-mix(in srgb, var(--primary) 90%, transparent);
}

/* ---------- login ---------- */

.login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4rem - 5.5rem);
  padding: 4rem 1rem;
}

.login-inner {
  width: 100%;
  max-width: 24rem;
}

.login-head {
  margin-bottom: 2rem;
  text-align: center;
}

.login-title {
  font-size: 1.5rem;
  line-height: 1.3333;
  font-weight: 700;
  color: var(--foreground);
}

.login-lede {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

.login-alt {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3333;
  color: color-mix(in srgb, var(--muted-foreground) 70%, transparent);
}

.login-link {
  color: var(--primary);
}

.login-link:hover {
  text-decoration: underline;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 500;
  color: var(--foreground);
}

.form-input {
  border-width: 1px;
  border-radius: 0.5rem;
  background: var(--background);
  padding: 0.625rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

.form-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}

.form-submit {
  width: 100%;
  padding: 0.625rem 1rem;
  cursor: pointer;
  transition: background-color 0.15s;
}

/* ---------- footer ---------- */

.site-footer {
  border-top-width: 1px;
  padding: 2rem 1rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.footer-name {
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
}

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

/* ---------- responsive ---------- */

@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    flex-direction: row;
  }

  .hero-actions {
    flex-direction: row;
  }

  .btn-primary,
  .btn-outline {
    width: auto;
  }
}

@media (min-width: 48rem) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .hero-title {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 64rem) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-title {
    font-size: 3.75rem;
    line-height: 1;
  }
}
