:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #63635f;
  --line: #dedbd2;
  --teal: #597f7c;
  --coral: #d86f60;
  --yellow: #e4b43d;
  --green: #8c9867;
  --shadow: 0 18px 50px rgba(28, 28, 24, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(247, 245, 240, 0.86);
  border-bottom: 1px solid rgba(222, 219, 210, 0.74);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
}

.nav-links {
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  min-height: calc(100svh - 70px);
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 64px) 56px;
}

.hero-copy {
  width: 100%;
  max-width: 660px;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.app-status {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1 {
  margin: 12px 0 18px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  width: 100%;
  max-width: 620px;
  margin: 0;
  color: #41413d;
  font-size: clamp(19px, 2.2vw, 25px);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 720;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--surface);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
}

.hero-media img {
  width: 100%;
  min-height: 420px;
  max-height: 640px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro,
.apps-section,
.contact-section {
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.intro,
.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.intro > *,
.contact-section > *,
.section-heading,
.apps-grid {
  min-width: 0;
}

.intro h2,
.section-heading h2,
.contact-section h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.intro > p {
  max-width: 760px;
  margin: 0;
  color: #41413d;
  font-size: clamp(18px, 2vw, 22px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  display: grid;
  min-height: 330px;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9) 0 9px, transparent 10px),
    var(--teal);
}

.app-icon.timer {
  background:
    conic-gradient(from 45deg, var(--yellow) 0 25%, transparent 0 100%),
    var(--teal);
}

.app-icon.life {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.88) 0 8px, transparent 9px),
    linear-gradient(135deg, var(--green), var(--teal));
}

.app-icon.roundrix {
  background:
    radial-gradient(circle at 32% 32%, var(--yellow) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 36%, var(--coral) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 70%, var(--surface) 0 5px, transparent 6px),
    var(--teal);
}

.app-icon.pour {
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.86) 43% 57%, transparent 58%),
    var(--coral);
}

.app-content h3 {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.app-content p:last-child {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 720;
}

.contact-section {
  background: #efeee8;
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-start;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 720;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    min-height: 300px;
    max-height: 420px;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 24px;
    font-size: 14px;
  }

  .hero {
    padding-top: 28px;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: 38px;
    line-height: 1.03;
  }

  .lead {
    font-size: 19px;
  }

  .hero-media img {
    width: 100%;
    min-height: 260px;
  }

  .hero-copy,
  .hero-media,
  .intro > *,
  .contact-section > *,
  .section-heading,
  .apps-grid {
    width: 100%;
    max-width: 100%;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 270px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
