:root {
  --bg: #080710;
  --card: #0f1724;
  --muted: #9aa4b2;
  --accent1: #3186ff;
  --accent2: #34a853;
  --accent3: #ffd314;
  --accent4: #ff4641;
  --glass: rgba(255,255,255,0.03);
  --glass-2: rgba(255,255,255,0.02);
  --gradient: linear-gradient(45deg, var(--accent1), var(--accent2), var(--accent3), var(--accent4));
  font-size: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, 'Segoe UI', Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(1500px 800px at 10% 10%, rgba(49,134,255,0.08), transparent),
              radial-gradient(1200px 600px at 90% 90%, rgba(52,168,83,0.06), transparent),
              linear-gradient(180deg, #01020a 0%, #061022 100%);
  background-attachment: fixed;
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-position 0.3s ease;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 28px;
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0.05;
  pointer-events: none;
}
:root {
  --gradient: linear-gradient(90deg, #ff0000, #ff8800, #00ff88, #0088ff);
}

.brand h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--gradient);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 6s ease infinite;
}

@keyframes gradientText {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.brand .tag {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.nav {
  display: flex;
  gap: 14px;
  margin-left: auto;
  position: relative;
  z-index: 10;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.nav a:hover::before,
.nav a.active::before {
  opacity: 0.1;
}

.nav a span {
  position: relative;
  z-index: 1;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.03);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  border-color: rgba(255,255,255,0.1);
  color: #fff;
}

.hero {
  padding: 48px 6vw;
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-bottom: 2rem;
}

.hero .logo {
  max-width: 300px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(49,134,255,0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero .logo:hover {
  transform: translateY(-5px) scale(1.02);
  filter: drop-shadow(0 12px 32px rgba(49,134,255,0.3));
}

.hero-image {
  max-width: 100%;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient);
  opacity: 0.03;
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientText 6s ease infinite;
}

@keyframes gradientText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-text p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.1rem;
}

.cta {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 100px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  margin-right: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta:hover::before {
  opacity: 0.1;
}

.cta.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted);
}

.cta.ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  display: block;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.03);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient);
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 0.3;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  z-index: -1;
}

.card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 1.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.section {
  padding: 64px 6vw;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0.02;
  pointer-events: none;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.lead {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.card-large {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 24px;
  border-radius: 20px;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
}

.card-large::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card-large:hover::before {
  opacity: 0.2;
}

.card-large .card-body {
  position: relative;
  z-index: 30;
  background: inherit;
  border-radius: inherit;
  pointer-events: all;
}

.resources ul, .feature-list {
  color: var(--muted);
  list-style-type: none;
  padding: 0;
  margin-top: 1rem;
}

.resources ul li, .feature-list li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.resources ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent1);
}

.glow {
  position: relative;
  transition: all 0.3s ease;
  border-radius: 16px;
}

.glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    var(--accent1),
    var(--accent2),
    var(--accent3),
    var(--accent4),
    var(--accent1)
  );
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  z-index: 1;
  animation: borderRotate 4s linear infinite;
}

.glow:hover::before {
  opacity: 1;
}

@keyframes borderRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  z-index: 2;
}

.card-large:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.glow img {
  display: block;
  position: relative;
  z-index: 2;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.muted {
  opacity: .9;
}

.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.01));
  position: relative;
}

.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0.02;
  pointer-events: none;
}

.links-row {
  margin-top: 15px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 40;
  pointer-events: all;
}

.links-row .link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  transition: all 0.3s ease;
  z-index: 20;
  position: relative;
  cursor: pointer;
}

.links-row .link:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.link, a:not(.cta, .nav a) {
  color: #a9d6ff;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
  z-index: 10;
  cursor: pointer;
}

.link::after, a:not(.cta, .nav a)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.link:hover, a:not(.cta, .nav a):hover {
  color: #ffffff;
}

.link:hover::after, a:not(.cta, .nav a):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-footer {
  padding: 40px 6vw;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0.1;
}

.small {
  font-size: .9rem;
  color: var(--muted);
}

.in-view {
  opacity: 1 !important;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .nav {
    display: none;
  }
  
  .menu-toggle {
    display: inline-block;
  }
  
  .hero-text h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 40px 4vw;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card-large {
    padding: 20px;
  }
  
  .cta {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 1.8rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .card {
    padding: 16px;
  }
  
  .card img {
    width: 60px;
    height: 60px;
  }
  
  .card h3 {
    font-size: 1.2rem;
  }
  
  .site-footer {
    padding: 30px 4vw;
  }
}
