:root {
  --accent:        #5865F2;
  --accent-hover:  #4752C4;
  --accent-dim:    rgba(88, 101, 242, 0.15);

  --bg-page:       #0f0f11;
  --bg-card:       #1a1a1f;
  --bg-nav:        rgba(15, 15, 17, 0.85);
  --bg-btn:        #232329;
  --bg-btn-hover:  #2d2d35;

  --text-primary:  #f0f0f2;
  --text-secondary:#a0a0b0;
  --text-muted:    #606070;

  --border:        rgba(255, 255, 255, 0.07);
  --border-hover:  rgba(255, 255, 255, 0.14);

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow-card:   0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-btn:    0 2px 12px rgba(88, 101, 242, 0.35);

  --nav-height:    60px;
  --transition:    0.2s ease;

  --font-body:     'Sora', 'DM Sans', system-ui, sans-serif;
}

.light-mode {
  --bg-page:       #f3f3f7;
  --bg-card:       #ffffff;
  --bg-nav:        rgba(243, 243, 247, 0.88);
  --bg-btn:        #eaeaf0;
  --bg-btn-hover:  #dddde8;

  --text-primary:  #111116;
  --text-secondary:#555566;
  --text-muted:    #9999aa;

  --border:        rgba(0, 0, 0, 0.07);
  --border-hover:  rgba(0, 0, 0, 0.14);

  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-btn:    0 2px 12px rgba(88, 101, 242, 0.22);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
}

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

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

/* ── Navigation ─────────────────────────────────────────────── */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-small {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.site-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: color var(--transition);
}

.site-title:hover {
  color: var(--accent);
}

/* ── Dashboard / Nav Buttons ────────────────────────────────── */
.dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.dashboard-btn:hover {
  background: var(--bg-btn-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* ── Theme Toggle ───────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-btn-hover);
  border-color: var(--border-hover);
}

.theme-toggle:hover #theme-icon {
  transform: rotate(20deg);
}

#theme-icon {
    transition: transform 0.3s ease;
}

.container-home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 40px 20px;
}

.login-wrap {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 800px;
  width: 100%;
}

.login-left {
  flex: 1;
  min-width: 0;
  width: 320px;
}

.login-right {
  width: 320px;
  flex-shrink: 0;
}


/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: background var(--transition), border-color var(--transition);
}

.card .logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  margin: 0 auto 20px;
}

.card h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.1;
}

.card .subtitle {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.card .main-description {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 32px;
}

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.cta-section-2 {
  padding-top: 6px;
}

.muted {
  color: var(--text-muted);
  font-size: 14px;
}

.cta-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* ── Primary Button ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer,
.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

footer a,
.footer a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

/* ── Utilities ──────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-nav {
    padding: 0 16px;
  }

  .dashboard-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .card {
    padding: 36px 24px;
    border-radius: var(--radius-lg);
  }

  .card h1 {
    font-size: 28px;
  }
}

@media (max-width: 380px) {
  .header-right .dashboard-btn:first-child {
    display: none;
  }
}

/* ── Features Section ───────────────────────────────────────── */
.container-features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 80px;
  text-align: center;
}

.features-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.features-heading {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  text-align: left;
}

/* ── Feature Card ───────────────────────────────────────────── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  cursor: default;
}

.feature-card:hover {
  border-color: rgba(88, 101, 242, 0.45);
  box-shadow: 0 4px 24px rgba(88, 101, 242, 0.1);
  transform: translateY(-2px);
}

/* ── Card Header (icon + title/url) ─────────────────────────── */
.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

.feature-url {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ── Card Description ───────────────────────────────────────── */
.feature-description {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  flex: 1;
  margin: 0;
}

/* ── Card CTA Link ──────────────────────────────────────────── */
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
  transition: gap var(--transition), color var(--transition);
}

.feature-link:hover {
  gap: 8px;
  color: var(--accent-hover);
}

.feature-link svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

.feature-link:hover svg {
  transform: translateX(2px);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .container-features {
    padding: 0 16px 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .features-heading {
    font-size: 17px;
  }
}

  .login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    padding: 40px 24px;
  }


  .login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(88, 101, 242, 0.15);
    color: #818cf8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid rgba(88, 101, 242, 0.25);
    margin-bottom: 1.25rem;
  }

  .login-hero-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
  }

  .login-hero-sub {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 2.25rem;
  }

  .login-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .login-feat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .login-feat-icon {
    width: 38px;
    height: 38px;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #818cf8;
    font-size: 17px;
  }

  .login-feat-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 3px;
  }

  .login-feat-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .login-feat-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  .login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
  }

  .login-card-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 4px;
  }

  .login-card-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
  }

  .login-auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: 10px;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
  }

  .login-btn-discord {
    background: #5865F2;
    border: none;
    color: #fff;
    box-shadow: 0 2px 12px rgba(88, 101, 242, 0.35);
  }

  .login-btn-discord:hover {
    background: #4752C4;
    box-shadow: 0 4px 18px rgba(88, 101, 242, 0.5);
    transform: translateY(-1px);
  }

  .login-btn-discord:active {
    transform: translateY(0);
  }

  .login-btn-google {
    background: var(--bg-btn);
    border: 1px solid var(--border);
    color: var(--text-primary);
  }

  .login-btn-google:hover {
    background: var(--bg-btn-hover);
    border-color: var(--border-hover);
  }

  .login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
  }

  .login-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  .login-divider-text {
    font-size: 12px;
    color: var(--text-muted);
  }

  .login-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-top: 18px;
  }

  .light-mode .login-privacy {
    background: rgba(0, 0, 0, 0.03);
  }

  .login-privacy i {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 1px;
    flex-shrink: 0;
  }

  .login-privacy p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .login-privacy a {
    color: var(--accent);
    text-decoration: none;
  }

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

  @media (max-width: 780px) {
    .login-wrap {
      flex-direction: column;
      gap: 40px;
      align-items: flex-start;
    }

    .login-right {
      width: 100%;
    }

    .login-hero-title {
      font-size: 28px;
    }
  }

  @media (max-width: 480px) {
    .login-body {
      padding: 24px 16px;
    }

    .login-hero-title {
      font-size: 24px;
    }

    .login-card {
      padding: 24px 20px;
    }
  }

  .sun-icon {
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
    stroke-linecap: round;
}

.moon-icon {
    display: none;
    fill: #000000;
}

.light-mode .sun-icon {
    display: none;
}

.light-mode .moon-icon {
    display: block;
}

.login-btn-github {
  background: #24292e;
  color: #ffffff;
  border: 1px solid #24292e;
}

.login-btn-github:hover {
  background: #2f363d;
  border-color: #2f363d;
}