@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --axora-purple: #43208f;
  --axora-violet: #7357f6;
  --axora-violet-soft: #eeeafd;
  --axora-anthracite: #24222b;
  --axora-text: #34313d;
  --axora-muted: #777582;
  --axora-bg: #f7f7fa;
  --axora-surface: #ffffff;
  --axora-border: #e6e3eb;
  --axora-green: #35b89a;
  --axora-orange: #ff9d5c;
  --axora-danger: #d94b63;
  --shadow-sm: 0 8px 24px rgba(36, 34, 43, .06);
  --shadow-md: 0 16px 40px rgba(67, 32, 143, .12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --content-width: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--axora-text);
  background: var(--axora-bg);
  font-family: 'Barlow', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 9999; padding: 10px 14px; color: #fff; background: var(--axora-purple); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.app-header {
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(36,34,43,.97);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(calc(100% - 48px), var(--content-width));
  min-height: 72px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark { font-size: 25px; font-weight: 700; letter-spacing: .09em; line-height: 1; }
.brand-mark .x { color: var(--axora-violet); }
.brand-divider { width: 1px; height: 26px; background: rgba(255,255,255,.17); }
.brand-context { color: #cbc8d2; font-size: 13px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.project-chip, .user-menu {
  min-height: 42px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  color: #fff; background: rgba(255,255,255,.055); display: flex; align-items: center;
}
.project-chip { padding: 0 16px; gap: 8px; font-size: 13px; }
.project-chip strong { font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--axora-green); box-shadow: 0 0 0 4px rgba(53,184,154,.12); }
.user-menu { padding: 5px 8px 5px 5px; gap: 10px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--axora-violet); font-size: 12px; font-weight: 700; }
.user-copy { display: grid; line-height: 1.05; padding-right: 8px; }
.user-copy strong { font-size: 13px; font-weight: 600; }
.user-copy span { margin-top: 4px; color: #b8b5c2; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.page-shell { width: min(calc(100% - 48px), var(--content-width)); margin: 0 auto; padding: 32px 0 56px; }
.hero {
  position: relative; overflow: hidden; min-height: 244px; padding: 38px 42px;
  border-radius: 22px; color: #fff; background: var(--axora-anthracite); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: center; gap: 36px;
}
.hero::before { content: ''; position: absolute; width: 460px; height: 460px; right: -160px; top: -230px; border-radius: 50%; background: radial-gradient(circle, rgba(115,87,246,.55), rgba(67,32,143,0) 66%); }
.hero::after { content: ''; position: absolute; width: 250px; height: 250px; right: 150px; bottom: -170px; border-radius: 50%; border: 55px solid rgba(115,87,246,.11); }
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: #c8c4d0; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 800px; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -.035em; }
.hero h1 span { color: #9d8cff; }
.hero-description { max-width: 740px; margin: 17px 0 0; color: #d4d0db; font-size: 16px; line-height: 1.55; }
.hero-visual { display: grid; gap: 10px; justify-self: end; width: min(100%, 340px); }
.hero-metric { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.055); }
.hero-metric span { color: #cbc8d2; font-size: 12px; }
.hero-metric strong { font-size: 15px; color: #fff; }
.hero-metric.accent strong { color: #a698ff; }

.section-heading { margin: 34px 0 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; color: var(--axora-anthracite); font-size: 24px; line-height: 1.1; }
.section-heading p { margin: 6px 0 0; color: var(--axora-muted); font-size: 14px; }
.section-kicker { color: var(--axora-purple); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

.actions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.action-card {
  position: relative; min-height: 235px; padding: 22px; border: 1px solid var(--axora-border); border-radius: var(--radius-md);
  background: var(--axora-surface); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.action-card:hover { transform: translateY(-3px); border-color: rgba(115,87,246,.45); box-shadow: var(--shadow-md); }
.action-card:focus-within { outline: 3px solid rgba(115,87,246,.22); outline-offset: 2px; }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.icon-box { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--axora-purple); background: var(--axora-violet-soft); }
.icon-box svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card-number { color: #aaa6b2; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.card-copy { margin: 18px 0 20px; }
.card-copy h3 { margin: 0 0 8px; color: var(--axora-anthracite); font-size: 17px; line-height: 1.2; }
.card-copy p { margin: 0; color: var(--axora-muted); font-size: 13.5px; line-height: 1.5; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--axora-purple); text-decoration: none; font-size: 13px; font-weight: 700; }
.card-link::after { content: '→'; font-size: 19px; transition: transform .18s ease; }
.card-link:hover::after { transform: translateX(4px); }
.badge { padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.badge-green { color: #167a66; background: #e3f7f2; }
.badge-orange { color: #a45119; background: #fff0e5; }
.badge-purple { color: var(--axora-purple); background: var(--axora-violet-soft); }

.app-footer { border-top: 1px solid var(--axora-border); background: #fff; }
.footer-inner { width: min(calc(100% - 48px), var(--content-width)); min-height: 67px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--axora-muted); font-size: 12px; }
.footer-brand { color: var(--axora-anthracite); font-weight: 700; letter-spacing: .08em; }

@media (max-width: 1180px) { .actions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .header-inner, .page-shell, .footer-inner { width: min(calc(100% - 32px), var(--content-width)); }
  .brand-context, .project-chip { display: none; }
  .hero { grid-template-columns: 1fr; padding: 32px; }
  .hero-visual { width: 100%; justify-self: stretch; grid-template-columns: repeat(3, 1fr); }
  .actions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .header-inner { min-height: 64px; }
  .brand-divider, .user-copy { display: none; }
  .page-shell { padding-top: 20px; }
  .hero { min-height: 0; padding: 26px 22px; border-radius: 16px; }
  .hero-description { font-size: 14px; }
  .hero-visual { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .actions-grid { grid-template-columns: 1fr; }
  .action-card { min-height: 210px; }
  .footer-inner { padding: 16px 0; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
