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

:root {
  --accent:       #0d406b;
  --bg:           #e6ecf2;
  --surface:      #e6ecf2;
  --amber:        #c89664;
  --text:         #0d2236;
  --text-soft:    #51667a;
  --text-dim:     #8397aa;
  --hairline:     rgba(13,64,107,0.10);
  --neo-light:    rgba(255,255,255,0.92);
  --neo-dark:     rgba(13,64,107,0.16);

  --success:      #2e8c5f;
  --success-dim:  rgba(46,140,95,0.12);
  --warning:      #c07820;
  --warning-dim:  rgba(192,120,32,0.12);
  --error:        #c0392b;
  --error-dim:    rgba(192,57,43,0.12);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-sans:    'Inter', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   28px;
  --r-xl:   40px;
  --r-pill: 999px;

  --content-max-width: 1100px;
  --nav-height: 64px;

  --neo-shadow:        10px 10px 24px var(--neo-dark), -10px -10px 24px var(--neo-light);
  --neo-inset:         inset 4px 4px 10px var(--neo-dark), inset -4px -4px 10px var(--neo-light);
  --neo-btn:           6px 6px 14px var(--neo-dark), -6px -6px 14px var(--neo-light);
  --neo-pressed:       inset 3px 3px 8px var(--neo-dark), inset -2px -2px 6px var(--neo-light);

  --transition: 0.35s cubic-bezier(.2,.7,.2,1);
  --transition-slow: 0.45s cubic-bezier(.2,.7,.2,1);

  --border-radius:    var(--r-md);
  --border-radius-sm: var(--r-sm);
  --border-radius-xs: 8px;
  --border:           var(--hairline);
  --border-muted:     var(--hairline);

  --bg-primary:   var(--bg);
  --bg-surface:   var(--surface);
  --bg-elevated:  rgba(255,255,255,0.6);
  --bg-hover:     rgba(255,255,255,0.8);
  --text-primary:   var(--text);
  --text-secondary: var(--text-soft);
  --text-muted:     var(--text-dim);
  --accent-hover:   #1a5a96;
  --accent-dim:     rgba(13,64,107,0.08);
  --shadow-sm:  2px 2px 8px var(--neo-dark), -2px -2px 8px var(--neo-light);
  --shadow-md:  var(--neo-shadow);
  --shadow-lg:  14px 14px 32px var(--neo-dark), -14px -14px 32px var(--neo-light);
  --font-body:  var(--font-sans);
}

[data-theme="dark"] {
  --bg:        #0f1922;
  --surface:   #0f1922;
  --text:      #e6ecf2;
  --text-soft: #8397aa;
  --text-dim:  #51667a;
  --accent:    #4a90c8;
  --neo-light: rgba(255,255,255,0.04);
  --neo-dark:  rgba(0,0,0,0.35);
  --hairline:  rgba(74,144,200,0.12);

  --bg-primary:   #0f1922;
  --bg-surface:   #0f1922;
  --bg-elevated:  #162130;
  --bg-hover:     #1d2d3e;
  --text-primary:   #e6ecf2;
  --text-secondary: #8397aa;
  --text-muted:     #51667a;
  --accent-hover:   #6aaee0;
  --accent-dim:     rgba(74,144,200,0.10);
  --border:         rgba(74,144,200,0.12);
  --border-muted:   rgba(255,255,255,0.06);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }

.font-display  { font-family: var(--font-display); }
.font-body     { font-family: var(--font-sans); }
.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }

.text-primary   { color: var(--text); }
.text-secondary { color: var(--text-soft); }
.text-muted     { color: var(--text-dim); }
.text-accent    { color: var(--accent); }
.text-success   { color: var(--success); }
.text-warning   { color: var(--warning); }
.text-error     { color: var(--error); }

.uppercase     { text-transform: uppercase; }
.tracking-wide  { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.15em; }

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
}

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.grid   { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.nav {
  position: fixed;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--space-8));
  max-width: 1200px;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--r-pill);
  box-shadow: var(--neo-shadow);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-logo-text .dot {
  color: var(--amber);
}

.nav-logo-sub {
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.main-content {
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-16);
  min-height: 100vh;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }
