:root {
  color-scheme: dark;
  --bg: #0a0816;
  --text: #f3f0ff;
  --muted: #bdb7d6;
  --accent: #b9a6ff;
  --accent-2: #86b2ff;
  --line: rgb(255 255 255 / 14%);
  --glass: rgb(16 12 34 / 58%);
  --glass-strong: rgb(16 12 34 / 78%);
  --mono: "DM Mono", ui-monospace, monospace;
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #6d58c9; color: #fff; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
main:focus { outline: none; }

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }

/* Fundo */
.scene {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: #0a0816 url("assets/night-lake.png") center / cover no-repeat;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 35%, rgb(10 8 22 / 10%) 0%, rgb(10 8 22 / 55%) 100%),
    linear-gradient(180deg, rgb(10 8 22 / 30%), rgb(10 8 22 / 55%));
}

.skip-link {
  position: fixed; z-index: 50; top: 12px; left: 12px;
  padding: 12px 16px; border: 1px solid var(--accent); border-radius: 10px;
  background: #100c22; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Vidro */
.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass-strong);
  box-shadow: 0 20px 60px rgb(0 0 0 / 32%), inset 0 1px 0 rgb(255 255 255 / 6%);
}
@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .glass { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); }
}

/* Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgb(12 9 26 / 82%);
}
@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .site-header { background: rgb(12 9 26 / 55%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
.header-inner, .footer-inner, main { width: min(1120px, 100% - 40px); margin-inline: auto; }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.brand img { display: block; border-radius: 10px; object-fit: contain; }
.brand .dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 999px;
  color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgb(255 255 255 / 7%); }
.nav a[aria-current] { color: var(--text); background: rgb(185 166 255 / 16%); }
.nav a.nav-cta { margin-left: 8px; padding: 9px 18px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #140f2c; font-weight: 700; }
.nav a.nav-cta:hover { filter: brightness(1.08); }

.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / 5%); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Layout */
main { position: relative; z-index: 1; padding-bottom: 24px; }
.section { padding: 56px 0 0; }

.section-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-family: var(--mono); white-space: nowrap; }
.section-line { flex: 1; height: 1px; background: var(--line); }

.eyebrow { margin: 0 0 12px; color: var(--accent); font: 500 13px/1.5 var(--mono); letter-spacing: 1.5px; }

