:root {
  --ink: #1c1612;
  --ink-soft: #3a3129;
  --paper: #f6efe4;
  --paper-2: #efe4d4;
  --card: #fffaf3;
  --line: rgba(28, 22, 18, 0.12);
  --sesame: #f48fb1;
  --sesame-deep: #c45c78;
  --crust: #e56b8a;
  --crust-deep: #c45c78;
  --paw: #f48fb1;
  --kelime: #2f7a46;
  --auto: #215f73;
  --anne: #b45c6a;
  --shadow: 0 18px 40px rgba(28, 22, 18, 0.08);
  --radius: 22px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(244, 143, 177, 0.22), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(229, 107, 138, 0.12), transparent 24%),
    var(--paper);
  font-family: Figtree, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(circle, #f48fb1 0.7px, transparent 0.8px);
  background-size: 18px 18px;
  z-index: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(246, 239, 228, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--paper-2);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.7);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hero h1 {
  margin: 18px 0 12px;
  max-width: 14ch;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 560;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: var(--crust);
}

.lede {
  max-width: 38rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 56px 0;
}

.section h2 {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
}

.muted {
  color: var(--ink-soft);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.app-visual {
  height: 168px;
  display: grid;
  place-items: center;
  position: relative;
}

.app-visual.kelime { background: linear-gradient(160deg, #dff3e5, #b7ddc2); }
.app-visual.auto { background: linear-gradient(160deg, #d7eef4, #b5d5df); }
.app-visual.anne { background: linear-gradient(160deg, #f8dfe4, #efc4cb); }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 6px;
}

.tiles b {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #2f7a46;
}

.tiles b:nth-child(2),
.tiles b:nth-child(4) { background: #d4b13a; }
.tiles b:nth-child(3),
.tiles b:nth-child(6),
.tiles b:nth-child(8) { background: #ece7dc; }

.gauge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 10px solid rgba(33, 95, 115, 0.18);
  border-top-color: #215f73;
  border-right-color: #215f73;
}

.heart {
  width: 54px;
  height: 54px;
  background: #b45c6a;
  transform: rotate(45deg);
  border-radius: 8px;
  position: relative;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  background: inherit;
  border-radius: 50%;
}

.heart::before { top: -27px; left: 0; }
.heart::after { left: -27px; top: 0; }

.app-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.app-body h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.45rem;
}

.tag {
  align-self: flex-start;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sesame-deep);
}

.app-body p {
  margin: 0;
  color: var(--ink-soft);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  margin-top: 24px;
}

.about-story {
  max-width: 40rem;
  margin-top: 24px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin-top: 0;
  font-family: Fraunces, Georgia, serif;
}

.identity dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 14px;
}

.identity dd {
  margin: 4px 0 0;
}

.legal {
  max-width: 46rem;
}

.legal h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.25rem;
  margin-top: 28px;
}

.page-hero {
  padding-top: 48px;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .app-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
  }

  body.nav-open .nav-links {
    display: flex;
  }
}
