:root {
  /* Dark base */
  --bg-0: #07090f;
  --bg-1: #0d1119;
  --bg-2: #141a26;
  --bg-3: #1a2233;

  /* Borders */
  --border: #1f2a3d;
  --border-hover: rgba(79, 139, 255, .4);

  /* Text */
  --text: #e7ecf3;
  --text-dim: #9aa6b8;
  --muted: #6b778a;
  --text-primary: var(--text);
  --text-secondary: var(--text-dim);
  --text-muted: var(--muted);

  /* Accents */
  --accent: #4f8bff;
  --accent-2: #7df0c8;
  --accent-3: #b48cff;
  --accent-primary: var(--accent);
  --warn: #ffb454;
  --danger: #ff7a7a;

  /* Backgrounds aliases (for legacy) */
  --bg-primary: var(--bg-0);
  --bg-secondary: var(--bg-1);
  --bg-card: var(--bg-1);

  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .45);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

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

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

/* Skip to main content - Accessibility */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 1em;
  background-color: var(--accent);
  color: var(--bg-0);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-to-main:focus {
  left: 0;
  top: 0;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(79,139,255,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(125,240,200,.10), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(180,140,255,.10), transparent 60%),
    var(--bg-0);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== Brand Mark (logo icon) ===== */
.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-2), transparent 55%),
    radial-gradient(circle at 70% 70%, var(--accent-3), transparent 55%),
    linear-gradient(135deg, var(--accent), #1b3b8a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(79,139,255,.35);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 6px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 6px;
  transform: rotate(45deg);
  opacity: .85;
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(20,26,38,.85), rgba(13,17,25,.85));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-content {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .2px;
  color: var(--text);
}

.logo .brand-tag {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 13px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(79, 139, 255, .25);
}

.nav-cta:hover {
  background: #6ba0ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 139, 255, .4);
}

/* ===== Hero ===== */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 120px 24px 60px;
  position: relative;
}

.hero-content {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(79,139,255,.10), rgba(79,139,255,0) 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  box-shadow: var(--shadow);
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(125, 240, 200, .08);
  border: 1px solid rgba(125, 240, 200, .25);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-badge .dot,
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
}

.hero h1 span { color: var(--accent); }

.hero-description {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 139, 255, .25);
}

.btn-primary:hover {
  background: #6ba0ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 139, 255, .4);
}

.btn-secondary {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-3);
}

.hero-video {
  margin-top: 24px;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Sections ===== */
section {
  padding: 56px 24px;
  position: relative;
  z-index: 1;
}

.section-header {
  max-width: 1080px;
  margin: 0 auto 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--bg-0);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.section-label svg { display: none; }

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-header p {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 720px;
}

/* Variations on section pill colors */
.features-section .section-label { background: var(--accent); }
.apps-section:nth-of-type(odd) .section-label { background: var(--accent-2); color: var(--bg-0); }
.apps-section:nth-of-type(even) .section-label { background: var(--accent-3); color: #fff; }
.announcements-section .section-label { background: var(--accent); }
#community .section-label { background: var(--accent-2); color: var(--bg-0); }
#about .section-label { background: var(--accent-3); color: #fff; }

/* ===== Features ===== */
.features-section { background: transparent; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  position: relative;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-2);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(79, 139, 255, .12);
  border: 1px solid rgba(79, 139, 255, .30);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Feature expand */
.feature-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease;
  opacity: 0;
}

.feature-card.expanded .feature-expand {
  max-height: 500px;
  opacity: 1;
}

.feature-detail {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
}

.feature-detail > p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-links a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 8px 12px;
  background: rgba(79, 139, 255, .08);
  border: 1px solid rgba(79, 139, 255, .20);
  border-radius: 8px;
  transition: background .2s, border-color .2s;
}

.feature-links a:hover {
  background: rgba(79, 139, 255, .15);
  border-color: rgba(79, 139, 255, .35);
}

