:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --cream: #f1e4d0;
  --paper: #fff8ec;
  --paper-strong: rgba(255, 249, 238, .9);
  --paper-soft: rgba(255, 248, 236, .72);
  --ink: #211812;
  --muted: #75675d;
  --copper: #a65e2d;
  --copper-dark: #713713;
  --copper-soft: #d4a06f;
  --wood: #3a2418;
  --line: rgba(126, 78, 43, .22);
  --line-strong: rgba(126, 78, 43, .34);
  --shadow: 0 24px 70px rgba(48, 27, 14, .26);
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-sans);
}

.hidden {
  display: none !important;
}

a {
  color: inherit;
}

button,
.button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: #fffdf8;
  color: var(--ink);
  outline-color: var(--copper);
}

textarea {
  resize: vertical;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: inherit;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.02;
}

.eyebrow {
  margin: 0;
  color: var(--copper-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mark,
.brand-mark,
.logo-large,
.feature-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-weight: 700;
}

/* Login */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(43, 26, 15, .36), rgba(245, 233, 214, .55) 23%, rgba(245, 233, 214, .55) 77%, rgba(43, 26, 15, .28)),
    url("assets/atelier-nova-background.png") center / cover no-repeat;
}

.login-card {
  width: min(440px, 100%);
  padding: 34px;
  text-align: center;
  background: var(--paper-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.mark {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--wood), var(--copper));
  font-size: 31px;
}

.login-card h1 {
  margin-top: 8px;
  font-size: 44px;
}

.login-intro {
  margin: 10px 0 22px;
  color: var(--muted);
}

.login-card label {
  display: block;
  margin: 18px 0 8px;
  text-align: left;
  font-weight: 800;
}

.login-card button,
.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--copper), var(--copper-dark));
  box-shadow: 0 14px 28px rgba(113, 55, 19, .24);
}

.login-card button {
  width: 100%;
  margin-top: 18px;
}

.error {
  min-height: 21px;
  margin: 12px 0 0;
  color: #9a1f17;
  font-weight: 800;
}

.login-card small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.5;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: rgba(246, 235, 218, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--wood), var(--copper));
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: #645345;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.ghost,
.secondary {
  color: var(--ink);
  background: rgba(255, 250, 242, .82);
  border: 1px solid var(--line);
}

