/*
 * Marketing site — aligned with SkinTracker app (frontend/src/style.css, default theme).
 *
 * OLD SITE PALETTE (kept here for reference):
 * - Page bg: #333; gradient #000 → #333 on #root
 * - Body text: white; font: ui-monospace / Cascadia Code stack
 * - Header bar: #010d25, text #cfcfcf, center #ffffff, shadow rgba(75,120,255,0.215)
 * - Footer: bg #0f1b33, accent text #b45d24
 * - Inputs (.ipt): bg #14121d, border #23222b; hover rgb(28,29,52); focus rgb(51,47,70)
 * - Buttons (.btn): bg #14121d, text #947853; hover bg #ff9911, border #fdce92, text #06021b
 * - Form fields: border #ccc; submit #04AA6D; submit hover #45a049
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700&family=Stratum+2&display=swap");

/* Same tokens as app :root default theme */
:root {
  --bg-primary: #0f1317;
  --bg-secondary: #11111a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --bg-header: #13131e;
  --bg-input: #13131e;
  --text-primary: #dadae7;
  --text-secondary: #9aa3b8;
  --text-muted: #888;
  --border-primary: #2e2e1e;
  --color-positive: #a6e3a1;
  --color-accent: #c9943a;
  --text-on-accent: #fff;
}

html {
  margin: 0;
  text-align: left;
  background-color: var(--bg-primary);
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-family:
    "Inter",
    "Noto Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Roboto",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0;
  animation: siteFadeIn 0.5s ease 0.1s forwards;
}

@keyframes siteFadeIn {
  to {
    opacity: 1;
  }
}

/* OLD: #root had linear-gradient(#000, #333) — app uses flat --bg-primary */
#root {
  background-color: var(--bg-primary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ----- Top navigation (was .Header: #010d25, #cfcfcf) ----- */
.site-header {
  text-align: center;
  padding: 12px 16px;
  background-color: var(--bg-header);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.site-header .left-content {
  width: 15%;
  text-align: left;
}

.site-header .left-content h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Stratum 2", "Noto Sans", sans-serif;
  color: var(--text-primary);
}

.site-header .right-content {
  width: 75%;
  margin-left: auto;
  text-align: right;
}

@media screen and (max-width: 600px) {
  .site-header .left-content,
  .site-header .right-content {
    width: 100%;
    text-align: center;
  }
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.navbar a {
  text-decoration: none;
}

/* App-like nav buttons (OLD .btn: #14121d / #947853 / orange hover) */
.btn {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 650;
  font-family: "Stratum 2", "Noto Sans", sans-serif;
  border-radius: 4px;
  border: 1px solid var(--border-primary);
  cursor: pointer;
  background-color: transparent;
  color: var(--text-primary);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* background */
.bg {
  background-image: url("assets/images/sample.png");
  background-blend-mode: difference;
  background-size: cover;
}
/* ----- Main content ----- */
.content {
  flex: 1;
  padding: 24px 20px 40px;
  max-width: 850px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  background-color: rgba(21, 21, 30, 0.8);
}

.content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: "Stratum 2", "Noto Sans", sans-serif;
  color: var(--text-primary);
  margin-top: 0;
}

.content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

.content p {
  color: var(--text-primary);
  margin: 0.75rem 0;
}

/* Sign-up page section title (was conflicting .header) */
.form-page-title {
  text-align: center;
  margin-bottom: 1rem;
}

.form-page-title h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.35rem;
}

/* ----- Footer (OLD: #0f1b33 / #b45d24) ----- */
.footer {
  background-color: var(--bg-header);
  color: var(--text-secondary);
  text-align: center;
  padding: 20px 16px;
  margin-top: auto;
  border-top: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  gap: 16px;
}

.footer .left-content,
.footer .right-content {
  flex: 1;
  text-align: center;
}

.footer .center-image {
  width: 10%;
  min-width: 48px;
  margin: 0 auto;
  text-align: center;
}

.bottom-content {
  font-size: 12px;
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  margin-top: 12px;
}

@media screen and (max-width: 600px) {
  .footer .container {
    flex-direction: column;
  }
  .footer .center-image {
    display: none;
  }
}

/* ----- Forms (OLD: #ccc inputs, green #04AA6D submit) ----- */
.input-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ipt {
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid var(--border-primary);
  height: 48px;
  line-height: 1.25;
  padding: 0 14px;
  background-color: var(--bg-input);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
}

.ipt:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.ipt:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(201, 148, 58, 0.35);
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
}

#Contact label {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  box-sizing: border-box;
  margin: 6px 0 14px;
  resize: vertical;
  background-color: var(--bg-input);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

input[type="submit"] {
  background-color: var(--color-accent);
  color: var(--text-on-accent);
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  font-family: "Stratum 2", "Noto Sans", sans-serif;
  margin-top: 8px;
  transition: filter 0.15s ease;
}

input[type="submit"]:hover {
  filter: brightness(1.08);
}

input[type="submit"]:active {
  filter: brightness(0.92);
}

.contact-margin {
  margin-bottom: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* App screenshot styling */
.homepage-screenshot,
.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-primary);
  transition: transform 0.3s ease;
}

.homepage-screenshot:hover,
.app-screenshot:hover {
  transform: scale(1.5);
}
/* Demo link styling */
.demo-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--color-accent);
  color: var(--text-on-accent);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-family: "Stratum 2", "Noto Sans", sans-serif;
  transition: background-color 0.2s ease;
}

.demo-link:hover {
  background-color: #b07d2e;
}
/* Homepage screenshot styling */
.homepage-screenshot {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-primary);
}
