@font-face {
  font-family: 'Geom';
  src: url('../fonts/Geom-RegularVariable.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ebeff5;
  --surface: #f8fbff;
  --surface-2: #eef3fb;
  --border: #cfd8e4;
  --border-strong: #bcc8d8;
  --text: #162134;
  --text-soft: #314258;
  --muted: #60728a;
  --oa-purple: #30024b;
  --oa-magenta: #ec208b;
  --oa-cyan: #00a5d8;
  --ring: rgba(236, 32, 139, 0.22);
  --pill: 999px;
  --r-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --body: 'Geom', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html[data-theme='dark'] {
  --bg: #110020;
  --surface: #1b0035;
  --surface-2: #260048;
  --border: rgba(236, 32, 139, 0.22);
  --border-strong: rgba(236, 32, 139, 0.34);
  --text: #f8ecff;
  --text-soft: #e6d7f4;
  --muted: #c9b8dd;
  --ring: rgba(255, 128, 205, 0.28);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(236, 32, 139, 0.14), transparent 34%),
    radial-gradient(circle at 92% 4%, rgba(0, 165, 216, 0.13), transparent 30%),
    var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

.ambient {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}

.ambient::before {
  content: '';
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 84% 26%, rgba(236, 32, 139, 0.18), transparent 22%),
    radial-gradient(circle at 18% 60%, rgba(48, 2, 75, 0.16), transparent 20%),
    radial-gradient(circle at 76% 88%, rgba(236, 32, 139, 0.12), transparent 20%);
  filter: blur(2px);
}

.ambient::after {
  content: '';
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(145deg, rgba(236, 32, 139, 0.3), rgba(48, 2, 75, 0.3)),
    url('../patterns-2026/prancheta-16.png');
  background-position: center;
  background-size: 112% 112%;
  background-repeat: no-repeat;
  opacity: 0.9;
}

html[data-theme='dark'] .ambient::after {
  background:
    linear-gradient(145deg, rgba(17, 0, 32, 0.62), rgba(48, 2, 75, 0.5), rgba(236, 32, 139, 0.28)),
    url('../patterns-2026/prancheta-16.png');
  background-position: center;
  background-size: 112% 112%;
  background-repeat: no-repeat;
  opacity: 0.95;
}


img, svg {
  display: block;
}

button, a {
  font: inherit;
}

.app {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.35rem 0 3rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
}

.hero-brand {
  margin-bottom: 0.74rem;
  padding: 0.76rem 1rem;
  border-left: 6px solid var(--oa-purple);
  background:
    linear-gradient(130deg, rgba(48, 2, 75, 0.1), rgba(236, 32, 139, 0.16) 58%, rgba(0, 165, 216, 0.12)),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-logo {
  width: min(470px, 72vw);
  max-height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(48, 2, 75, 0.28));
}

.hero {
  position: relative;
  padding: 1.35rem 1.4rem;
  border-left: 6px solid var(--oa-magenta);
  background:
    linear-gradient(130deg, rgba(48, 2, 75, 0.08), rgba(236, 32, 139, 0.14) 58%, rgba(0, 165, 216, 0.1)),
    var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -70px;
  top: -74px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--oa-magenta), var(--oa-cyan), var(--oa-purple), var(--oa-magenta));
  opacity: 0.18;
  pointer-events: none;
}

.hero-main {
  flex: 1;
  min-width: 0;
}

.hero-main--centered {
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-controls, .hero-socials {
  display: flex;
  align-items: center;
}

.hero-controls {
  gap: 0.65rem;
  z-index: 1;
}

.hero-socials {
  gap: 0.34rem;
}

.hero-social-link {
  width: 1.92rem;
  height: 1.92rem;
  border: 1px solid color-mix(in srgb, var(--oa-purple) 24%, var(--border));
  border-radius: var(--pill);
  background: #f7f2ff;
  color: #6f4e99;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.hero-social-link:hover {
  border-color: rgba(236, 32, 139, 0.62);
  color: var(--oa-magenta);
  transform: translateY(-1px);
}

.hero-social-link svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hero-social-link--youtube svg {
  width: 1.08rem;
  height: 1.08rem;
}

.theme-toggle-btn {
  width: 2.9rem;
  height: 1.62rem;
  border: 1px solid color-mix(in srgb, var(--oa-purple) 38%, var(--border));
  border-radius: var(--pill);
  background: linear-gradient(180deg, #fff, #f0edf7);
  cursor: pointer;
  padding: 0.12rem;
  box-shadow: 0 4px 11px rgba(48, 2, 75, 0.16);
}

.theme-toggle-btn:focus-visible, .primary-btn:focus-visible, .site-tabs__link:focus-visible, .hero-social-link:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.theme-toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #ede8f8;
}

.theme-toggle-thumb {
  position: absolute;
  top: 0.08rem;
  left: 0.08rem;
  width: calc((100% - 0.16rem) / 2);
  height: calc(100% - 0.16rem);
  border-radius: var(--pill);
  background: #fff;
  border: 1px solid rgba(48, 2, 75, 0.24);
  box-shadow: 0 2px 8px rgba(48, 2, 75, 0.2);
  transition: transform 0.18s ease;
  z-index: 1;
}

.theme-toggle-icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #30024b;
}

