/* Save this as styles.css */
:root {
  --bg: #FFFFFF;
  --bg-muted: #F9FAFB;
  --card: #FFFFFF;
  --text: #111827;
  --muted: #4B5563;
  --border: #E5E7EB;
  --accent: #2563EB;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
  --radius: 16px;
  --maxw: 1120px
}

* { box-sizing: border-box }

body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px }

/* Header (minimal, Notion-like) */
header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 72%, rgba(255, 255, 255, .6)); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border) }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700 }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: radial-gradient(100% 100% at 60% 40%, #CDE9F5 0%, #A7C8BD 100%); border: 1px solid #E6EEF5; box-shadow: var(--shadow) }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; opacity: .9 }
.btn { display: inline-flex; gap: 10px; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-weight: 600; box-shadow: var(--shadow); transition: transform .06s ease, box-shadow .12s ease; cursor: pointer }
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 12px 24px rgba(0, 0, 0, .06) }
.btn.primary { background: var(--accent); color: #fff; border-color: color-mix(in srgb, var(--accent), #000 12%) }
.btn.ghost { background: transparent; box-shadow: none }

/* HERO */
.hero { padding: 96px 0 72px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%) }
.hero-grid { display: grid; gap: 24px; align-items: center }
@media(min-width:960px) { .hero-grid { grid-template-columns: 1.2fr .8fr } }
.kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600 }
h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.12; margin: 14px 0 12px }
p.lead { font-size: 18px; color: var(--muted); margin: 0 0 10px }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px }
.hero-note { margin-top: 10px; font-size: 14px; color: var(--muted) }

/* Aside card */
.poster { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow) }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px }
.chip { font-size: 12px; border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; color: var(--muted); background: #fff }

/* Cards grid */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px }
@media(min-width:720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media(min-width:1040px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow) }
.card .icon { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 10px; font-size: 18px }

/* Feature rows */
.feature-list { display: grid; gap: 20px }
.feature-row { display: grid; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px }
.feature-copy h3 { margin: 0 0 6px; font-size: 20px }
.feature-copy p { margin: 0 }
.feature-media { margin: 0 }
.media-frame { aspect-ratio: 4/3; background: #F3F4F6; border: 1px solid var(--border); border-radius: 12px; overflow: hidden }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block }
.feature-media caption { display: block; margin-top: 8px; color: var(--muted); font-size: 14px }
@media(min-width:960px) { .feature-row { grid-template-columns: 1.1fr 1fr } .feature-row.reverse { grid-template-columns: 1fr 1.1fr } }

html { scroll-behavior: smooth }

/* Explore chips subnav */
.pillnav { position: static; top: auto; z-index: 1; background: transparent; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 48px 0 0 }
.pillwrap { max-width: var(--maxw); margin: 0 auto; padding: 10px 20px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; overflow: visible }
.pill { white-space: normal; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-weight: 600; color: var(--text); background: #fff; box-shadow: none; text-decoration: none; transition: all .2s ease }
.pill:hover { transform: none; box-shadow: none; border-color: color-mix(in srgb, var(--border), #000 12%); background: var(--bg-muted) }
.pill.is-primary { background: var(--accent); color: #fff; border-color: color-mix(in srgb, var(--accent), #000 12%) }

.rule { height: 1px; background: var(--border); border-radius: 1px; margin: 24px 0 }


/* * 1. Target the image inside the media frame.
 */
.media-frame img {
  /* CRUCIAL: Ensures the image never exceeds the width of its parent */
  max-width: 100%; 
  
  /* CRUCIAL: Automatically adjusts the height to keep the image proportional */
  height: auto; 
  
  /* Optional but recommended: Removes small extra space below the image */
  display: block; 
}

/* * 2. If the 'media-frame' itself needs a specific width, define it. 
 * (Otherwise, it will just take the width of its parent 'feature-media')
 */
/* Example: limiting the container's width */
/*
.media-frame {
  max-width: 600px; 
  margin: 0 auto; 
}
*/