:root {
  color-scheme: only light;
  --bg: #f5f1ea;
  --text: #1f1a16;
  --muted: rgba(31, 26, 22, 0.56);
  --paper: #fffdf8;
  --accent: #c96f45;
  --line: rgba(31, 26, 22, 0.1);
  --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.9), transparent 34%),
    var(--bg);
  font-family: var(--font-main);
  color: var(--text);
  overflow-x: hidden;
}

.site-header {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
  padding: 0 clamp(16px, 6vw, 90px);
}

.nav {
  display: flex;
  gap: 16px;
  font-family: var(--font-main);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(31, 26, 22, 0.65);
}

.nav a {
  padding: 6px 12px;
}

.nav a.active {
  color: var(--text);
  background: rgba(255, 253, 248, 0.74);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  padding: 110px clamp(16px, 6vw, 90px) 60px;
  max-width: 1440px;
  margin: 0 auto;
  transform: translateY(-34px);
}

.hero-copy {
  display: grid;
  gap: 42px;
  justify-items: start;
  text-align: left;
  max-width: 740px;
}

.brand {
  font-size: clamp(3.8rem, 7vw, 8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  font-size: clamp(2.1rem, 3.8vw, 4rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.subcopy {
  max-width: 560px;
  color: var(--muted);
  font-family: var(--font-main);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.55;
}

.underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.18em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='14' viewBox='0 0 360 14'%3E%3Cpath d='M4 9 C 20 3, 44 12, 68 7 S 112 3, 148 8 S 200 12, 236 7 S 292 3, 356 8' fill='none' stroke='%23C96F45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 14px;
  background-position: 0 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  border-radius: 999px;
  background: var(--text);
  color: #fffdf8;
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.showcase {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.phone-shell {
  width: min(100%, 380px);
  aspect-ratio: 0.49;
  border-radius: 58px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.78), rgba(245, 241, 234, 0.92));
  box-shadow: 0 26px 80px rgba(31, 26, 22, 0.16);
  padding: 58px 28px 30px;
}

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.circle-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding-left: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.circle-icon span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 999px;
}

.circle-icon span:nth-child(3) {
  width: 14px;
}

.search-ring::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 4px solid var(--text);
  border-radius: 999px;
  transform: translate(1px, -1px);
}

.search-ring::after {
  content: "";
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: var(--text);
  transform: translate(16px, 15px) rotate(45deg);
  position: absolute;
}

.note-card {
  min-height: 480px;
  border-radius: 34px;
  background: var(--paper);
  padding: 34px 30px;
  box-shadow: 0 16px 50px rgba(31, 26, 22, 0.08);
}

.label {
  display: block;
  font-family: var(--font-main);
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 36px;
}

.note-card p {
  font-family: var(--font-main);
  color: rgba(31, 26, 22, 0.36);
  font-size: 1.45rem;
  line-height: 1.25;
}

.app-icon {
  position: absolute;
  right: -20px;
  bottom: 30px;
  width: 154px;
  height: 154px;
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(31, 26, 22, 0.16);
}

.page-content {
  min-height: 100vh;
  display: grid;
  place-items: start;
  padding: 210px clamp(16px, 6vw, 90px) 60px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}

.page-copy {
  display: grid;
  gap: 38px;
}

.page-copy .big {
  font-size: clamp(2.1rem, 4.2vw, 4.35rem);
  line-height: 1.08;
}

@media (max-width: 760px) {
  .site-header {
    top: 16px;
    justify-content: center;
  }

  .nav {
    gap: 5px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .nav a {
    padding: 6px 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 100px 6vw 60px;
    gap: 42px;
    transform: translateY(-22px);
  }

  .hero-copy {
    gap: 30px;
  }

  .brand {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

  h1 {
    font-size: clamp(1.7rem, 7vw, 2.6rem);
  }

  .showcase {
    min-height: auto;
  }

  .phone-shell {
    width: min(100%, 330px);
    border-radius: 48px;
    padding: 44px 22px 26px;
  }

  .note-card {
    min-height: 390px;
    border-radius: 28px;
  }

  .app-icon {
    width: 112px;
    height: 112px;
    right: 2px;
    bottom: 4px;
    border-radius: 26px;
  }

  .page-content {
    padding: 132px 8vw 60px;
  }

  .page-copy .big {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    line-height: 1.22;
  }
}