.ghost {
  min-height: 40px;
  padding: 9px 18px;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(42px, 6vh, 74px) clamp(22px, 10vw, 150px) clamp(54px, 8vh, 96px);
  background:
    radial-gradient(ellipse at center, rgba(255, 248, 235, .58) 0%, rgba(255, 248, 235, .54) 34%, rgba(255, 248, 235, .16) 61%, rgba(33, 21, 13, .18) 100%),
    linear-gradient(90deg, rgba(31, 20, 13, .42) 0%, rgba(241, 228, 208, .11) 18%, rgba(241, 228, 208, .22) 50%, rgba(241, 228, 208, .11) 82%, rgba(31, 20, 13, .34) 100%),
    url("assets/atelier-nova-background.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 250, 241, .03), rgba(51, 30, 15, .18)),
    linear-gradient(90deg, rgba(28, 18, 11, .22), transparent 22%, transparent 78%, rgba(28, 18, 11, .18));
}

.hero-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  padding: clamp(34px, 4.6vw, 62px);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, .91), rgba(255, 247, 232, .82)),
    linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(166, 94, 45, .12));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.status-pill {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin: 0 auto 18px;
  padding: 7px 14px;
  color: #f4dcc2;
  background: var(--wood);
  border: 1px solid rgba(212, 160, 111, .62);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.logo-large {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  color: var(--wood);
  background: #fffaf2;
  border: 1px solid rgba(166, 94, 45, .35);
  box-shadow: 0 16px 36px rgba(88, 48, 22, .16);
  font-size: 39px;
}

.hero h1 {
  margin-top: 8px;
  font-size: clamp(58px, 7vw, 108px);
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 18px auto 24px;
  color: #3f3028;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 750;
  line-height: 1.28;
}

.boss-line {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 18px 22px;
  color: #fff3e4;
  background: linear-gradient(135deg, #261811, #5b2f18);
  border: 1px solid rgba(212, 160, 111, .74);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 38px rgba(50, 28, 16, .18);
  font-family: var(--font-serif);
  font-size: clamp(27px, 3vw, 44px);
  line-height: 1.1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin: 0 0 18px;
  background: rgba(255, 252, 247, .78);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feature-grid article {
  min-height: 168px;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  color: var(--copper-dark);
  background: #fff4e5;
  border: 1px solid rgba(166, 94, 45, .34);
  font-size: 17px;
}

.feature-grid h2 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
  overflow: hidden;
  color: #ead4bd;
  background: var(--wood);
  border: 1px solid rgba(212, 160, 111, .62);
  border-radius: var(--radius-md);
}

.trust-strip span {
  padding: 16px 12px;
  border-right: 1px solid rgba(234, 212, 189, .18);
  font-size: 13px;
  font-weight: 850;
}

.trust-strip span:last-child {
  border-right: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-row .button {
  min-width: min(260px, 100%);
}

/* Content sections */
.section {
  padding: clamp(68px, 8vw, 96px) clamp(22px, 7vw, 96px);
  background: var(--paper);
}

.section.soft {
  background: #efe0ca;
}

.section-title {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title h2,
.two-cols h2 {
  margin-top: 8px;
  font-size: clamp(38px, 4.8vw, 64px);
}

.section-title p:not(.eyebrow),
.two-cols p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.steps article,
.form-card,
.promise-list article {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(68, 42, 21, .08);
}

.steps article {
  padding: 26px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #f4dcc2;
  background: var(--wood);
  border-radius: 999px;
  font-weight: 900;
}

.steps h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.two-cols {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.promise-list {
  display: grid;
  gap: 14px;
}

.promise-list article {
  padding: 22px;
}

.promise-list strong,
.promise-list span {
  display: block;
}

.promise-list strong {
  margin-bottom: 6px;
}

.promise-list span {
  color: var(--muted);
  line-height: 1.5;
}

/* Demo facade */
.demo-section {
  background: linear-gradient(180deg, #fff8ec, #efe0ca);
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.demo-card,
.demo-visual,
.demo-notices {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 46px rgba(68, 42, 21, .12);
}

.demo-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.demo-card h3 {
  margin: 0 0 18px;
  font-size: 25px;
}

.demo-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.demo-list li::marker {
  color: var(--copper-dark);
  font-weight: 900;
}

.download-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
}

.download-actions .button {
  width: 100%;
}

.demo-visual {
  overflow: hidden;
  margin: 0;
}

.demo-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.demo-visual figcaption {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.demo-notices {
  display: grid;
  gap: 10px;
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 18px 22px;
  color: #654029;
  background: rgba(255, 250, 242, .92);
}

.demo-notices p {
  margin: 0;
  font-weight: 750;
  line-height: 1.5;
}

/* Form */
.form-card {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 3.6vw, 34px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 600;
}

.checkbox input {
  width: auto;
  margin-top: 4px;
}

.form-card .primary {
  width: fit-content;
  min-width: 240px;
}

.export-result {
  display: none;
  margin: 0;
  padding: 14px 16px;
  color: #654029;
  background: #f0dfc8;
  border: 1px solid rgba(126, 78, 43, .18);
  border-radius: var(--radius-sm);
  font-weight: 750;
}

footer {
  padding: 28px 7vw;
  color: #e6cbb0;
  background: var(--wood);
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero {
    padding-inline: 42px;
  }

  .feature-grid,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid article:nth-child(2),
  .trust-strip span:nth-child(2) {
    border-right: 0;
  }

  .feature-grid article:nth-child(-n + 2),
  .trust-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .topbar {
    gap: 12px;
    padding-inline: 16px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 30px 16px 52px;
    background-position: center;
  }

  .hero-panel {
    padding: 28px 18px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .lead {
    font-size: 21px;
  }

  .boss-line {
    font-size: 28px;
  }

  .feature-grid,
  .trust-strip,
  .steps,
  .two-cols,
  .demo-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .feature-grid article:nth-child(2),
  .trust-strip span,
  .trust-strip span:nth-child(2) {
    border-right: 0;
  }

  .feature-grid article,
  .feature-grid article:nth-child(-n + 2),
  .trust-strip span,
  .trust-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .feature-grid article:last-child,
  .trust-strip span:last-child {
    border-bottom: 0;
  }

  .form-card .primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand small {
    display: none;
  }

  .ghost {
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .section-title h2,
  .two-cols h2 {
    font-size: 36px;
  }
}
