:root {
  color-scheme: light;
  --background: hsl(0 0% 100%);
  --foreground: hsl(222.2 84% 4.9%);
  --muted: hsl(240 4.8% 95.9%);
  --muted-foreground: hsl(215.4 16.3% 46.9%);
  --primary: hsl(243 75% 59%);
  --accent: hsl(270 95% 75%);
  --border: hsl(214.3 31.8% 91.4%);
  --success: hsl(142 76% 36%);
  --gradient: linear-gradient(to right, var(--primary), var(--accent));
  --shadow-soft: 0 4px 20px -4px hsl(243 75% 59% / .1);
  --shadow-elegant: 0 10px 30px -10px hsl(243 75% 59% / .2);
  --radius: .75rem;
  --space: 1.5rem;
  --page-padding: clamp(1.5rem, 4vw, 4rem);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--foreground); background: var(--background); font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 1rem; line-height: 1.5; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; vertical-align: middle; }
.gradient-text { color: var(--primary); background: var(--gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.5rem; padding: .5rem 1rem; border: 1px solid transparent; border-radius: .375rem; background: var(--primary); color: white; font-size: .875rem; font-weight: 500; line-height: 1.4; text-decoration: none; transition: background .2s, box-shadow .2s, opacity .2s; }
.button:hover { opacity: .9; }
.button .icon { width: 1rem; height: 1rem; }
.hero-button { background: var(--gradient); box-shadow: var(--shadow-elegant); }
.premium { background: linear-gradient(to right, var(--accent), var(--primary)); border-color: hsl(270 95% 75% / .2); }
.large { min-height: 2.75rem; padding: .5rem 2rem; font-size: 1.125rem; }
.large .icon { width: 1.25rem; height: 1.25rem; margin-left: .5rem; }
.ghost { background: transparent; color: var(--foreground); }
.ghost:hover { background: var(--accent); }
.outline { background: var(--background); color: var(--foreground); border-color: var(--border); }
.outline:hover { background: var(--muted); }
.full-width { width: 100%; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); }
.hero { position: relative; display: flex; min-height: 100vh; align-items: center; justify-content: center; overflow: hidden; padding: 3rem var(--space); }
.hero-background, .hero-background > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-background img { object-fit: cover; opacity: .2; }
.hero-background div { background: linear-gradient(to bottom right, var(--background), hsl(0 0% 100% / .95), hsl(0 0% 100% / .9)); }
.hero-content { position: relative; width: 100%; max-width: 56rem; text-align: center; }
.hero h1 { margin-bottom: 1.5rem; font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 700; line-height: 1; }
.hero h2 { margin-bottom: 2rem; font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 600; line-height: 1.12; }
.hero-intro { max-width: 42rem; margin: 0 auto 3rem; color: var(--muted-foreground); font-size: 1.25rem; line-height: 1.625; }
.hero-actions { display: flex; flex-direction: column; justify-content: center; gap: 1rem; margin-bottom: 4rem; }
.features { display: grid; gap: 2rem; max-width: 48rem; margin: auto; }
.feature { display: flex; flex-direction: column; align-items: center; padding: var(--space); background: hsl(0 0% 100% / .5); border-color: hsl(214.3 31.8% 91.4% / .5); backdrop-filter: blur(4px); }
.icon-tile { display: inline-flex; width: 3rem; height: 3rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: .5rem; background: var(--gradient); color: white; }
.icon-tile .icon { width: 1.5rem; height: 1.5rem; }
.feature .icon-tile { margin-bottom: 1rem; }
.feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.feature p { font-size: .875rem; color: var(--muted-foreground); }
.site-footer { border-top: 1px solid hsl(214.3 31.8% 91.4% / .5); padding: var(--space); background: var(--background); }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; max-width: 48rem; margin: auto; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; text-decoration: none; text-underline-offset: 4px; border-radius: .375rem; }
.site-footer a:hover, .site-footer a[aria-current="page"] { text-decoration: underline; }
.document-page { min-height: 100vh; padding: clamp(2.5rem, 5vw, 4rem) var(--space); background: linear-gradient(to bottom right, var(--background), var(--background), hsl(240 4.8% 95.9% / .5)); }
.document-container { max-width: 48rem; margin: auto; }
.back-home { margin-bottom: 2rem; }
.document { padding: clamp(1.5rem, 4vw, 2.5rem); border-color: hsl(214.3 31.8% 91.4% / .5); box-shadow: var(--shadow-soft); }
.document h1 { margin-bottom: 2rem; font-size: clamp(2.25rem, 6vw, 3rem); font-weight: 700; }
.document-copy { color: var(--muted-foreground); line-height: 1.625; overflow-wrap: anywhere; }
.document-copy > * + * { margin-top: 1.25rem; }
.document-copy h2, .document-copy h3, .document-copy h4 { color: var(--foreground); font-weight: 600; line-height: 1.4; }
.document-copy h2 { padding-top: 1.5rem; font-size: 1.5rem; }
.document-copy h3 { padding-top: .75rem; font-size: 1.25rem; }
.document-copy h4 { font-size: 1rem; }
.document-copy ul { padding-left: 1.5rem; margin-bottom: 0; }
.document-copy li + li { margin-top: .5rem; }
.document-copy .policy-toc { list-style: none; padding-left: 0; }
.document-copy [id] { scroll-margin-top: 1.5rem; }
.not-found { min-height: 100vh; display: grid; place-items: center; padding: var(--space); background: hsl(220 14% 96%); text-align: center; }
.not-found h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.not-found p { color: hsl(215 14% 34%); font-size: 1.25rem; margin-bottom: 1rem; }
.not-found a { color: hsl(217 91% 60%); }
.app-page { min-height: 100vh; padding: var(--space); background: linear-gradient(to bottom right, var(--background), hsl(240 4.8% 95.9% / .2)); }
.path-container { max-width: 56rem; margin: auto; }
#choose-path { display: flex; align-items: center; justify-content: center; }
.path-container > h2 { text-align: center; font-size: 1.875rem; margin-bottom: 1rem; }
.path-intro { text-align: center; color: var(--muted-foreground); font-size: 1.125rem; margin-bottom: 3rem; }
.path-grid { display: grid; gap: 2rem; }
.path-card { display: flex; flex-direction: column; align-items: center; padding: var(--space); border-width: 2px; color: var(--foreground); transition: border-color .2s, box-shadow .2s; }
.path-card:not(:disabled):hover { box-shadow: var(--shadow-elegant); border-color: hsl(243 75% 59% / .5); }
.path-card:disabled { opacity: 1; }
.round { width: 4rem; height: 4rem; border-radius: 50%; margin-bottom: 1rem; }
.round .icon { width: 2rem; height: 2rem; }
.path-card strong { font-size: 1.5rem; margin-bottom: .375rem; }
.path-description { color: var(--muted-foreground); margin-bottom: 1.5rem; }
.path-points { display: grid; gap: .5rem; text-align: left; font-size: .875rem; color: var(--muted-foreground); }
.path-points > span { display: flex; gap: .5rem; align-items: center; }
.path-points .icon { color: var(--success); width: 1rem; height: 1rem; }
.form-container { max-width: 42rem; margin: auto; }
.registration { padding: var(--space); box-shadow: var(--shadow-soft); }
.registration header { margin-bottom: 1.5rem; }
.registration h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: .5rem; }
.registration header p { color: var(--muted-foreground); font-size: .875rem; }
.registration h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.field + .field, .skills-field + .field, #portfolio-field { margin-top: 1rem; }
.field label, .skills-field legend { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-height: 2.5rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: .375rem; color: var(--foreground); background: var(--background); font-size: .875rem; }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); }
textarea { resize: vertical; }
.skills-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.skill-choice { position: relative; cursor: pointer; }
.skill-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.skill-choice span { display: block; height: 100%; border: 1px solid var(--border); padding: .5rem; border-radius: 999px; text-align: center; font-size: .75rem; font-weight: 600; }
.skill-choice input:checked + span { background: var(--primary); color: white; border-color: var(--primary); }
.skill-choice input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; }
.dashboard-container { max-width: 72rem; margin: auto; }
.dashboard-heading { margin-bottom: 2rem; }
.dashboard-heading h1 { font-size: 1.875rem; margin-bottom: .5rem; }
.dashboard-heading p, .match p, .project p, .opportunities p { color: var(--muted-foreground); }
.tabs { display: inline-flex; gap: .25rem; padding: .25rem; background: var(--muted); border-radius: .375rem; margin-bottom: 1.5rem; }
.tab { border: 0; background: transparent; padding: .375rem .75rem; color: var(--muted-foreground); border-radius: .25rem; font-size: .875rem; font-weight: 500; }
.tab[aria-pressed="true"] { background: var(--background); color: var(--foreground); box-shadow: 0 1px 3px hsl(0 0% 0% / .1); }
.matches { display: grid; gap: var(--space); }
.match, .project, .opportunities { padding: var(--space); }
.match:hover { box-shadow: var(--shadow-soft); }
.match-header, .project-heading { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.match-person { display: flex; gap: 1rem; align-items: flex-start; min-width: 0; }
.match-person > div { min-width: 0; }
.avatar { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.initials { display: grid; place-items: center; background: var(--muted); }
.match h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: .375rem; }
.metadata { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.metadata span, .match-facts span { display: flex; align-items: center; gap: .375rem; }
.metadata .icon, .match-facts .icon { width: 1rem; height: 1rem; }
.metadata .icon:first-child { flex-shrink: 0; }
.metadata span:first-child .icon { color: hsl(48 96% 53%); fill: hsl(48 96% 53%); }
.match-price { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.match-price strong { font-size: 1.5rem; color: var(--primary); }
.badge { display: inline-block; width: fit-content; border-radius: 999px; background: var(--muted); padding: .125rem .625rem; font-size: .75rem; font-weight: 600; }
.gradient-badge { color: white; background: var(--gradient); }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.match-facts { display: grid; gap: 1rem; font-size: .875rem; margin: 1rem 0; }
.match-facts .icon { color: var(--muted-foreground); }
.match-actions { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: 1rem; }
.match-actions .hero-button { flex: 1; }
.project h2, .opportunities h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: .5rem; }
.stats { display: grid; gap: var(--space); margin-bottom: var(--space); }
.stat { display: flex; align-items: center; gap: .75rem; padding: var(--space); }
.stat .icon-tile { width: 2.5rem; height: 2.5rem; }
.stat strong { display: block; font-size: 1.5rem; }
.stat div > span { display: block; font-size: .875rem; color: var(--muted-foreground); }
.stat-strength { padding: var(--space); display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.stat-strength > div { display: flex; justify-content: space-between; gap: .5rem; font-size: .875rem; }
.stat-strength span { color: var(--muted-foreground); }
progress { display: block; width: 100%; height: .5rem; border: 0; border-radius: 999px; overflow: hidden; background: var(--muted); accent-color: var(--primary); }
progress::-webkit-progress-bar { background: var(--muted); }
progress::-webkit-progress-value { background: var(--primary); }
progress::-moz-progress-bar { background: var(--primary); }
.opportunity { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: .5rem; margin-top: 1.5rem; }
.opportunity h3 { font-size: 1rem; font-weight: 500; }
.opportunity p { font-size: .875rem; margin-top: .5rem; }
.opportunity p span { margin: 0 .75rem; }
.notification { position: fixed; right: var(--space); bottom: var(--space); max-width: 26rem; width: calc(100% - 3rem); padding: var(--space); box-shadow: var(--shadow-elegant); z-index: 10; }
.notification strong { display: block; margin-bottom: .5rem; }
.notification p { font-size: .875rem; }
.profile-dialog { width: calc(100% - 3rem); max-width: 48rem; max-height: 85vh; padding: var(--space); color: var(--foreground); box-shadow: var(--shadow-elegant); }
.profile-dialog::backdrop { background: hsl(222 84% 5% / .5); }
.dialog-close { display: flex; margin-left: auto; font-size: 1.5rem; }
#profile-content p { color: var(--muted-foreground); margin: 1rem 0; }
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .site-footer nav { gap: 1.5rem; }
  .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .match-header, .project-heading { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .match-price { display: grid; justify-items: end; gap: .5rem; flex-shrink: 0; }
  .project-heading > .badge { flex-shrink: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .match-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opportunity { flex-direction: row; align-items: center; justify-content: space-between; }
  .opportunity > button { flex-shrink: 0; }
}
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
