@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');
:root {
  --bg: #0A0614;
  --surface: #120A22;
  --ink: #F0EAFB;
  --muted: #8E84A3;
  --accent: #E4508A;
  --accent-2: #F27BAB;
  --on-accent: #FFFFFF;
  --fh: 'Playfair Display', Georgia, serif;
  --fb: 'Inter', system-ui, sans-serif;
}
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--fb); font-size: 16px; -webkit-font-smoothing: antialiased; overflow: hidden; }
a { text-decoration: none; color: inherit; }
svg { display: block; }

.wrap { display: grid; grid-template-columns: 58% 42%; min-height: 100vh; }

/* --- Panel (color) --- */
.panel {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--on-accent);
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: polygon(0 0, 100% 0, calc(100% - 120px) 100%, 0 100%);
  overflow: hidden;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--fh); font-weight: 700; color: var(--on-accent); position: relative; z-index: 2; }
.brand__mark { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--on-accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent); }
.brand__name { font-size: 1.04rem; letter-spacing: -0.01em; }

.panel__content { position: relative; z-index: 2; max-width: 520px; animation: rise .8s ease .1s backwards; }
.label { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 600; opacity: 0.8; margin-bottom: 24px; padding: 6px 14px; border: 1px solid color-mix(in srgb, var(--on-accent) 35%, transparent); border-radius: 999px; }
.panel h1 { font-family: var(--fh); font-weight: 700; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 18px; color: var(--on-accent); }
.desc { font-size: 1.08rem; opacity: 0.88; margin: 0; max-width: 42ch; }

.panel__foot { display: flex; gap: 22px; position: relative; z-index: 2; font-size: 0.88rem; opacity: 0.85; }
.panel__foot a { color: var(--on-accent); transition: opacity .15s; }
.panel__foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.panel__deco { position: absolute; top: -60px; right: -120px; width: 500px; height: 500px; color: var(--on-accent); opacity: 0.6; animation: spin 60s linear infinite; pointer-events: none; }
.panel__deco svg { width: 100%; height: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Side (white/bg) --- */
.side {
  position: relative;
  background: var(--bg);
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: space-between;
}
.side__nav { display: flex; gap: 22px; justify-content: flex-end; font-size: 0.9rem; color: var(--muted); }
.side__nav a:hover { color: var(--ink); }

.side__content { display: flex; flex-direction: column; justify-content: center; flex: 1; max-width: 420px; animation: rise .8s ease .25s backwards; }
.num { font-family: var(--fh); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.side h2 { font-family: var(--fh); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ink); }
.kicker { color: var(--muted); margin: 0 0 28px; font-size: 1rem; }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  font-family: var(--fh); font-weight: 600; font-size: 0.96rem;
  letter-spacing: -0.005em;
  transition: transform .18s, background .18s;
  align-self: flex-start;
}
.cta:hover { transform: translateY(-2px); background: var(--accent); color: var(--on-accent); }

.meta { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); padding-top: 22px; }
.meta li { display: flex; justify-content: space-between; font-size: 0.92rem; }
.meta span { color: var(--muted); }
.meta strong { font-family: var(--fh); font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }

.side__corner { font-size: 0.8rem; color: var(--muted); text-align: right; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  body { overflow: auto; }
  .wrap { grid-template-columns: 1fr; }
  .panel { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); min-height: 60vh; }
  .panel__deco { width: 300px; height: 300px; right: -60px; }
}

::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }
