@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #07070a; --bg-soft: #0b0b10; --panel: #121218; --panel-soft: #16161e; --panel-hover: #1c1c26;
  --line: #26262f; --line-soft: #1d1d26; --text: #f5f5f7; --muted: #8b8b98; --muted-dark: #5f5f6c;
  --pink: #ed3f7b; --pink-2: #ff6f9c; --pink-soft: rgba(237,63,123,.48); --violet: #7c5cff;
  --grad-brand: linear-gradient(135deg, var(--pink), var(--violet));
  --radius-lg: 20px; --radius-md: 14px; --radius-sm: 10px;
  --shadow-soft: 0 20px 60px rgba(0,0,0,.45);
  --shadow-glow: 0 0 0 1px rgba(237,63,123,.08), 0 18px 50px rgba(237,63,123,.12);
}
:root.light-theme {
  color-scheme: light;
  --bg: #f6f7fb; --bg-soft: #fbfbfe; --panel: #fff; --panel-soft: #f0f1f7; --panel-hover: #eceef5;
  --line: #dfe2eb; --line-soft: #e9eaf1; --text: #20212a; --muted: #686b7a; --muted-dark: #737786;
  --pink-2: #ba285b;
  --shadow-soft: 0 20px 60px rgba(40,43,70,.14);
  --shadow-glow: 0 0 0 1px rgba(237,63,123,.08), 0 18px 50px rgba(124,92,255,.10);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--text);
  background: radial-gradient(1100px 620px at 15% -10%, rgba(237,63,123,.12), transparent 45%), radial-gradient(900px 620px at 90% 105%, rgba(124,92,255,.12), transparent 45%), var(--bg);
  font-family: 'DM Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(237,63,123,.3); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