.feature-toggle-hint {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.feature-card.expanded .feature-toggle-hint { opacity: 0; }

/* ===== Apps / News (cards with image) ===== */
.apps-section { background: transparent; }

/* ===== News Embeds ===== */
.news-section { background: transparent; }

.news-embeds {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.news-embed-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
  transition: border-color .15s ease;
}

.news-embed-item:hover {
  border-color: var(--border-hover);
}

.news-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.news-embed-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.news-embed-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  background: rgba(79, 139, 255, .12);
  border: 1px solid rgba(79, 139, 255, .30);
  padding: 4px 10px;
  border-radius: 999px;
}

.news-embed-badge.weekly {
  color: var(--accent-3);
  background: rgba(180, 140, 255, .12);
  border-color: rgba(180, 140, 255, .30);
}

.news-embed-badge.world {
  color: var(--accent-2);
  background: rgba(125, 240, 200, .12);
  border-color: rgba(125, 240, 200, .30);
}

.news-embed-frame {
  width: 100%;
  height: 600px;
}

.news-embed-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .news-embed-frame { height: 450px; }
  .news-embed-header { padding: 12px 16px; }
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.app-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-1);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  cursor: pointer;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.app-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(7, 9, 15, .35) 35%,
    rgba(7, 9, 15, .85) 70%,
    rgba(7, 9, 15, .96) 100%
  );
  z-index: 1;
}

.app-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.app-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.app-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(79, 139, 255, .35);
}

.app-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.app-content {
  position: relative;
  z-index: 2;
  padding: 22px 20px;
}

.app-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.app-tagline {
  font-size: 12px;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-description {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 12px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(79, 139, 255, .12);
  border: 1px solid rgba(79, 139, 255, .30);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}

/* ===== Community ===== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.community-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.community-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-2);
}

.community-icon {
  width: 44px;
  height: 44px;
  background: rgba(79, 139, 255, .12);
  border: 1px solid rgba(79, 139, 255, .30);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.community-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.community-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.community-content p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.55;
}

.community-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s;
}

.community-link:hover { gap: 10px; }

.community-link svg { width: 14px; height: 14px; }

/* ===== Announcements / Cursos ===== */
.announcements-section {
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.course-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-2);
}

.course-number {
  width: 32px;
  height: 32px;
  background: rgba(79, 139, 255, .12);
  border: 1px solid rgba(79, 139, 255, .30);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

.course-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 42px;
  color: var(--text);
}

.course-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(79, 139, 255, .08);
  border: 1px solid rgba(79, 139, 255, .20);
  color: var(--accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  align-self: flex-start;
}

.course-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.course-link svg { width: 14px; height: 14px; }

/* ===== Founders ===== */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.founder-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-1);
  transition: transform .15s ease, border-color .15s ease;
  cursor: pointer;
}

.founder-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.founder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(7, 9, 15, .25) 40%,
    rgba(7, 9, 15, .85) 72%,
    rgba(7, 9, 15, .96) 100%
  );
  z-index: 1;
}

.founder-image {
  position: absolute;
  inset: 0;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.founder-content {
  position: relative;
  z-index: 2;
  padding: 22px 20px;
}

.founder-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.founder-card .founder-role {
  display: inline-block;
  font-size: 11px;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.founder-card .founder-bio {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ===== Footer ===== */
footer {
  margin-top: 32px;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-logo .brand-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 7px;
}
.footer-logo .brand-mark::after { inset: 4px; border-width: 1px; border-radius: 4px; }

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color .2s;
}

.footer-links a:hover { color: var(--text); }

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 15, .96);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity .3s;
}

.mobile-nav.open { display: flex; opacity: 1; }

.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .2s;
}

.mobile-nav a:hover { color: var(--text); }

.mobile-nav .nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
}

/* ===== Fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .founders-grid { grid-template-columns: 1fr; max-width: 400px; }
  .hero h1 { font-size: 28px; }
  .section-header h2 { font-size: 22px; }
}

@media (max-width: 600px) {
  nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 16px 40px; }
  .hero-text { padding: 24px 20px; }
  .hero h1 { font-size: 26px; }
  .hero-description { font-size: 15px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  section { padding: 40px 16px; }
  .section-header { margin-bottom: 20px; }
  .section-header h2 { font-size: 20px; }
  .courses-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .logo .brand-tag { display: none; }
}
