:root {
  --ink: #12100e;
  --soft-ink: #473d36;
  --muted: #786d64;
  --paper: #fffaf2;
  --porcelain: #f8f1e8;
  --champagne: #eec783;
  --cognac: #8b5604;
  --rose: #ef7d99;
  --aqua: #8fe2e2;
  --line: rgba(18, 16, 14, 0.14);
  --glass: rgba(255, 250, 242, 0.78);
  --shadow: 0 28px 80px rgba(37, 25, 13, 0.17);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(238, 199, 131, 0.2), transparent 32%),
    linear-gradient(315deg, rgba(143, 226, 226, 0.2), transparent 34%),
    radial-gradient(rgba(18, 16, 14, 0.08) 1px, transparent 1.5px),
    var(--paper);
  background-size: auto, auto, 22px 22px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 950;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  color: var(--paper);
  background: linear-gradient(135deg, var(--ink), var(--cognac) 54%, var(--rose));
  box-shadow: 8px 8px 0 rgba(143, 226, 226, 0.64);
}

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

.navlinks a {
  padding: 9px 10px;
  border-radius: var(--radius);
  color: rgba(18, 16, 14, 0.68);
  font-size: 0.88rem;
  font-weight: 850;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--ink);
  background: rgba(18, 16, 14, 0.07);
}

.download-link,
.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  border-bottom: 1px solid var(--line);
}

#frameField {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.97), rgba(255, 250, 242, 0.66) 56%, rgba(255, 250, 242, 0.94)),
    linear-gradient(180deg, transparent, rgba(139, 86, 4, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cognac);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 950;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  font-weight: 950;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(120deg, var(--ink), var(--cognac) 34%, var(--rose) 66%, #157a7a);
  background-clip: text;
  -webkit-background-clip: text;
}

.subtitle,
.lead {
  color: rgba(18, 16, 14, 0.72);
  font-size: clamp(1rem, 1.65vw, 1.18rem);
}

.subtitle {
  max-width: 760px;
  margin: 22px 0 0;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 25, 13, 0.16);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.54);
}

.studio-panel,
.legal-card,
.feature-card,
.stat-card,
.workflow article,
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
}

.studio-panel {
  border: 2px solid var(--ink);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 199, 131, 0.42);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: #157a7a;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-body {
  padding: 20px;
}

.mock-phone {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(143, 226, 226, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 125, 153, 0.14) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 44px, 44px 100%, auto;
  padding: 16px;
}

.mock-top,
.mock-dock {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill,
.mock-dock span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  padding: 7px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.note-preview,
.media-preview,
.theme-preview,
.edit-preview {
  margin-top: 14px;
  border: 2px solid rgba(18, 16, 14, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.86);
  padding: 15px;
}

.media-preview {
  transform: rotate(-1.2deg);
}

.theme-preview {
  transform: rotate(1deg);
}

.edit-preview {
  background: linear-gradient(135deg, rgba(239, 125, 153, 0.2), rgba(143, 226, 226, 0.24));
}

.mini-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.mini-controls span {
  padding: 7px 9px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 950;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-title {
  max-width: 980px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 950;
}

.lead {
  max-width: 920px;
  margin: 22px 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-card {
  padding: 24px;
  box-shadow: none;
}

.feature-number {
  display: block;
  color: var(--cognac);
  font-weight: 950;
  margin-bottom: 26px;
}

.feature-card h3,
.workflow h3,
.support-card h3 {
  font-size: 1.28rem;
}

.feature-card p,
.workflow p,
.support-card p,
.legal-card p,
.legal-card li {
  color: var(--soft-ink);
}

.showcase {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 16, 14, 0.04);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.workflow article {
  padding: 22px;
  box-shadow: none;
}

.workflow strong {
  display: block;
  color: var(--cognac);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.stat-card {
  padding: 22px;
  box-shadow: none;
}

.stat-card strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-top: 10px;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(238, 199, 131, 0.25), rgba(143, 226, 226, 0.18));
}

.page-hero .section {
  padding: 76px 0;
}

.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.legal-wrap {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 86px;
}

.legal-card {
  padding: clamp(24px, 4vw, 46px);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card a {
  color: var(--cognac);
  font-weight: 900;
}

.callout {
  margin: 28px 0;
  padding: 18px;
  border-left: 4px solid var(--cognac);
  border-radius: var(--radius);
  background: rgba(238, 199, 131, 0.26);
  color: var(--soft-ink);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 18px;
  margin-top: 34px;
}

.support-card {
  padding: 28px;
  box-shadow: none;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(18, 16, 14, 0.92);
  color: rgba(255, 250, 242, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .navlinks {
    justify-content: flex-start;
  }

  .navlinks a {
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 54px 0;
  }

  .feature-grid,
  .workflow,
  .stats,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .page-hero .section {
    padding: 58px 0;
  }

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

@media (max-width: 520px) {
  .brand {
    font-size: 1.06rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .legal-wrap {
    padding-top: 28px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
