@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@500;700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #f6efe6;
  --bg-deep: #e7d7c5;
  --ink: #191512;
  --muted: #5b5048;
  --accent: #c25a3a;
  --accent-dark: #9f3e26;
  --card: #fff7ee;
  --line: rgba(25, 21, 18, 0.12);
  --glass: rgba(255, 255, 255, 0.65);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, #fff4e6 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 28px 8vw 10px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 20px 8vw 60px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin: 0 0 20px;
  line-height: 1.1;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}

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

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary {
  background: var(--accent);
  color: #fff7f0;
  box-shadow: 0 12px 24px rgba(194, 90, 58, 0.25);
}

.primary:hover {
  background: var(--accent-dark);
}

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

.platforms {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.platforms span {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.6);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.device-stack {
  position: relative;
  width: min(90%, 420px);
  height: 320px;
}

.device {
  position: absolute;
  border-radius: 24px;
  border: 2px solid rgba(25, 21, 18, 0.15);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(231, 215, 197, 0.8));
  box-shadow: 0 20px 40px rgba(25, 21, 18, 0.15);
}

.device.tablet {
  width: 280px;
  height: 200px;
  left: 0;
  top: 20px;
}

.device.phone {
  width: 130px;
  height: 220px;
  right: 10px;
  top: 60px;
}

.device.desktop {
  width: 320px;
  height: 180px;
  left: 40px;
  bottom: 0;
}

.glass-card {
  position: absolute;
  bottom: -20px;
  right: 30px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px rgba(25, 21, 18, 0.2);
  max-width: 240px;
}

.card-title {
  font-weight: 600;
  margin: 0 0 6px;
}

.card-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.value-props,
.apps,
.cta {
  padding: 60px 8vw;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}

.section-head h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
}

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

.prop-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.prop {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(25, 21, 18, 0.08);
}

.prop h3 {
  margin-top: 0;
}

.apps {
  background: rgba(255, 255, 255, 0.6);
}

.app-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.app-card {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 14px 30px rgba(25, 21, 18, 0.1);
}

.app-card.featured {
  border: 1px solid rgba(194, 90, 58, 0.4);
  background: linear-gradient(160deg, #fff5ee, #fde6d9);
}

.app-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(194, 90, 58, 0.2);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-badge.muted {
  background: rgba(25, 21, 18, 0.08);
  color: var(--muted);
}

.app-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.cta {
  display: flex;
  justify-content: center;
}

.cta-card {
  max-width: 720px;
  width: 100%;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(130deg, #1e1a17, #3c2c24);
  color: #fff5ea;
  text-align: center;
  box-shadow: 0 28px 48px rgba(25, 21, 18, 0.3);
}

.cta-card p {
  color: rgba(255, 245, 234, 0.85);
  line-height: 1.6;
}

.site-footer {
  padding: 30px 8vw 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(194, 90, 58, 0.12);
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.status.error {
  background: rgba(198, 61, 61, 0.12);
  color: #8b1c1c;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 21, 18, 0.4);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(25, 21, 18, 0.25);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.stack {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .nav {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .site-header,
  .hero,
  .value-props,
  .apps,
  .cta {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .hero-visual {
    min-height: 320px;
  }

  .device.desktop {
    width: 260px;
  }
}