h1 { margin: 0; font-size: clamp(40px, 7vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -2px; text-shadow: 0 0 40px rgb(185 166 255 / 25%); }
h2 { font-weight: 700; letter-spacing: -.5px; }
h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.2px; }
.grad { background: linear-gradient(110deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; padding: 64px 0 8px; }
.hero-simple { grid-template-columns: 1fr; padding-top: 72px; max-width: 760px; }
.lead { margin: 20px 0 0; max-width: 540px; color: #e2defa; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.actions.center { justify-content: center; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 600; text-align: center;
  transition: transform .2s, filter .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: transparent; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #140f2c; }
.button-primary:hover { filter: brightness(1.08); }
.button-ghost { background: rgb(255 255 255 / 6%); }
.button-ghost:hover { border-color: rgb(255 255 255 / 40%); background: rgb(255 255 255 / 11%); }

.hero-photo { position: relative; justify-self: center; width: min(100%, 360px); margin: 0; padding: 12px; }
.hero-photo > img:first-child { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.hero-photo figcaption { padding: 10px 4px 2px; color: var(--muted); font: 11px/1.4 var(--mono); text-align: right; }
.hero-avatar {
  position: absolute; right: -14px; top: -18px; width: 88px; height: 88px;
  object-fit: cover; border: 4px solid #120e26; border-radius: 50%; background: #120e26;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 25%), 0 10px 30px rgb(0 0 0 / 45%);
}

/* Sobre */
.about { padding: 32px 36px; }
.about p { margin: 0 0 16px; max-width: 760px; color: #e4e0fa; font-size: 18px; line-height: 1.75; }
.about p:last-child { margin-bottom: 0; }
.about strong { color: #fff; }

.card-grid { display: grid; gap: 18px; margin-top: 18px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-heading + .card-grid { margin-top: 0; }
.card { position: relative; padding: 26px; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / 30%); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card-tag { display: inline-block; margin-bottom: 14px; color: var(--accent); font: 500 12px/1 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; }
.card-badge { display: inline-block; margin-bottom: 14px; padding: 5px 11px; border-radius: 999px; background: rgb(185 166 255 / 18%); color: #d9ccff; font: 500 11px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.card.featured { border-color: rgb(185 166 255 / 55%); background: linear-gradient(160deg, rgb(120 96 220 / 26%), var(--glass)); box-shadow: 0 20px 60px rgb(80 60 180 / 25%), inset 0 1px 0 rgb(255 255 255 / 10%); }

/* Redes (discretas) */
.section-intro { margin: 0 0 16px; max-width: 560px; color: var(--muted); font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 6%); font-size: 15px; font-weight: 500; transition: border-color .2s, background .2s; }
.chip small { color: var(--muted); font: 11px var(--mono); }
.chip:hover { border-color: rgb(185 166 255 / 60%); background: rgb(255 255 255 / 11%); }

/* Links */
.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.subheading { display: flex; align-items: center; gap: 8px; margin: 36px 0 14px; color: #d9d3f4; font: 500 13px/1.5 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; }
.profile-link { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; border-radius: 18px; transition: transform .2s, border-color .2s, background .2s; }
.profile-link:hover { transform: translateY(-2px); border-color: rgb(185 166 255 / 60%); background: rgb(34 26 70 / 62%); }
.link-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / 6%); }
.link-copy { display: grid; gap: 2px; min-width: 0; }
.link-copy strong { font-size: 16px; font-weight: 600; }
.link-copy > span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.link-arrow { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }
.profile-link:hover .link-arrow { color: var(--text); }

/* Discord */
.discord-section { margin-top: 12px; }
.discord-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.discord-head .subheading { margin-bottom: 14px; }
.discord-actions { display: flex; align-items: center; gap: 10px; margin-top: 36px; margin-bottom: 14px; }
.discord-open { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 6%); color: var(--text); font: 12px var(--mono); transition: border-color .2s, background .2s; }
.discord-open:hover { border-color: rgb(255 255 255 / 40%); background: rgb(255 255 255 / 11%); }
.discord-refresh { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgb(255 255 255 / 6%); color: var(--muted); cursor: pointer; }
.discord-refresh .icon { width: 15px; height: 15px; }
.discord-refresh:hover { color: var(--text); border-color: rgb(255 255 255 / 40%); }
.discord-refresh:disabled { opacity: .45; cursor: wait; }

.discord-user-card { max-width: 560px; overflow: hidden; border-radius: 20px; }
.discord-card-banner { height: 72px; background: linear-gradient(120deg, #3b2f7a, #1d2a5c) center / cover; border-bottom: 1px solid var(--line); }
.discord-card-banner[data-has-banner="true"] { height: auto; aspect-ratio: 5 / 2; }
.discord-card-content { padding: 0 22px 20px; }
.discord-user-heading { display: flex; align-items: flex-start; gap: 16px; margin-top: -24px; }
.discord-avatar-wrap { position: relative; flex: 0 0 64px; width: 64px; height: 64px; }
.discord-avatar, .discord-avatar-placeholder { position: absolute; inset: 0; display: grid; place-items: center; width: 64px; height: 64px; object-fit: cover; border: 4px solid #120e26; border-radius: 50%; background: #1b1537; }
.discord-avatar-placeholder .icon { width: 30px; height: 30px; }
.discord-avatar-decoration { position: absolute; z-index: 1; top: -8px; left: -8px; width: 80px; height: 80px; object-fit: contain; pointer-events: none; }
.discord-identity { flex: 1; min-width: 0; padding-top: 34px; }
.discord-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.discord-name-row h4 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.discord-username { margin: 4px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.discord-guild-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: rgb(255 255 255 / 8%); font: 10px var(--mono); }
.discord-guild-tag img { display: block; width: 16px; height: 16px; object-fit: contain; }
.discord-status { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.discord-status-dot { position: relative; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #8d8aa3; }
.discord-status[data-status="online"] .discord-status-dot { background: #6dd39a; box-shadow: 0 0 9px #6dd39a66; }
.discord-status[data-status="idle"] .discord-status-dot { background: #f0ba65; }
.discord-status[data-status="dnd"] .discord-status-dot { background: #f27883; }
.discord-status[data-status="unknown"] .discord-status-dot { display: none; }
.discord-badges-heading { display: flex; justify-content: space-between; margin: 18px 0 8px; color: var(--muted); font: 11px var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.discord-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.discord-badge-button { display: grid; place-items: center; min-width: 38px; min-height: 38px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: rgb(255 255 255 / 6%); color: var(--text); cursor: pointer; }
.discord-badge-button[aria-pressed="true"], .discord-badge-button:hover { border-color: var(--accent); }
.discord-badge-text { padding-inline: 10px; font: 11px var(--mono); }
.discord-badge-detail { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.discord-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.discord-note:empty { display: none; }

/* Guih Inc., citação, contato */
.inc { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 36px; }
.inc h2 { margin: 0 0 8px; font-size: 28px; }
.inc p:not(.eyebrow) { margin: 0; max-width: 560px; color: #e0dcf6; font-size: 17px; }
.inc .button { flex-shrink: 0; }

.quote { margin: 0; padding: 40px 44px; text-align: center; }
.quote blockquote { margin: 0; }
.quote p { margin: 0 auto; max-width: 780px; font-size: clamp(19px, 2.6vw, 26px); font-weight: 500; line-height: 1.55; letter-spacing: -.3px; }
.quote figcaption { margin-top: 18px; color: var(--accent); font: 500 14px var(--mono); }

.contact { padding: 48px 32px; text-align: center; }
.contact h2 { margin: 0; font-size: clamp(30px, 5vw, 44px); letter-spacing: -1px; }
.contact p { margin: 12px auto 0; max-width: 480px; color: var(--muted); font-size: 17px; }

/* Estudos */
.current-study { padding: 32px 36px; border-color: rgb(185 166 255 / 50%); background: linear-gradient(160deg, rgb(120 96 220 / 24%), var(--glass)); }
.current-study h3 { margin-top: 14px; font-size: 26px; }
.current-study p { margin: 0; color: #e0dcf6; font-size: 17px; }
.study-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgb(109 211 154 / 16%); color: #9be8bf; font: 500 12px/1 var(--mono); letter-spacing: .5px; }
.study-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6dd39a; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tags li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 6%); font: 12px var(--mono); }
.summary { max-width: 720px; margin: 32px auto 0; color: #dcd7f3; font-size: 18px; line-height: 1.7; text-align: center; }

/* Rodapé */
.site-footer { position: relative; z-index: 1; margin-top: 64px; border-top: 1px solid var(--line); background: rgb(10 8 22 / 78%); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; padding: 26px 0; color: var(--muted); font-size: 14px; }
.footer-inner p { margin: 0; }
.footer-inner .brand { font-size: 18px; color: var(--text); }
.footer-inner a:not(.brand):hover { color: var(--text); }
.footer-inner p a, .hero-photo figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.footer-inner p a:hover, .hero-photo figcaption a:hover { color: var(--text); }

/* Responsivo */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; }
  .hero-photo { width: min(100%, 320px); }
  .card-grid.three { grid-template-columns: 1fr; }
  .inc { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: calc(100% + 8px); right: 0; left: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border: 1px solid var(--line); border-radius: 18px; background: rgb(14 10 30 / 96%);
    box-shadow: 0 20px 50px rgb(0 0 0 / 50%);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 16px; border-radius: 12px; font-size: 16px; }
  .nav a.nav-cta { margin: 6px 0 0; justify-content: center; }
}

@media (max-width: 640px) {
  .header-inner, .footer-inner, main { width: min(1120px, 100% - 32px); }
  .section { padding-top: 44px; }
  .links { grid-template-columns: 1fr; }
  .about, .inc, .current-study { padding: 24px 22px; }
  .about p { font-size: 17px; }
  .quote { padding: 30px 22px; }
  .contact { padding: 36px 20px; }
  .actions .button { flex: 1 1 100%; }
  .discord-card-content { padding-inline: 16px; }
  .discord-user-heading { gap: 12px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-avatar { right: -6px; width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .card:hover, .profile-link:hover { transform: none; }
}
