:root {
  --ink: #102f37;
  --ink-2: #24464d;
  --paper: #f5f1e8;
  --paper-2: #fcfaf5;
  --white: #ffffff;
  --red: #e45745;
  --red-dark: #c84434;
  --gold: #dda24a;
  --teal: #2d8a7b;
  --line: rgba(16, 47, 55, 0.12);
  --muted: #6e7f82;
  --shadow: 0 18px 50px rgba(16, 47, 55, 0.1);
  --radius: 22px;
  --max: 1180px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper-2);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper-2); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.shell { min-height: 100vh; overflow: hidden; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.top-note { background: var(--ink); color: rgba(255,255,255,.76); font-size: 12px; letter-spacing: .04em; }
.top-note .container { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top-note strong { color: #fff; font-weight: 600; }
.header { position: sticky; z-index: 20; top: 0; background: rgba(252,250,245,.9); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; color: var(--paper-2); background: var(--ink); border-radius: 11px; font-size: 16px; position: relative; }
.brand-mark::after { content: "★"; position: absolute; font-size: 7px; color: var(--red); right: 4px; top: 3px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { border: 0; background: transparent; color: var(--ink-2); border-radius: 999px; padding: 10px 13px; font-size: 14px; font-weight: 600; }
.nav-link:hover, .nav-link.active { background: #e8e5dc; color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang-toggle button { width: 38px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.lang-toggle button.active { background: var(--ink); color: #fff; }
.account-button { border: 0; background: var(--red); color: #fff; border-radius: 999px; padding: 12px 17px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px rgba(228,87,69,.2); }
.account-button:hover { background: var(--red-dark); transform: translateY(-1px); }

.hero { position: relative; min-height: 590px; display: grid; place-items: center; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 700px; height: 700px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; right: -190px; top: -360px; box-shadow: 0 0 0 90px rgba(255,255,255,.02), 0 0 0 180px rgba(255,255,255,.018); }
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; background: var(--red); border-radius: 48% 52% 64% 36% / 38% 38% 62% 62%; left: -220px; bottom: -140px; transform: rotate(24deg); opacity: .88; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: end; padding-block: 94px 80px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .16em; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { max-width: 800px; margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(45px, 6.6vw, 78px); line-height: .99; letter-spacing: -.065em; }
.hero-copy > p { max-width: 690px; margin: 26px 0 30px; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.65; }
.hero-search { display: flex; max-width: 700px; padding: 7px; background: #fff; border-radius: 16px; box-shadow: 0 18px 60px rgba(0,0,0,.22); }
.search-field { flex: 1; display: flex; align-items: center; gap: 12px; padding-inline: 13px; color: #6e7f82; }
.search-field svg { width: 20px; height: 20px; flex: none; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; padding: 14px 20px; background: var(--red); color: #fff; font-weight: 700; transition: .2s ease; }
.primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 18px; background: #fff; color: var(--ink); font-weight: 700; }
.secondary:hover { border-color: rgba(16,47,55,.3); background: #faf8f2; }
.hero-stats { border-left: 1px solid rgba(255,255,255,.14); padding-left: 34px; }
.hero-stats .label { color: rgba(255,255,255,.46); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; }
.stat-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.11); }
.stat-line strong { font-family: "Manrope"; font-size: 32px; letter-spacing: -.05em; }
.stat-line span { color: rgba(255,255,255,.58); font-size: 13px; }

.directory { padding: 90px 0 110px; background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 30px; }
.section-head h2 { margin: 0; max-width: 600px; font-family: "Manrope"; font-size: clamp(32px, 4.5vw, 51px); line-height: 1.05; letter-spacing: -.055em; }
.section-head p { margin: 0 0 5px; max-width: 440px; color: var(--muted); line-height: 1.6; }
.filters { display: grid; grid-template-columns: minmax(250px, 1fr) 190px 210px 170px; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 38px rgba(16,47,55,.05); }
.filter-control { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: #f7f5ef; border-radius: 11px; }
.filter-control svg { width: 18px; color: var(--muted); }
.filter-control input, .filter-control select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; appearance: none; }
.filter-control select { cursor: pointer; }
.result-meta { display: flex; justify-content: space-between; align-items: center; margin: 25px 2px 16px; color: var(--muted); font-size: 13px; }
.clear-button { border: 0; background: transparent; color: var(--red-dark); font-weight: 700; padding: 4px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.event-card { position: relative; display: flex; flex-direction: column; min-height: 420px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .24s ease; }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.event-visual { position: relative; height: 155px; padding: 20px; overflow: hidden; color: #fff; background: var(--card-color); }
.event-visual::after { content: ""; position: absolute; width: 190px; height: 190px; right: -60px; bottom: -110px; border-radius: 50%; border: 35px solid rgba(255,255,255,.15); }
.event-mark { position: absolute; right: 23px; bottom: 10px; font: 800 78px/1 "Manrope"; letter-spacing: -.1em; color: rgba(255,255,255,.15); }
.card-badges { position: relative; z-index: 1; display: flex; gap: 7px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge.demo { color: var(--ink); background: #f7d984; }
.event-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.event-date { color: var(--red-dark); font-size: 12px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.event-card h3 { margin: 10px 0 10px; font-family: "Manrope"; font-size: 21px; line-height: 1.22; letter-spacing: -.035em; }
.event-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.event-place { display: flex; gap: 7px; align-items: center; margin-top: 13px; color: var(--ink-2); font-size: 13px; }
.event-place svg { width: 16px; height: 16px; color: var(--red); }
.event-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; }
.sector { padding: 7px 9px; border-radius: 8px; background: #eef1ee; color: var(--ink-2); font-size: 11px; font-weight: 700; }
.arrow-button { width: 39px; height: 39px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink); color: #fff; transition: .2s; }
.event-card:hover .arrow-button { background: var(--red); transform: translateX(2px); }
.empty { grid-column: 1/-1; display: grid; place-items: center; min-height: 260px; padding: 30px; border: 1px dashed rgba(16,47,55,.24); border-radius: var(--radius); color: var(--muted); text-align: center; }

.page-hero { padding: 48px 0 56px; color: #fff; background: var(--ink); position: relative; overflow: hidden; }
.page-hero::after { content:""; position: absolute; width: 360px; height: 360px; right: -90px; bottom: -210px; border: 50px solid rgba(255,255,255,.06); border-radius: 50%; }
.back-link { display: inline-flex; gap: 8px; align-items: center; border: 0; padding: 0; background: transparent; color: rgba(255,255,255,.66); font-weight: 600; }
.back-link:hover { color: #fff; }
.detail-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: end; margin-top: 54px; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 17px; }
.detail-meta .badge { background: rgba(255,255,255,.12); }
.page-hero h1 { max-width: 830px; margin: 0; font-family: "Manrope"; font-size: clamp(39px, 6vw, 68px); line-height: 1.01; letter-spacing: -.06em; }
.page-hero .lead { max-width: 760px; margin: 21px 0 0; color: rgba(255,255,255,.7); line-height: 1.65; font-size: 17px; }
.date-tile { min-width: 190px; padding: 23px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.date-tile strong { display: block; font: 800 22px/1.2 "Manrope"; }
.date-tile span { display: block; margin-top: 8px; color: rgba(255,255,255,.62); font-size: 13px; }
.detail-section { padding: 66px 0 100px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .7fr); gap: 58px; align-items: start; }
.detail-copy h2 { margin: 0 0 18px; font: 800 31px/1.15 "Manrope"; letter-spacing: -.045em; }
.detail-copy > p { margin: 0; max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 35px 0 46px; }
.fact { padding: 20px; border-radius: 15px; background: var(--paper); }
.fact strong { display: block; font: 800 25px/1 "Manrope"; }
.fact span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.event-sidebar { position: sticky; top: 105px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; box-shadow: var(--shadow); }
.sidebar-kicker { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.event-sidebar h3 { margin: 10px 0 18px; font: 800 24px/1.2 "Manrope"; letter-spacing: -.035em; }
.sidebar-line { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.sidebar-line span { color: var(--muted); }
.event-sidebar .primary { width: 100%; margin-top: 19px; }
.event-sidebar .official-link { width: 100%; margin-top: 9px; }
.privacy-note { display: flex; gap: 8px; margin: 13px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.35; }

.text-link { border: 0; background: transparent; color: var(--ink); font-weight: 700; padding: 4px; }
.text-link:hover { color: var(--red); }

.login-page { min-height: calc(100vh - 112px); display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.login-story { position: relative; overflow: hidden; padding: 80px max(40px, calc((100vw - var(--max))/2)); padding-right: 70px; background: var(--ink); color: #fff; }
.login-story::after { content:""; position:absolute; width:380px; height:380px; left:-180px; bottom:-200px; border: 60px solid var(--red); border-radius:50%; opacity:.8; }
.login-story h1 { max-width: 540px; margin: 0; font: 800 clamp(42px,5vw,67px)/1.02 "Manrope"; letter-spacing: -.06em; }
.login-story > p { max-width: 530px; color: rgba(255,255,255,.68); line-height: 1.65; font-size: 17px; }
.architecture-list { position: relative; z-index: 1; display: grid; gap: 9px; margin-top: 50px; max-width: 520px; }
.architecture-list div { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.82); font-size: 13px; }
.check { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; }
.login-form-wrap { display: grid; place-items: center; padding: 55px; }
.login-box { width: min(100%, 430px); }
.login-box h2 { margin: 0; font: 800 31px "Manrope"; letter-spacing: -.04em; }
.login-box > p { color: var(--muted); line-height: 1.55; }
.demo-strip { margin: 24px 0; padding: 14px; border-radius: 13px; background: var(--paper); color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.demo-strip strong { display: block; margin-bottom: 3px; color: var(--ink); }
.field { display: grid; gap: 7px; margin-top: 15px; }
.field label { font-size: 12px; font-weight: 700; }
.field input, .field select { height: 48px; width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; outline: 0; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,138,123,.1); }
.login-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.form-error { min-height: 20px; margin-top: 10px; color: var(--red-dark); font-size: 12px; }

.dashboard-page { min-height: calc(100vh - 112px); background: #f2f3ef; padding: 50px 0 90px; }
.dashboard-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.dashboard-head h1 { margin: 0; font: 800 41px "Manrope"; letter-spacing: -.05em; }
.dashboard-head p { margin: 9px 0 0; color: var(--muted); }
.dashboard-actions { display: flex; gap: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0; }
.metric-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin-top: 14px; font: 800 29px "Manrope"; letter-spacing: -.04em; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.panel { padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel h2 { margin: 0; font: 800 20px "Manrope"; letter-spacing: -.025em; }
.listing { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.listing:first-of-type { border-top: 0; }
.listing-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; color:#fff; font-size:11px; font-weight:800; }
.listing strong { display: block; font-size: 13px; }
.listing span { color: var(--muted); font-size: 11px; }
.status-pill { padding: 6px 8px; border-radius: 999px; background: #e1f1eb; color: #23725e; font-size: 10px; font-weight: 800; }
.status-pill.draft { background: #f4ead4; color: #936a26; }
.request { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.request:first-of-type { border-top: 0; }
.request-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e8ece8; font-size: 11px; font-weight: 800; }
.request strong { display: block; font-size: 12px; }
.request span { display: block; color: var(--muted); font-size: 10px; }
.request em { color: var(--red-dark); font-size: 10px; font-style: normal; font-weight: 700; }
.integration-panel { grid-column: 1/-1; margin-top: 1px; }
.integration-panel > p { color: var(--muted); max-width: 850px; font-size: 13px; line-height: 1.6; }
.integration-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }
.integration-item { padding: 17px; border-radius: 13px; background: var(--paper); }
.integration-item .icon-box { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: #fff; }
.integration-item strong { display: block; margin: 12px 0 5px; font-size: 13px; }
.integration-item span { color: var(--muted); font-size: 11px; line-height: 1.45; }

.modal-backdrop { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8,31,36,.68); backdrop-filter: blur(8px); animation: fade .16s ease; }
.modal { width: min(100%, 520px); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.28); animation: rise .22s ease; }
.modal-head { display:flex; justify-content:space-between; gap:20px; align-items:start; }
.modal h2 { margin: 0; font: 800 25px "Manrope"; letter-spacing: -.035em; }
.modal p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.close-modal { width: 34px; height: 34px; border:0; border-radius:50%; background:var(--paper); color:var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .full { grid-column: 1/-1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 390px; padding: 14px 18px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.2); font-size: 13px; transform: translateY(25px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.footer { padding: 38px 0; background: #09262d; color: rgba(255,255,255,.62); }
.footer .container { display:flex; justify-content:space-between; align-items:center; gap:30px; }
.footer .brand { color:#fff; }
.footer p { margin:5px 0 0; font-size:12px; }
.prototype-pill { padding: 8px 10px; border:1px solid rgba(255,255,255,.14); border-radius:999px; font-size:11px; }

@keyframes fade { from { opacity:0; } to { opacity:1; } }
@keyframes rise { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3,1fr); border-left:0; border-top:1px solid rgba(255,255,255,.14); padding: 15px 0 0; }
  .stat-line { display:block; border-bottom:0; }
  .stat-line span { display:block; margin-top:5px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .event-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .event-sidebar { position:static; }
  .login-page { grid-template-columns:1fr; }
  .login-story { padding:65px max(30px, calc((100vw - var(--max))/2)); }
  .login-form-wrap { padding:55px 30px 70px; }
  .dashboard-grid { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
  .container { width:min(var(--max), calc(100% - 26px)); }
  .top-note { display:none; }
  .nav { height:68px; }
  .brand { font-size:18px; }
  .brand-mark { width:34px; height:34px; }
  .nav-links { display:none; }
  .account-button { display:none; }
  .hero { min-height:auto; }
  .hero-grid { padding:72px 0 55px; }
  .hero h1 { font-size:45px; }
  .hero-copy > p { font-size:16px; }
  .hero-search { display:grid; gap:8px; }
  .search-field { min-height:48px; }
  .hero-stats { gap:6px; }
  .stat-line strong { font-size:25px; }
  .directory { padding:64px 0 80px; }
  .section-head { display:block; }
  .section-head p { margin-top:16px; }
  .filters { grid-template-columns:1fr; }
  .event-grid { grid-template-columns:1fr; }
  .detail-hero-grid { grid-template-columns:1fr; }
  .date-tile { min-width:0; }
  .detail-layout { gap:35px; }
  .facts, .profile-meta { grid-template-columns:1fr; }
  .profile-card { padding:24px; }
  .profile-head { align-items:flex-start; }
  .metric-grid { grid-template-columns:repeat(2,1fr); }
  .dashboard-head { display:block; }
  .dashboard-actions { margin-top:20px; }
  .integration-grid { grid-template-columns:1fr; }
  .footer .container { display:block; }
  .prototype-pill { display:inline-flex; margin-top:20px; }
}
@media (max-width: 460px) {
  .hero h1 { font-size:39px; }
  .hero-stats { grid-template-columns:1fr 1fr 1fr; }
  .stat-line strong { font-size:21px; }
  .stat-line span { font-size:11px; }
  .form-grid, .login-buttons { grid-template-columns:1fr; }
  .metric-grid { grid-template-columns:1fr 1fr; }
  .dashboard-actions { display:grid; }
  .modal-actions { display:grid; }
  .modal-actions button { width:100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