@keyframes chaosIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPopIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.page-shell { position: relative; display: flex; flex-direction: column; width: min(100% - 40px, 560px); min-height: 100svh; margin: 0 auto; padding: clamp(64px, 9vh, 90px) 0 24px; }
.theme-toggle { position: absolute; top: 20px; right: 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--panel-soft); font-size: 11px; transition: .18s ease; }
.theme-toggle:hover { color: var(--text); border-color: var(--pink-soft); transform: translateY(-1px); }
.theme-icon { font-size: 16px; line-height: 1; }
.profile { text-align: center; animation: chaosIn .55s ease both; }
.avatar-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.avatar-placeholder { position: relative; display: grid; place-items: center; overflow: hidden; width: 88px; height: 88px; border: 2px solid rgba(237,63,123,.35); border-radius: 50%; background: var(--grad-brand); box-shadow: 0 0 0 5px rgba(237,63,123,.08), 0 16px 40px rgba(0,0,0,.18); color: #fff; }
.avatar-placeholder img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { display: none; font: 800 42px/1 'Manrope', Arial, sans-serif; }
.avatar-placeholder.is-fallback .avatar-fallback { display: block; }
h1 { margin: 0 0 32px; color: var(--text); font: 800 clamp(32px, 6vw, 42px)/1.15 'Manrope', Arial, sans-serif; letter-spacing: -.055em; }
.links { display: grid; gap: 11px; }
.link-card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 7px; min-height: 88px; padding: 20px 54px 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel); color: var(--text); text-decoration: none; text-align: left; transition: border-color .18s, background .18s, transform .18s, box-shadow .18s; animation: chaosIn .55s ease backwards; }
button.link-card { width: 100%; font: inherit; }
.link-card::after { content: '↗'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; transition: color .18s; }
.ebooks-trigger::after { content: '+'; }
.link-card:nth-child(1) { animation-delay: .06s; }
.link-card:nth-child(2) { animation-delay: .12s; }
.link-card:nth-child(3) { animation-delay: .18s; }
.link-card:nth-child(4) { animation-delay: .24s; }
.link-card:hover { border-color: var(--pink-soft); background: var(--panel-hover); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.link-card:hover::after { color: var(--pink-2); }
.ignite-card { border-color: var(--pink-soft); background: linear-gradient(135deg, rgba(237,63,123,.13), rgba(124,92,255,.09)), var(--panel); box-shadow: 0 8px 24px rgba(237,63,123,.06); }
.link-card.maria-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; border-color: var(--pink-soft); background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(237,63,123,.06)), var(--panel); box-shadow: var(--shadow-glow); }
.maria-card::after { content: none; }
.maria-photo { display: block; width: 64px; height: 64px; aspect-ratio: 1; object-fit: cover; object-position: center top; border-radius: 10px; background: var(--panel-soft); }
.maria-content { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.maria-content .card-title { font: 800 22px/1.2 'Manrope', Arial, sans-serif; letter-spacing: -.04em; }
.maria-cta { display: inline-flex; align-items: center; justify-content: center; justify-self: end; gap: 8px; min-height: 44px; padding: 11px 12px; border-radius: 10px; background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; text-align: center; box-shadow: 0 6px 18px rgba(124,92,255,.18); }
.maria-card:hover .maria-cta { filter: brightness(1.08); }
@media (max-width: 480px) {
  .link-card.maria-card { grid-template-columns: 52px minmax(0, 1fr) minmax(100px, 120px); gap: 10px; padding: 14px; }
  .maria-photo { width: 52px; height: 52px; }
  .maria-content .card-title { font-size: 20px; }
  .maria-content .card-description { font-size: 12px; }
  .maria-cta { padding: 10px 8px; font-size: 12px; }
}
@media (max-width: 340px) {
  .link-card.maria-card { grid-template-columns: 44px minmax(0, 1fr) 96px; gap: 8px; padding: 10px; }
  .maria-photo { width: 44px; height: 44px; }
}
.card-title { color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.ignite-card .card-title { color: var(--pink-2); }
.card-description { color: var(--muted); font-size: 13px; line-height: 1.5; }
.socials { display: flex; justify-content: center; gap: 26px; margin: 30px 0 22px; animation: chaosIn .55s .3s ease both; }
.socials a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; text-decoration: none; transition: color .18s; }
.social-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); background: var(--panel-soft); transition: .18s ease; }
.socials a:hover { color: var(--pink-2); }
.socials a:hover .social-icon { color: var(--text); border-color: var(--pink-soft); transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-icon .icon-fill { fill: currentColor; stroke: none; }
footer { margin-top: auto; padding-top: 16px; color: var(--muted-dark); font-size: 11px; text-align: center; }
.ebooks-modal[hidden], .contact-panel[hidden] { display: none; }
.ebooks-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; overflow-y: auto; animation: modalFadeIn .2s ease both; }
.ebooks-backdrop { position: fixed; inset: 0; background: rgba(4,4,8,.55); backdrop-filter: blur(5px); }
.ebooks-dialog { position: relative; width: min(100%, 470px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow-soft); animation: modalPopIn .25s ease both; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: var(--panel-soft); font-size: 24px; line-height: 1; }
.modal-close:hover { color: var(--text); border-color: var(--pink-soft); }
.modal-kicker { margin: 0 30px 10px 0; color: var(--pink-2); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.ebooks-dialog h2 { margin: 0; font: 700 28px/1.2 'Manrope', Arial, sans-serif; letter-spacing: -.04em; }
.modal-intro { margin: 12px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.ebook-options { display: grid; gap: 12px; }
.ebook-option { display: flex; flex-direction: column; gap: 7px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--panel-soft); text-decoration: none; transition: .18s ease; }
.ebook-option:hover { border-color: var(--pink-soft); transform: translateY(-2px); }
.ebook-option-pink { background: linear-gradient(135deg, rgba(237,63,123,.09), transparent), var(--panel); }
.ebook-option-violet { background: linear-gradient(135deg, rgba(124,92,255,.09), transparent), var(--panel); }
.ebook-option-title { color: var(--pink-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.ebook-option-description { color: var(--muted); font-size: 13px; line-height: 1.5; }
.contact-panel { margin-top: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow-soft); }
.contact-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.contact-panel h2 { margin: 0; font: 700 22px 'Manrope', Arial, sans-serif; }
.contact-panel p { color: var(--muted); font-size: 13px; }
.form-close { border: 0; color: var(--muted); background: transparent; font-size: 25px; }
.contact-panel form { display: grid; gap: 12px; }
.contact-panel label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.contact-panel input, .contact-panel select, .contact-panel textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); background: var(--bg-soft); font: inherit; }
.submit-button { border: 0; border-radius: var(--radius-sm); padding: 13px 16px; color: #fff; background: var(--grad-brand); font-size: 13px; font-weight: 700; box-shadow: 0 10px 24px rgba(237,63,123,.22); transition: .18s ease; }
.submit-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
@media (max-width: 430px) {
  .page-shell { width: calc(100% - 28px); padding-top: 68px; }
  .link-card { padding-left: 18px; padding-right: 44px; }
  .link-card::after { right: 17px; }
  .socials { gap: 22px; }
  .ebooks-dialog { padding: 28px 20px 20px; }
}
@media (max-height: 700px) {
  .page-shell { padding-top: 56px; }
  .avatar-placeholder { width: 68px; height: 68px; }
  .avatar-wrap { margin-bottom: 12px; }
  h1 { margin-bottom: 22px; font-size: 32px; }
  .link-card { min-height: 74px; padding-top: 14px; padding-bottom: 14px; }
  .socials { margin: 22px 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
