/* ─── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #7591a6;
  --green-dark: #637b8d;
  --green-light: #8ca8be;
  --charcoal: #161616;
  --gray-900: #1a1a1a;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled {
  border-color: var(--gray-300);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'Josefin Slab', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
}
.logo span { color: var(--green); }

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}
.nav nav a:hover { color: var(--green); }

.btn-nav {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: .85rem !important;
  font-weight: 600 !important;
  transition: background .15s !important;
}
.btn-nav:hover { background: var(--green-dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: .2s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--gray-300);
  gap: 4px;
}
.mobile-menu a {
  padding: 10px 0;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu.open { display: flex; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(117,145,166,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(117,145,166,.12);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.hero-text h1 {
  font-family: 'Josefin Slab', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-text h1 em {
  font-style: normal;
  color: var(--green);
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gray-700);
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--gray-300);
  transition: border-color .15s, color .15s;
}
.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

/* App screenshot */
.hero-image {
  display: flex;
  justify-content: center;
}
.app-screenshot {
  width: 280px;
  display: block;
}

/* ─── Features ──────────────────────────────────────────────── */
.features {
  padding: 96px 0;
  background: var(--gray-100);
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-family: 'Josefin Slab', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.section-header p {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.7;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(117,145,166,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.65;
}
.feature-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--green);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
}
.feature-link:hover { color: var(--green-dark); text-decoration: underline; }

/* ─── Feature detail pages ──────────────────────────────────── */
.feature-hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.feature-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(117,145,166,.1) 0%, transparent 70%);
  pointer-events: none;
}
.feature-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  position: relative;
}
.feature-hero-icon {
  width: 72px;
  height: 72px;
  background: rgba(117,145,166,.14);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.feature-hero-icon svg { width: 36px; height: 36px; }
.feature-hero-inner h1 {
  font-family: 'Josefin Slab', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
}
.feature-hero-inner .hero-desc {
  max-width: 560px;
  margin-bottom: 0;
}
.feature-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color .15s;
}
.feature-back:hover { color: var(--green); }

.feature-detail {
  padding: 64px 0 96px;
  background: var(--gray-100);
}
.feature-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.feature-detail-content h2 {
  font-family: 'Josefin Slab', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.feature-detail-content p {
  color: var(--gray-500);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .92rem;
  color: var(--gray-700);
  line-height: 1.55;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: rgba(117,145,166,.15);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237591a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.feature-detail-aside {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.feature-detail-aside h3 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.aside-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aside-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.aside-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(117,145,166,.1);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.aside-item-icon svg { width: 18px; height: 18px; }
.aside-item-text strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.aside-item-text span {
  font-size: .83rem;
  color: var(--gray-500);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .feature-detail-grid { grid-template-columns: 1fr; }
}

/* ─── Proof strip ───────────────────────────────────────────── */
.proof-strip {
  background: var(--charcoal);
  padding: 40px 0;
}
.proof-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.proof-item strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}
.proof-item span {
  color: rgba(255,255,255,.5);
  font-size: .8rem;
}
.proof-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.12);
}

/* ─── Releases ──────────────────────────────────────────────── */
.releases {
  padding: 96px 0;
}
.releases-list {
  max-width: 640px;
  margin: 0 auto;
}
.release-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-300);
}
.release-item:last-child { border-bottom: none; }
.release-version {
  flex-shrink: 0;
  width: 80px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  padding-top: 4px;
}
.release-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.release-content p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.65;
}
.release-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--green);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.release-link:hover { text-decoration: underline; }

/* ─── Download CTA ──────────────────────────────────────────── */
.download {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 96px 0;
  text-align: center;
}
.download-inner h2 {
  font-family: 'Josefin Slab', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}
.download-inner p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: 36px;
}
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  color: var(--charcoal);
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .15s, box-shadow .15s;
}
.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.btn-appstore div {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.btn-appstore span {
  font-size: .7rem;
  font-weight: 400;
  color: var(--gray-500);
  line-height: 1;
}
.btn-appstore strong {
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1.4;
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--charcoal);
  padding-top: 64px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer-brand p {
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  margin-top: 10px;
  max-width: 220px;
}
.footer-brand .logo { color: var(--white); }
.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-col a {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  text-decoration: none;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,.3);
  font-size: .78rem;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .proof-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .app-screenshot { width: 220px; }
}
