:root {
  --bg: #fffafb;
  --surface: #ffffff;
  --surface-2: #f8f6f7;
  --pink-50: #fff2f6;
  --pink-100: #fde5ed;
  --pink-200: #f9cbd9;
  --pink-400: #e99ab4;
  --rose: #c86c8e;
  --lav: #ece9ff;
  --lav-strong: #8b76e8;
  --text: #2f2f35;
  --muted: #6f6d75;
  --line: #ebe7ea;
  --shadow: 0 18px 50px rgba(68, 52, 62, 0.10);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(249,203,217,.35), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(236,233,255,.6), transparent 26%),
    var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,250,251,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(235,231,234,.8);
}
.nav-wrap { min-height: 76px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { text-decoration:none; display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:-.02em; }
.brand-bubble { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:linear-gradient(145deg,var(--pink-100),var(--lav)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.brand small { display:block; color:var(--muted); font-weight:600; font-size:.75rem; letter-spacing:.02em; }
.desktop-nav { display:flex; align-items:center; gap:6px; }
.nav-group { position:relative; }
.nav-link, .nav-button { border:0; background:transparent; text-decoration:none; padding:12px 14px; border-radius:999px; cursor:pointer; font-weight:700; color:#46434a; }
.nav-link:hover, .nav-button:hover, .nav-group:focus-within > .nav-button { background:var(--pink-50); }
.dropdown { position:absolute; top:calc(100% + 8px); left:0; min-width:245px; background:var(--surface); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); padding:10px; opacity:0; transform:translateY(-5px); pointer-events:none; transition:.18s ease; }
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown { opacity:1; transform:none; pointer-events:auto; }
.dropdown a { display:block; padding:10px 12px; text-decoration:none; border-radius:14px; color:#4d4851; }
.dropdown a:hover { background:var(--surface-2); }
.nav-num { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:50%; margin-right:6px; background:var(--pink-100); color:var(--rose); font-size:.82rem; }
.menu-toggle { display:none; border:0; background:var(--pink-50); width:44px; height:44px; border-radius:50%; cursor:pointer; }
.mobile-nav { display:none; padding:0 0 14px; }
.mobile-nav.open { display:block; }
.mobile-nav details { background:#fff; border:1px solid var(--line); border-radius:16px; margin:8px 0; padding:10px 14px; }
.mobile-nav summary { cursor:pointer; font-weight:800; }
.mobile-nav a { display:block; text-decoration:none; padding:9px 8px; color:var(--muted); }

.hero { padding:88px 0 54px; }
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; background:var(--pink-50); color:var(--rose); font-weight:800; font-size:.82rem; letter-spacing:.03em; text-transform:uppercase; }
h1, h2, h3 { line-height:1.08; letter-spacing:-.035em; }
h1 { font-size:clamp(2.7rem, 7vw, 5.7rem); margin:18px 0 20px; }
h2 { font-size:clamp(2rem, 4vw, 3.1rem); margin:0 0 14px; }
h3 { font-size:1.35rem; margin:0 0 10px; }
.lead { font-size:1.12rem; color:var(--muted); max-width:720px; }
.hero-card { background:var(--surface); padding:14px; border-radius:var(--radius-xl); box-shadow:var(--shadow); transform:rotate(1.2deg); }
.hero-card img { border-radius:24px; aspect-ratio:4/3; object-fit:cover; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.btn { display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; border-radius:999px; text-decoration:none; font-weight:800; border:1px solid transparent; }
.btn-primary { background:#2f2f35; color:#fff; }
.btn-secondary { background:#fff; border-color:var(--line); }

.section { padding:56px 0; }
.section-soft { background:linear-gradient(180deg, rgba(255,255,255,.2), rgba(253,229,237,.24)); }
.section-head { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom:28px; }
.section-head p { margin:0; color:var(--muted); max-width:620px; }
.grid-2 { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:22px; }
.grid-3 { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px; }
.grid-4 { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:18px; }
.card { background:rgba(255,255,255,.9); border:1px solid var(--line); border-radius:var(--radius-lg); padding:24px; box-shadow:0 10px 26px rgba(68,52,62,.05); }
.card p { color:var(--muted); }
.card-link { text-decoration:none; transition:transform .16s ease, box-shadow .16s ease; }
.card-link:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.badge { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; background:var(--lav); color:#6f60c6; font-weight:900; margin-bottom:14px; }
.photo-card { overflow:hidden; padding:0; }
.photo-card img { width:100%; height:240px; object-fit:cover; }
.photo-card .pad { padding:18px 20px 22px; }

.page-hero { padding:72px 0 30px; }
.breadcrumbs { font-size:.9rem; color:var(--muted); margin-bottom:15px; }
.page-title { font-size:clamp(2.5rem, 6vw, 4.8rem); margin:0 0 16px; }
.content-wrap { width:min(880px, 100%); }
.prose { background:rgba(255,255,255,.82); border:1px solid var(--line); border-radius:var(--radius-xl); padding:clamp(22px,4vw,42px); box-shadow:0 14px 34px rgba(68,52,62,.05); }
.prose h2 { margin-top:38px; font-size:1.85rem; }
.prose h3 { margin-top:28px; }
.prose ul, .prose ol { padding-left:1.3rem; }
.prose li { margin:.35rem 0; }
.callout { background:var(--pink-50); border:1px solid var(--pink-100); border-radius:20px; padding:18px 20px; margin:24px 0; }
.takeaways { display:grid; gap:10px; margin-top:18px; }
.takeaway { background:var(--surface-2); padding:14px 16px; border-radius:16px; }

.gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.gallery img { width:100%; height:270px; object-fit:cover; border-radius:22px; }
.gallery img:nth-child(1), .gallery img:nth-child(5) { grid-column:span 2; }

.embed-box { aspect-ratio:16/9; background:#f2eff3; border:1px dashed #cfc7ce; border-radius:22px; display:grid; place-items:center; text-align:center; padding:30px; overflow:hidden; }
.embed-box iframe, .embed-box video { width:100%; height:100%; border:0; border-radius:18px; }
.code-note { font-size:.9rem; color:var(--muted); }

.resource-list { display:grid; gap:14px; }
.resource { display:flex; gap:14px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius:18px; padding:18px; text-decoration:none; }
.resource strong { display:block; }
.resource span { color:var(--muted); font-size:.95rem; }

.pdf-frame { width:100%; min-height:800px; border:1px solid var(--line); border-radius:24px; background:#fff; }
.tech-tip-preview { width:min(650px,100%); margin:auto; padding:12px; background:#fff; border:1px solid var(--line); border-radius:28px; box-shadow:var(--shadow); }

.footer { margin-top:72px; padding:36px 0 52px; border-top:1px solid var(--line); color:var(--muted); }
.footer-grid { display:flex; justify-content:space-between; gap:24px; align-items:center; flex-wrap:wrap; }
.footer a { color:var(--text); text-decoration:none; font-weight:700; }

@media (max-width: 900px) {
  .desktop-nav { display:none; }
  .menu-toggle { display:block; }
  .hero-grid, .grid-4, .grid-3 { grid-template-columns:1fr 1fr; }
  .hero { padding-top:56px; }
  .hero-grid { gap:28px; }
  .gallery { grid-template-columns:1fr 1fr; }
  .gallery img, .gallery img:nth-child(1), .gallery img:nth-child(5) { grid-column:auto; height:220px; }
}
@media (max-width: 640px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .gallery { grid-template-columns:1fr; }
  .hero-card { transform:none; }
  .section-head { align-items:start; flex-direction:column; }
  .gallery img { height:auto; }
  .brand span:last-child { display:none; }
  .pdf-frame { min-height:560px; }
}