.theme-toggle-icon svg {
  width: 0.78rem;
  height: 0.78rem;
}

.theme-toggle-btn[aria-pressed='true'] {
  background: linear-gradient(180deg, #2b0050, #1c0035);
}

.theme-toggle-btn[aria-pressed='true'] .theme-toggle-track {
  background: #1b0034;
}

.theme-toggle-btn[aria-pressed='true'] .theme-toggle-thumb {
  transform: translateX(100%);
  background: var(--oa-magenta);
}

.site-tabs {
  margin-top: 0.72rem;
  padding: 0.42rem;
  display: flex;
  align-items: center;
  gap: 0.36rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-tabs__link {
  min-height: 36px;
  padding: 0.42rem 0.74rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  border: 1px solid color-mix(in srgb, var(--oa-purple) 24%, var(--border));
  background: var(--surface-2);
  color: #493d63;
  font-size: 0.64rem;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-tabs__link:hover, .site-tabs__link--active {
  border-color: rgba(236, 32, 139, 0.58);
  background: rgba(236, 32, 139, 0.16);
  color: var(--oa-magenta);
}

.site-tabs__beta-badge {
  margin-left: 0.28rem;
  padding: 0.16rem 0.36rem;
  border-radius: var(--pill);
  border: 1px solid rgba(236, 32, 139, 0.62);
  background: rgba(236, 32, 139, 0.14);
  color: #c61676;
}

.updates-feed {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.78rem;
}

.feed-post {
  padding: 1rem;
  border-color: color-mix(in srgb, var(--oa-purple) 24%, var(--border));
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)), var(--surface);
}

.feed-post-head {
  margin-bottom: 0.7rem;
}

.feed-post-meta {
  display: grid;
  gap: 0.28rem;
}

.feed-post-tag {
  width: fit-content;
  border-radius: var(--pill);
  border: 1px solid rgba(236, 32, 139, 0.42);
  background: rgba(236, 32, 139, 0.13);
  color: #9a0b5b;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.16rem 0.46rem;
}

.feed-post h3 {
  margin: 0;
  font-size: 1.06rem;
}

.feed-post-info {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.feed-post-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 0.78rem;
  align-items: stretch;
}

.feed-post-cover {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--oa-purple) 24%, var(--border));
  background: #19012f;
  min-height: 190px;
}

.feed-post-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(20, 0, 36, 0.66));
  pointer-events: none;
}

.feed-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-post-play {
  position: absolute;
  left: 0.58rem;
  bottom: 0.55rem;
  z-index: 1;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(15, 0, 30, 0.68);
  color: #fff;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
}

.feed-post-body {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.feed-post-body p {
  margin: 0;
  color: var(--text-soft);
}

.feed-post-actions, .feed-more-actions {
  display: flex;
  margin-top: 0.12rem;
}

.feed-more-actions {
  justify-content: center;
  margin-top: 0.9rem;
}

.primary-btn {
  border-radius: var(--pill);
  padding: 0.52rem 0.86rem;
  border: 1px solid rgba(236, 32, 139, 0.55);
  background: rgba(236, 32, 139, 0.18);
  color: #9f0c5e;
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.primary-btn:hover {
  background: rgba(236, 32, 139, 0.25);
}

html[data-theme='dark'] .card,
html[data-theme='dark'] .site-tabs,
html[data-theme='dark'] .feed-post {
  border-color: var(--border-strong);
  background: linear-gradient(160deg, rgba(34, 0, 65, 0.92), rgba(23, 0, 44, 0.9)), var(--surface);
}

html[data-theme='dark'] .hero-social-link,
html[data-theme='dark'] .site-tabs__link {
  border-color: rgba(236, 32, 139, 0.28);
  background: #220043;
  color: #ecdefe;
}

html[data-theme='dark'] .site-tabs__link:hover,
html[data-theme='dark'] .site-tabs__link--active,
html[data-theme='dark'] .primary-btn {
  border-color: rgba(236, 32, 139, 0.8);
  background: rgba(236, 32, 139, 0.3);
  color: #ffeafd;
}

html[data-theme='dark'] .feed-post-tag {
  border-color: rgba(236, 32, 139, 0.62);
  background: rgba(236, 32, 139, 0.26);
  color: #ffd8f2;
}

html[data-theme='dark'] .feed-post-cover {
  border-color: rgba(236, 32, 139, 0.26);
}

@media (max-width: 740px) {
  .ambient::after,
  html[data-theme='dark'] .ambient::after {
    inset: 0;
    background-size: cover;
    background-position: center top;
  }

  .app {
    width: min(100% - 1rem, 1040px);
    padding-top: 0.7rem;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .hero-main--centered {
    text-align: left;
  }

  .hero-controls {
    width: 100%;
    justify-content: space-between;
  }

  .site-tabs {
    padding: 0.34rem;
  }

  .site-tabs__link {
    font-size: 0.58rem;
    padding: 0.36rem 0.6rem;
  }

  .feed-post-layout {
    grid-template-columns: 1fr;
  }

  .feed-post-cover {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: revealUp 0.22s ease both;
  }

  @keyframes revealUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
